corrected cleaner script to include episode-num parsing
This commit is contained in:
parent
65da0ab778
commit
ad4e456d09
|
|
@ -7,6 +7,7 @@ raw="/data/xmltv.xml"
|
|||
parse_output="/data/parsed_new_epg.xml"
|
||||
update_output="/data/updated_new_epg.xml"
|
||||
format_output="/data/formatted_new_epg.xml"
|
||||
final_output="/data/ep_corrected_new_epg.xml"
|
||||
|
||||
rm $parse_output $update_output $format_output
|
||||
|
||||
|
|
@ -26,6 +27,7 @@ if [ -f "/tmp/newtmpxmltv.xml" ]; then
|
|||
rm /tmp/newtmpxmltv.xml
|
||||
fi
|
||||
|
||||
# On change les channels-id d'UpTélé pour concorder avec ceux dans notre Ministra
|
||||
cp $parse_output /tmp/tmpxmltv.xml
|
||||
|
||||
while read LINE; do
|
||||
|
|
@ -39,5 +41,8 @@ done < channels_translate.txt
|
|||
|
||||
mv /tmp/tmpxmltv.xml $update_output
|
||||
|
||||
# On ajuste/ajoute l'élément <episode-num system="onscreen"> pour être en format S00E00
|
||||
xmlstarlet tr -s /opt/tmpl.xsl $update_output > $format_output
|
||||
|
||||
# On format le xml pour un bon indent
|
||||
xmlstarlet fo -t $update_output > $format_output
|
||||
xmlstarlet fo -t $format_output > $final_output
|
||||
Loading…
Reference in New Issue
Block a user