[go: up one dir, main page]

Menu

#512 tv_grab_huro is completely broken due to undecoded UTF-8 parsing error

0.5.69
closed-accepted
nobody
None
5
2017-01-24
2016-11-06
No

Absolutely no data can be retreived, the application exits early. I have not changed anything on my system, but port.hu made some changes on their site recently.
Using Windows 7 64-bit Hungarian and latest xmltv stable.
Please note that the latest CVS nighly builds also fail since 2016. 11. 04. See http://www.crustynet.org.uk/~xmltv-tester/squeeze/nightly/

My version:

d:\xmltv>xmltv tv_grab_huro --version
Timezone is +0100
XMLTV module version 0.5.68
This is tv_grab_huro.in version 1.58, 2016/03/26 14:37:22

Grab error:

d:\xmltv>xmltv tv_grab_huro -days 9 --output xmltv.xml
Timezone is +0100
using config filename ./.xmltv/tv_grab_huro.conf
getting list of channels: Parsing of undecoded UTF-8 will give garbage when decoding entities at /<d:\xmltv\xmltv.exe>HTML/TreeBuilder.pm line 108.
no CHANNELS could be found at /<d:\xmltv\xmltv.exe>grab/huro/tv_grab_huro line 860.

List error:

d:\xmltv>xmltv tv_grab_huro --list-channels --loc hu
Timezone is +0100
using config filename ./.xmltv/tv_grab_huro.conf
<?xml version="1.0" encoding="ISO-8859-2"?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">

getting list of channels: Parsing of undecoded UTF-8 will give garbage when decoding entities at /<d:\xmltv\xmltv.exe>HTML/TreeBuilder.pm line 108, <DATA>
line 176.
no CHANNELS could be found at /<d:\xmltv\xmltv.exe>grab/huro/tv_grab_huro line 860, <DATA> line 176.
<tv source-info-url="http://www.port.hu/" source-data-url="http://www.port.hu/tv/" generator-info-name="XMLTV" generator-info-url="http://xmltv.org/">

Discussion

  • d3cadent

    d3cadent - 2016-11-12

    Same problem on my system.

     
  • nz220

    nz220 - 2016-12-23

    Old versions won't work anymore because of new JSON-based design.
    This patch may helps. Sorry it wasn't fully tested.

     
  • d3cadent

    d3cadent - 2016-12-23

    Can you compile a Windows executable? I'm on Windows and have neither the environment nor the experience to compile myself.

     
  • nz220

    nz220 - 2017-01-02

    Sorry, I'm not familiar with compilation under Windows, and I found only an about 10 years old howto:
    http://xmltv.cvs.sourceforge.net/viewvc/xmltv/xmltv/doc/exe_build.html

    (The second patch fixes some errors of the json patch.)

     
    • Szabolcs Hernádi

      Dear nz220!

      Please help me, how can i install this patch my tv_grab_huro script?
      I use debian OS and xmltv ver 0.5.63-2.

      Thank you answer !

       
  • nz220

    nz220 - 2017-01-11

    This method is useful as a hotfix in the case you are using Debian's stable xmltv package:

    wget https://sourceforge.net/projects/xmltv/files/xmltv/0.5.68/xmltv-0.5.68.tar.bz2
    tar xjf xmltv-0.5.68.tar.bz2 "./xmltv-0.5.68/grab/huro/tv_grab_huro.in"
    patch -p0 ./xmltv-0.5.68/grab/huro/tv_grab_huro.in /path_of_the_file/tv_grab_huro_json.patch
    patch -p0 ./xmltv-0.5.68/grab/huro/tv_grab_huro.in /path_of_the_file/tv_grab_huro_json_ro.patch
    patch -p0 ./xmltv-0.5.68/grab/huro/tv_grab_huro.in /path_of_the_file/tv_grab_huro_json_ro2.patch
    sudo cp -p /usr/bin/tv_grab_huro /usr/bin/tv_grab_huro.orig
    sudo cp ./xmltv-0.5.68/grab/huro/tv_grab_huro.in /usr/bin/

    (If you don't have sudo installed, login as root for copying files in /usr/bin.)

    This third patch fixes date handling and inserts age limits and categories from port.ro, that's currently closed (Anyone knows why?).

     
    • Szabolcs Hernádi

      This solution is work!

      Thank you your help!

       
      • nz220

        nz220 - 2017-01-13

        You're welcome.

         
  • d3cadent

    d3cadent - 2017-01-11

    Do you know how to ask the alpha-team to create an alpha exe out of this patch for us?

     
  • nz220

    nz220 - 2017-01-11

    No. I don't have any connection to them or the other developers of the project.

     
  • Geoff

    Geoff - 2017-01-11

    Post a request on the xmltv-devel mailing list and the relevant people will see it
    https://lists.sourceforge.net/lists/listinfo/xmltv-devel

     
    • nz220

      nz220 - 2017-01-13

      Thanks. I sent a mail to the list.

       
  • d3cadent

    d3cadent - 2017-01-19

    Not sure if alpha exe dated 15.01.2017 is supposed to contain this fix - but it does not work.

     
  • Robert Eden

    Robert Eden - 2017-01-24
    • status: open --> closed-accepted
    • Group: none --> 0.5.69
     
  • Robert Eden

    Robert Eden - 2017-01-24

    Patches applied... will be in tonight's release

     

Log in to post a comment.