mc2xml seems to work but no EPG is imported in MP2 (3 Viewers)

jfd553

Portal Member
January 2, 2016
43
6
Home Country
Canada Canada
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 hoping that would solve the problem, but it did not.

I use ScheduleDirect which works fine. I grabbed EPG using mc2xml.exe which updates the tvguide.xml file, but not the MP2 TV Guide. Using the xmltv plugin directly from the TV Server Configuration tool, it says that the import was successful, but I did not get any program imported.

Screenshot 2025-11-01 155823.png


It looks similar to this post but in that case they did not use mc2xml to import EPG.

Any ideas?
 

CyberSimian

Test Group
  • Team MediaPortal
  • June 10, 2013
    3,336
    2,256
    Southampton
    Home Country
    United Kingdom United Kingdom
    I grabbed EPG using mc2xml.exe which updates the tvguide.xml file, but not the MP2 TV Guide.
    Is there any sort of log file created by the XmlTv plugin? Or does it place log entries in the TV Server log file? If yes, please post the log file here.

    My guess would be that there is something about the tvguide.xml file that the plugin does not like. The log entries may tell us what.

    -- from CyberSimian in the UK
     

    jfd553

    Portal Member
    January 2, 2016
    43
    6
    Home Country
    Canada Canada
    The only log I’m aware of is the “import status report” visible at the bottom of the image I posted. mc2xml doesn’t offer a detailed logging option. I run a script daily to update the tvguide.xml file (which seems to work properly) and pipe the program log to a file (mc2xml.exe… > mc2xml.log), which remains empty.

    I encountered the problem a few days ago when I noticed the MP2’s TV guide was empty. Could this be the XMLTV plugin (32 bits?) not compatible anymore with my 64-bit architecture, as suggested in the post I referenced earlier?
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    3,336
    2,256
    Southampton
    Home Country
    United Kingdom United Kingdom
    Could this be the XMLTV plugin (32 bits?) not compatible anymore with my 64-bit architecture,
    Yes, that could be the problem.

    There are two versions of the XmlTv package -- one for 32-bit, and another for 64-bit. I think that it is the bitness of the application that interfaces to XmlTv that determines which version you should be using. So if your MP2 is 64-bit, you should be using the 64-bit version of XmlTv.

    Go to the web page shown below. On it are various zip files for XmlTv 1.4.0. Download the one for 64 bit. Check to see if the 32-bit XmlTv already installed has an uninstaller. If it does, uninstall it first, before installing the 64-bit XmlTv.


    -- from CyberSimian in the UK
     

    jfd553

    Portal Member
    January 2, 2016
    43
    6
    Home Country
    Canada Canada
    I thought the XmlTV plugin was installed with MP2. I checked in the programs installed on Windows, but I couldn't find it.

    So, my question might seem naive, but where should I place the contents of the xmltv-1.4.0-win64.zip file in the MP2 directories? Did not find anything in the wiki.
     

    jfd553

    Portal Member
    January 2, 2016
    43
    6
    Home Country
    Canada Canada
    Additional information.

    While browsing the MP2 directories, I found two references to xmltv:
    a) ...\MP2-Server\Plugins\SlimTv.Service3\XmlTvImport.dll
    b) ...\MP2-Server\Plugins\SlimTv.Service3\ProgramData\ProgramData.zip\xmltv

    In b, the xmltv directory is in a .zip file that contains two other files: a xmltv.dtd and a Readme.txt.
    The Readme.txt says ...
    "To use Mediaportal's internal xmltv configuration and scheduler, you should unpack the xmltv in this folder. [... then refer to a *-Win32 zip - which should be *-Win64 in my case then ...] After unpacking in this folder, you can use it from within MediaPortal."

    It all depends on how the program (.dll?) runs. Should I extract the content of *-Win64.zip in
    ...\ProgramData\ProgramData.zip\xmltv
    ...\ProgramData\ProgramData.zip
    ...\ProgramData

    I am not familiar with this stuff and I do not want to scrap something unintentionally.
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    3,336
    2,256
    Southampton
    Home Country
    United Kingdom United Kingdom
    I am not familiar with this stuff
    Unfortunately, neither am I. :(

    As an MP1 user, I have only played briefly with MP2, and I don't use an internet EPG. (The UK benefits from having a 7-day EPG that is broadcast as part of the TV data stream.)

    I think that the "XmlTvImport.dll" is the plugin that is provided with MP. My guess is that the files from the XmlTv package that you downloaded from Sourceforge should be unzipped and placed in the same folder as the DLL (but this is just a guess).

    After copying the files, reboot and then make sure that you use "TV Server Config" to specify all of the necessary settings for the XmlTv plugin (examine all tabs and check all fields).

    -- from CyberSimian in the UK
     

    jfd553

    Portal Member
    January 2, 2016
    43
    6
    Home Country
    Canada Canada
    Thanks, maybe someone more familiar with this content can help me from here :)
     

    jfd553

    Portal Member
    January 2, 2016
    43
    6
    Home Country
    Canada Canada
    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 old EPG (September). Since the entire program schedule was outdated, it didn’t appear in the MP2 TV guide.

    I replaced all the mc2xml.* files with newly downloaded ones. I initialized mc2xml using the Windows mc2xml quickstart procedure , and everything is now working correctly.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom