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 203.173.17.211:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/DocumentationPage_2fXmlTv

The comment on the change is:
infomation about an error in Australia's xmltv source

------------------------------------------------------------------------------
@@ -173,7 +173,34 @@
 
 search Google for "tv_grab_au". Its not part of the xmltv package yet, but its usable 
and its out there.
 
+There is an error in the listings source for Australia where xml special characters 
are escaped twice, so you get &amp rather than & . Here's a small script that 
grabs the listings and fixes this error.
+
+{{{
+#!/bin/bash -x
+
+XMLTV_FILE="/tmp/TV.xml"
+LISTINGS_FILE=`date +"$HOME/xmltv/listings_%Y%m%d.xml"`
+
+tv_grab_au --output "${LISTINGS_FILE}" --days 7
+
+# make sure the file is larger than 4k - otherwise there was an error in the data
+if [ `ls -sk "${LISTINGS_FILE}" | awk '{print $1;}'` -gt 4 ] ; then
+        # fix the double escapes
+        sed -i 's/\&/\&/g' "${LISTINGS_FILE}"
+        echo Listing is good
+        rm "${XMLTV_FILE}"
+        ln -s "${LISTINGS_FILE}" "${XMLTV_FILE}"
+else
+        echo Listing is bad
+fi
+
+freevo schedulefavorites
+
+}}}
+
+
 == Use in Freevo ==
+
 Update the TV_CHANNELS variable in local_conf.py. [[BR]]
 Please see that file for more detailed instructions!
 


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog

Reply via email to