Dear Wiki user, You have subscribed to a wiki page or wiki category on "Freevo Wiki" for change notification.
The following page has been changed by 12.159.193.4: http://freevo.sourceforge.net/cgi-bin/moin.cgi/DocumentationPage The comment on the change is: trailing comma does no harm. alternative TV_CHANNELS output ------------------------------------------------------------------------------ @@ -101,10 +101,14 @@ ln -s `date +'$HOME/freevo/xmltv/listings_%d%m%Y.xml'` /tmp/TV.xml }}} -If you're too lazy to edit freevo_config.py manually, and you have a /tmp/TV.xml file downloaded, here's a small shell script which will generate the TV channels for you. You can then change the order or make corrections to the naming. To use it "as is", don't forget to remove the trailing comma. +If you're too lazy to edit freevo_config.py manually, and you have a /tmp/TV.xml file downloaded, here's a small shell script which will generate the TV channels for you. You can then change the order or make corrections to the naming. {{{ -# cat /tmp/TV.xml | grep "id=" | awk '{FS="\""; a=a+1; print "(\x27" $2 "\x27 " "\x27" $2 "\x27, \x27" a "\x27),"}' +# cat /tmp/TV.xml | grep "id=" | awk '{FS="\""; a=a+1; print "(\x27" $2 "\x27, " "\x27" $2 "\x27, \x27" a "\x27),"}' +}}} +or, alternatively, to create a sorted list: + {{{ +# grep "<channel id=" /tmp/TV.xml | sed -e 's#^.*<channel id="\([^"]\+\)">#\1#g' | sort -n | awk '{a=a+1; printf("(\x27%s\x27, \x27%s\x27, \x27%s\x27),\n", $0, $0, a)}' }}} ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Freevo-wikilog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-wikilog