XMLTV reWriter (1 Viewer)

alphadog

Portal Member
January 17, 2010
16
0
Hello, it's 4 days I encounter the same error ant it aborts, here is the log:

14-02-2010 02:25:08 - XMLTV reWriter starting
14-02-2010 02:25:09 - Log file is located at: C:\ProgramData\XMLTV reWriter\
14-02-2010 02:25:09 - XMLTV reWriter will execute 1 time(s)
14-02-2010 02:25:09 - ID check is ENABLED
14-02-2010 02:25:09 - Creating directory C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\ OK
14-02-2010 02:25:09 - Downloading file http://www.xmltvepg.be/rytecxmltvbenl.gz OK
14-02-2010 02:25:14 - Downloading file http://www.xmltvepg.be/rytecxmltvuk.gz OK
14-02-2010 02:25:15 - Downloading file http://www.xmltvepg.be/rytecxmltvpoland.gz OK
14-02-2010 02:25:15 - Downloading file http://xmltv.myftp.org/download/complet.zip OK
14-02-2010 02:25:47 - Extracting file C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\A.gz OK
14-02-2010 02:25:48 - Extracting file C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\B.gz OK
14-02-2010 02:25:48 - Extracting file C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\C.gz OK
14-02-2010 02:25:49 - Extracting file C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\D.zip OK
14-02-2010 02:25:51 - Creating header of new xmltv file OK
14-02-2010 02:25:51 - Adding channels from file C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\A.xml OK
14-02-2010 02:25:59 - Adding channels from file C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\B.xml OK
14-02-2010 02:26:08 - Adding channels from file C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\C.xml OK
14-02-2010 02:26:11 - Adding channels from file C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\D.xml ERROR
14-02-2010 02:26:15 - Unexpected end of file has occurred. The following elements are not closed: tv. Line 381233, position 15.
14-02-2010 02:26:16 - Deleting directory C:\Users\Administrator\AppData\Local\Temp\XMLTV reWriter\ OK
14-02-2010 02:26:19 - Executed in: 00h 01m 09s
14-02-2010 02:26:19 - XMLTV reWriter closing down
 

D4bFz3awSRYHKjr3

MP Donator
  • Premium Supporter
  • August 14, 2006
    253
    16
    Home Country
    Aruba Aruba
    The reason for the error is that there's an error in your source document complet.xml, at the end of the document the tag </tv> isn't there. I can't help you with that, you can ask the webmaster of that site to adress the issue.

    Or manually download the file and add the tag, then let XMLTV reWriter use the local file, this is a workaround until your source file is fixed.
     

    alphadog

    Portal Member
    January 17, 2010
    16
    0
    Yes indeed i added that tag and could import it. I try to find the person making that file via the zguidetv forum. I hope he will fix it because it's a very complete guide.

    Thanks anyway ;-)
     

    Set3

    Portal Member
    June 4, 2008
    24
    0
    Hi, Ocram,
    Found this via 4TR :)

    Interesting tool, works nice, but I have 1 problem and 1 question :

    P1 : I get : Invalid character in the given encoding. Line 10088, position 663, while processing
    I get input from XMLTV-UK and not RyTec, because then I have a "Sub-title) and that is what you need with 4TR as you know !

    Q1 : Can I also change the ID ? (Other than/ copy / and the remove the old one )

    Set3
     

    Attachments

    • XMLTV-UK.zip
      30.6 KB

    Set3

    Portal Member
    June 4, 2008
    24
    0
    Hi,

    Another question : I run your prog in the middle of the night, but once you discover an error, you stop processing and wait for a key to be pressed, which is never going to happen.
    At this moment I process 5 different tvguides, and if the first one fails, all fail and no guides are uploaded to 4TR, so the 4TR guides will run empty after a few days, until the error is noticed somehow.

    Q2 : can you not somehow continue generating the files, possibly eg deleting the error line, or anyway continue with processing of the next file ? Alternatively I must schedule 5 prog, each in 5 separeate directory etc
    I guess that this was not your intention when you wrote this :)

    Set3
     

    D4bFz3awSRYHKjr3

    MP Donator
  • Premium Supporter
  • August 14, 2006
    253
    16
    Home Country
    Aruba Aruba
    Hi, Ocram,

    P1 : I get : Invalid character in the given encoding. Line 10088, position 663, while processing
    I get input from XMLTV-UK and not RyTec, because then I have a "Sub-title) and that is what you need with 4TR as you know !

    Set3

    Does this happen all the time?

    Hi, Ocram,

    Q1 : Can I also change the ID ? (Other than/ copy / and the remove the old one )

    Set3

    No, there is no direct command to do this

    Hi,

    Another question : I run your prog in the middle of the night, but once you discover an error, you stop processing and wait for a key to be pressed, which is never going to happen.
    At this moment I process 5 different tvguides, and if the first one fails, all fail and no guides are uploaded to 4TR, so the 4TR guides will run empty after a few days, until the error is noticed somehow.

    Q2 : can you not somehow continue generating the files, possibly eg deleting the error line, or anyway continue with processing of the next file ? Alternatively I must schedule 5 prog, each in 5 separeate directory etc
    I guess that this was not your intention when you wrote this :)

    Set3

    You can import all guides with 1 config, just make sure that IDCHECK=TRUE is used. I have no interest to implement some error detection that will skip that one line, when something is wrong, this would require a lot of time and normally there shouldn't be any errors in the files that you import. also when an error has been found it stops processing and shows an error message that is clearly visible, so it would be hard to not see it for several days.

    P1 : I get : Invalid character in the given encoding. Line 10088, position 663, while processing


    Set3

    Just took a quick look at what could cause this, but the encoding of the file that you supplied and what I use is both UTF-8, so that shouldn't give a problem, so I have no idea what could be causing this.
     

    Set3

    Portal Member
    June 4, 2008
    24
    0
    Thanks for the reply Ocram.

    Been testing for a while now,

    P1 suddenly vanished, must have been something wrong in the source data.
    Q1 ok no problem, I think I try a copy/delete then
    Q2, I understand, how far to go with error handling indeed. So I split up all 5 into 5 separate directories and separate schedules at night, so if one fails, the other 4 will work anyway.

    love your tool.

    Set3
     

    Set3

    Portal Member
    June 4, 2008
    24
    0
    Ocram,

    Regretfully the invalid character error is back, but what is wrong then ? For the record imports the same file without any problem ? Can I ask you to look into thie again ?:D

    Set3
     

    D4bFz3awSRYHKjr3

    MP Donator
  • Premium Supporter
  • August 14, 2006
    253
    16
    Home Country
    Aruba Aruba
    can you look it up and tell me wich character it is, also post a small part of the area that gives the error. you previously gave me a line number, but I couldnt find anything at that time
     

    Set3

    Portal Member
    June 4, 2008
    24
    0
    Hi OCRAM,

    After some eliminating I found one of the problems :

    <programme start="20100531193000 +0100" stop="20100531200000 +0100" channel="bbc1.bbc.co.uk">
    <title>DIY SOS</title>
    <desc lang="en">Nick Knowles and the team answer the SOS call of a brother &amp; sister to transform their play room into a classy dining room for their grandparents. They want to say thank you for looking after them. The dining room is not the only part to the teamâÂÂs renovation. Surprises are in place for everyone.</desc>
    <category lang="en">Interests</category>
    <subtitles type="teletext" />
    </programme>

    No idea why it is looking so strange between "team" and "renovation", still 4TR accepts it and shows strange characters in the description popup. (like: black tilted squares with a white question mark inside)

    Flushed caches, tried from another computer, no change.
    Might be that somewhere processing is wrong due to the very long descriptions ?

    Well basically it looks liks you are too critical in what you process and 4TR just does not care what is inside the description test I guess. :(

    Now what :confused:
    Is there a tool to filter "non UTF-8" garbage out ?

    Set3
     

    Attachments

    • 4TR.png
      4TR.png
      23.9 KB
    • RadioTimesRaw.xml
      1 KB

    Users who are viewing this thread

    Similar threads

    Hey CyberSimian you nailed it! Looks like the secret is:- After EPG Collector has Run and provided the TVGuide.xml Open MediaPortal - TV Server Configuration "Force Import" on the Plugins/Xmltv/General dialogue, (ignore the status) Go to the Mappings dialogue and Load/Refresh and Save a Group - (It does not appear to matter which...
    Hey CyberSimian you nailed it! Looks like the secret is:- After EPG Collector has Run and provided the TVGuide.xml Open...
    Hi everyone I posted in the EPG section a while back concerning MediaPortal EPG using EPG Collector and MediaPortal xmltv plugin...
    Replies
    51
    Views
    9K
    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue stemmed from the corruption of one or both of the mc2xml.dat and/or mc2xml.exe files, for an unknown reason. Consequently, even though the tvguide.xml file appeared to be updated, its content kept being an...
    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue...
    I was having a problem with the EPG on MP2 1.4.1 (although it used to run without any issues for a while). So I installed MP2 1.5...
    Replies
    8
    Views
    762
    MP1 MP2 NAS DE
    And just found out that "if" the NAS has turned off, MePo sends the WOL when i again try to access the shares.. Love that feature :)
    And just found out that "if" the NAS has turned off, MePo sends the WOL when i again try to access the shares.. Love that feature :)
    Small question. Since MEPO 2 apprently is dead, and i have to switch back. Is there a way to ensure that the NAS will be started...
    Replies
    3
    Views
    483
    I used to use the grabber but a few years back it disappeared on FreeSat DVBS. That is when I changed to EPG Collector. The extra benefit is that it collects from the Sky platform so it will give EPG for all the FreeSat channels plus the unencrypted movie channels on the Sky platform. It also allows me to pick the channels dedicated...
    I used to use the grabber but a few years back it disappeared on FreeSat DVBS. That is when I changed to EPG Collector. The extra...
    Hi everyone, I hope you are all well My Mum's Mediaportal lost it's marbles thanks to Microsoft update, (even though I had update...
    Replies
    2
    Views
    1K
    GitHub - jesmannstl/zap2xml: Automate TV guides to XMLTV much faster rewrite pulls full 14 day lineup in seconds. If pulling multiple lineups GitHub - jesmannstl/tvmerge: An updated and faster tvmerge utility merges 2 or more xmltv files. Both written in node.js.
    GitHub - jesmannstl/zap2xml: Automate TV guides to XMLTV much faster rewrite pulls full 14 day lineup in seconds. If pulling...
    Today I reached the end of my guide data. Upon researching what went wrong, I learned zap2it.com is dead. So zap2xml.exe doesn't...
    Replies
    13
    Views
    7K
    Top Bottom