[solved] XMLTV tvguide.xml 'already importing' usual fixes not working (1 Viewer)

David Scott

Portal Member
April 20, 2012
8
0
50
New Zealand New Zealand
Hey, spent a few hours scratching head and trawling the forums here, and none of the suggestions so far have helped.
I've already checked the database for errors using the sql command listed in another post - no errors,
tried clearing out all rows from the program table
re-checked that my mappings are configured correctly

but I get these message in my logs - and TV server config xmltv import just shows 'already importing'

Any suggestions, I'm trying to avoid a clean reinstall - about yearly I've had to do that for one reason or another, it's annoying

[2017-09-04 15:53:08,935] [Log ] [SetupTv ] [ERROR] - plugin:xmltv import failed
[2017-09-04 15:53:08,947] [Log ] [SetupTv ] [ERROR] - Exception :confused:ystem.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Int32.Parse(String s)
at TvEngine.XMLTVImport.Import(String fileName, Boolean deleteBeforeImport, Boolean showProgress)
at TvEngine.XmlTvImporter.ThreadFunctionImportTVGuide(Object aparam)


and my tvguide.xml looks like this (abridged)

XML:
<?xml version="1.0" encoding="utf-8"?>
<tv generator-info-name="DomainObjects/4.3.5838.20264">
  <channel id="1502">
    <display-name>Al Jazeera</display-name>
  </channel>
  <channel id="1501">
    <display-name>Apna Television</display-name>
  </channel>
  <channel id="2002">
    <display-name>BaseFM</display-name>
  </channel>
  <channel id="1307">
    <display-name>Bravo</display-name>
  </channel>
  <channel id="1308">
    <display-name>Bravo PLUS 1</display-name>
  </channel>
  <channel id="1412">
    <display-name>Channel North</display-name>
  </channel>
  <channel id="1403">
    <display-name>ChineseTV</display-name>
  </channel>
  <channel id="1407">
    <display-name>ChoiceTV</display-name>
  </channel>
  <channel id="1414">
    <display-name>Firstlight</display-name>
  </channel>
  <channel id="1508">
    <display-name>HGTV</display-name>
  </channel>
  <channel id="1506">
    <display-name>Hope Channel</display-name>
  </channel>
  <channel id="1411">
    <display-name>Info-Rotorua</display-name>
  </channel>
  <channel id="1600">
    <display-name>Maori Television</display-name>
  </channel>
  <channel id="1509">
    <display-name>NCTV-Chinese</display-name>
  </channel>
  <channel id="1421">
    <display-name>PandaTV</display-name>
  </channel>
  <channel id="1401">
    <display-name>Parliament</display-name>
  </channel>
  <channel id="1404">
    <display-name>PRIME</display-name>
  </channel>
  <channel id="2001">
    <display-name>Radio NZ Concert</display-name>
  </channel>
  <channel id="1507">
    <display-name>Radio NZ National</display-name>
  </channel>
  <channel id="6002">
    <display-name>Shine TV</display-name>
  </channel>
  <channel id="1417">
    <display-name>SouthernTV</display-name>
  </channel>
  <channel id="1601">
    <display-name>Te Reo</display-name>
  </channel>
  <channel id="6001">
    <display-name>Television Hawke's Bay</display-name>
  </channel>
  <channel id="1305">
    <display-name>The Edge TV</display-name>
  </channel>
  <channel id="1300">
    <display-name>Three</display-name>
  </channel>
  <channel id="1302">
    <display-name>ThreePlus1</display-name>
  </channel>
  <channel id="1505">
    <display-name>TV29</display-name>
  </channel>
  <channel id="1405">
    <display-name>TV33</display-name>
  </channel>
  <channel id="1200">
    <display-name>TVNZ 1</display-name>
  </channel>
  <channel id="1206">
    <display-name>TVNZ 1 +1</display-name>
  </channel>
  <channel id="1201">
    <display-name>TVNZ 2</display-name>
  </channel>
  <channel id="1207">
    <display-name>TVNZ 2 +1</display-name>
  </channel>
  <channel id="1205">
    <display-name>TVNZ DUKE</display-name>
  </channel>
  <channel id="1504">
    <display-name>TVSN Shopping</display-name>
  </channel>
  <channel id="1423">
    <display-name>WairarapaTV</display-name>
  </channel>
  <programme start="20170904000000 +1200" stop="20170904010000 +1200" channel="1502">
    <title>Al Jazeera World</title>
    <desc>The story of the Rwandan Genocide in 1994 when 800,000 people were killed by Hutu extremists, the major role played by the media and the road to reconciliation.</desc>
  </programme>
  <programme start="20170904010000 +1200" stop="20170904020000 +1200" channel="1502">
    <title>Newshour</title>
    <desc>In-depth global news is presented.</desc>
  </programme>
  <programme start="20170904020000 +1200" stop="20170904023000 +1200" channel="1502">
    <title>News Live</title>
    <desc>Get the latest news every evening about what is happening around the globe.</desc>
  </programme>
  <programme start="20170904023000 +1200" stop="20170904030000 +1200" channel="1502">
    <title>Listening Post</title>
    <desc>This week, we analyse how Indian media cover the so-called 'godmen' in the country. And we look at Mugabe and the Zimbabwean media.</desc>
  </programme>
 

mm1352000

Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,221
    New Zealand New Zealand
    Country flag
    Hi David

    I'm fairly sure the issue is somewhere within the XMLTV file. There's definitely no need to clear out the database or reinstall.

    Please zip and attach the full XMLTV file so we can check it out properly.
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,221
    New Zealand New Zealand
    Country flag
    Mmmm, seems to be importing okay for me, though I haven't imported every single channel.

    Please double check something else:
    1. Open TV Server Config.
    2. Navigate to the XMLTV plugin (plugins -> XmlTv).
    3. On the general tab, check that there are values in the "hours" and "minutes" boxes. If they're blank, that's the problem. As the wiki/manual explains: normally you should leave them as 0 (default) and untick "apply time compensation...".
     

    David Scott

    Portal Member
    April 20, 2012
    8
    0
    50
    New Zealand New Zealand
    you nailed it, it was that hours and minutes setting... the option was deselected but only seconds was set to 0. The latest import seems to have worked fine. Muchas gracias!
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    framug No color in TVGuide when XMLTV without DVB EPG MediaPortal 1 Talk 59
    Z EPG-Buddy / xmltv-plugin - zwei Quellen, selber Sender Elektronischer Programmführer (EPG) 2
    R Help with DST conversion XMLTV General 0
    B xmltv - cannot import tvguide.xml australia Installation, configuration support 0
    geotwticher TV Guide EPG Grabber for Australia 2020 RIP freepg.tv General 4
    P Timeshifting in XMLTV General 20
    C Can the XmlTv Plugin handle 600+ channels? General 3
    JJDoherty 1.22.0 XMLTV not raising the following OnImportEpgPrograms event... 1.22 0
    lacanox XMLTV not writing the tv schedule Electronic Program Guide 3
    A [solved] XmlTv not importing programs General 8
    dcapslock TV Server xmltv IWakeupHandler Bug Television (MyTV frontend and TV-Server) 6
    T No data available using xmltv and mc2xml xmlTV 2
    framug [solved] TVguide : channel number. MediaPortal 1 Talk 7
    M Guide mapping schedules direct, tvguide, epg buddy How to get correct entry to the correct channel? Electronic Program Guide 0
    D Downloading EPG XML file: Installation, configuration support 0
    BrownGhost MP-TVSeries, Failed to save xml to cache, and not adding any info to tvseries from tvdb My TVSeries 4
    bribbon [Pending] DVB-C Tuning Parameters: Switzerland.UPC Cablecom [NID 43020] v.7.xml Submit: EPG-Grabbers and tuningdetails 0
    B xml file for perfect player Newcomers Forum 1
    D Large xml database in My Movies Management. I remain unclear on use My Films as bridge to MP2.2 General 9

    Similar threads

    Top Bottom