fix output formatting issues so these really work with apostrophes in the content
This commit is contained in:
@@ -33,8 +33,11 @@ echo "<movie>" >> $nfo
|
||||
|
||||
# think Emby doesnt process &'s, so switch them over
|
||||
title=${title//&/and}
|
||||
title=${title//\'/}
|
||||
outline=${outline//&/and}
|
||||
outline=${outline//\'/}
|
||||
plot=${plot//&/and}
|
||||
plot=${plot//\'/}
|
||||
|
||||
if [ x"$outline" != "x" ]; then
|
||||
echo "<title>$title: $outline</title>" >> $nfo
|
||||
@@ -42,7 +45,7 @@ else
|
||||
echo "<title>$title</title>" >> $nfo
|
||||
fi
|
||||
|
||||
echo "<plot>$plot</plot>" >> $nfo
|
||||
echo "<plot><![CDATA[$plot]]></plot>" >> $nfo
|
||||
echo "<date>$date</date>" >> $nfo
|
||||
echo "</movie>" >> $nfo
|
||||
sudo chown mythtv:mythtv $nfo
|
||||
|
||||
Reference in New Issue
Block a user