I have a lot of foreign TV stations on the cable overhere. To make my TV-guide work, I had to strip out al non standard characters. Specific TVE has characters like � the ! upside down character, German TV stations with the � character etc...
I stripped out al blocking characters with a bash script Some excerpts out the custom script cat -v /tmp/TV.xml > /tmp/TV.out This transfers all non printable characters in TV.xml to viewable character strings in TV.out the non printing, non visible characters become something like these # [EMAIL PROTECTED] # ' # [EMAIL PROTECTED] # ' # [EMAIL PROTECTED]& # # [EMAIL PROTECTED] Replacing is done by regexp like this regexp="[EMAIL PROTECTED]" replace="\'" cat /tmp/TV.out | sed -e "s/$regexp/$replace/g" > /tmp/gedeco1.xml cp /tmp/gedeco1.xml /tmp/gedeco.xml Still looking for a better solution, but for now and the lack of time I have, it fits the bill. > Hi. > > Many times, I can't load the tv guide. It seems to be corrupted. When I > try to > get the guide, I get this: > > > Traceback (most recent call last): > File "/usr/lib/python2.4/site-packages/freevo/tv/epg_xmltv.py", line > 141, in > get_guide > cached_guide = load_guide(verbose, XMLTV_FILE) > File "/usr/lib/python2.4/site-packages/freevo/tv/epg_xmltv.py", line > 246, in > load_guide > xmltv_programs = xmltv.read_programmes(f) > File "/usr/lib/python2.4/site-packages/freevo/tv/xmltv.py", line 367, in > read_programmes > doc = parser.parse(fp.read()) > File "/usr/lib/python2.4/site-packages/_xmlplus/utils/qp_xml.py", line > 129, > in parse > p.Parse(input, 1) > ExpatError: no element found: line 1475, column 14 > > I am trying to load the guide in Spanish. Sometimes I can, but others not. > I'm > thinking that maybe some character in Spanish is causing the trouble, or > the > guide is not well formatted. But sometimes it works. How can I now what's > failing? What info would you need? > > Thx > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Freevo-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freevo-users > > > -- > This message has been scanned for viruses and > dangerous content by OpenProtect(http://www.openprotect.com), and is > believed to be clean. > > -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Freevo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-users
