youtube-rss: wrap rest in CDATA

This commit is contained in:
gutmet 2020-10-31 18:04:26 +01:00
parent 07d6c05fd6
commit 04b2a2716e

View File

@ -8,9 +8,9 @@ uploader=`echo "$playlistJSON" | jq -r '.uploader'`
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<rss version=\"2.0\" xmlns:content=\"http://purl.org/rss/1.0/modules/content/\">
<channel>
<title>$uploader</title>
<link>$playlistURL</link>
<description>$uploader</description>
<title><![CDATA[ $uploader ]]></title>
<link><![CDATA[ $playlistURL ]]></link>
<description><![CDATA[ $uploader ]]></description>
"
entries=`echo "$playlistJSON" | jq -r '.entries[] | .url + " " + .title'`