Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: Local XMLTV file for IPTV EPG

  1. #21
    Join Date
    Nov 2005
    Location
    PA, USA
    Posts
    529
    I think you've got it!
    First results look good; I'll continue working with it.

    Question: You gave me the new syntax for the EPG source; i.e. backward slash "".
    Should I still be using a forward slash "/" for the channel source?

    As always, thanx for all your work.

  2. #22
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    88,876
    It might not matter, but \ is probably better on Windows.

  3. #23
    Join Date
    Nov 2005
    Location
    PA, USA
    Posts
    529
    I did a test with my custom EPG.xml file.
    It does the import OK, and if I look at the channel XML source it's pointing to my custom file.
    Looks like it should work.

    However, after I update the EPG and look at the actual guide it's filled with "no show details".

    If I go back to the channels setting and click on the XML source again, and just click OK, without making any changes, then after another update the guide is displaying the correct info???

  4. #24
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    88,876
    I'm not sure why that would be - I didn't have to do that here.

  5. #25
    Join Date
    Nov 2005
    Location
    PA, USA
    Posts
    529
    Quote Originally Posted by pBS View Post
    i've been using it this way for same reasons for about a year now.. but it does have initial setting of 'none' and i just select 'xmltv' and my previous xml path is still there to select and choose channel.
    This is from message #13.
    It seems very similar to what I'm trying to describe.


    On second thought, maybe not.

  6. #26
    Join Date
    Nov 2005
    Location
    PA, USA
    Posts
    529
    What I've learned so far...

    When I import my custom EPG.xml file, it loads up the egp_mapping field in the Channel Table
    with data, but the channel_id is incorrect. Looks like it's coming from the p2.xml file from Vaders‎?

    So at this point I can understand why the Guide would display no data.

    However, if I simply open the channel details window, make no changes and click OK, the
    proper channel_id is updated in the DB, and the Guide will now display the data.
    And I need to do this on a channel-by-channel basis; it will only update the single channel I've opened.

    So it seems to me the correct channel_id is in my custom XML, but for whatever reason it's
    not read in when I first do the Import using the "file://C:\epg.xml" method.

    Does this make any sense to you?
    Where should I look next?

  7. #27
    Join Date
    Nov 2005
    Location
    PA, USA
    Posts
    529
    I have attached my channel and epg files.
    They have been stripped down to a single channel for simplicity.
    When you get a chance try importing them and see if you get the same results I do.
    There should be one program in the guide on 4/17/2019 at 8:50 PM.
    Attached Files Attached Files

  8. #28
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    88,876
    Your m3u has this:

    Code:
    #EXTINF:-1, tvg-id="BBC1.uk" tvg-logo="http://vaders.tv/logos/bbc%20one%20hd.png" tvg-name="BBC One HD"  group-title="United Kingdom",BBC One HD
    http://vapi.vaders.tv/play/...snip....
    This is saying the "tv guide id" (tvg-id) is "BBC1.uk".

    In your xmltv file, you don't have a channel with the guide id of "BBC1.uk". Instead, it has id="EPG123.87840.schedulesdirect.org".
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <tv date="4/14/2019 7:09:44 AM" source-info-url="http://schedulesdirect.org" source-info-name="Schedules Direct" generator-info-name="EPG123" generator-info-url="http://epg123.garyan2.net">
      
       <channel id="EPG123.87840.schedulesdirect.org">
        <display-name>BBC1LDH</display-name>
        <display-name>BBC One HD (London)</display-name>
        <display-name>101 BBC1LDH</display-name>
    ...snip...
    "BBC1.uk" and "EPG123.87840.schedulesdirect.org" don't match, so no listings. If they matched, you'd have listings.

  9. #29
    Join Date
    Nov 2005
    Location
    PA, USA
    Posts
    529
    I understand what you're saying about the mapping needing to be correct.

    However, when the files are initially imported, the DB is as follows: <mapping_id>BBC1.uk</mapping_id>
    Where did that mapping even come from; it's not in the XMLTV file?
    And shouldn't that have worked? It's the same mapping as the "tv guide id".

    What makes it more confusing to me is why a simple open and close of the channel details screen changes the mapping in the DB to: <mapping_id>EPG123.87840.schedulesdirect.org</mapping_id>
    And that does produce a listing.
    How is that possible? The mapping is different at this point?

    I'm just trying to get a better understanding of what's going on.

  10. #30
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    88,876
    Quote Originally Posted by jrockow View Post
    I understand what you're saying about the mapping needing to be correct.

    However, when the files are initially imported, the DB is as follows: <mapping_id>BBC1.uk</mapping_id>
    Where did that mapping even come from; it's not in the XMLTV file?
    It came from the m3u file. That's the way it's supposed to work. ie:

    #EXTINF:-1, tvg-id="BBC1.uk"
    http://vapi.vaders.tv/play/...snip....

    This is saying the tv guide id is "BBC1.uk", and it should use listings from the XMLTV file which have the channel ID "BBC1.uk".



    What makes it more confusing to me is why a simple open and close of the channel details screen changes the mapping in the DB to: <mapping_id>EPG123.87840.schedulesdirect.org</mapping_id>
    And that does produce a listing.
    How is that possible? The mapping is different at this point?
    Yes, changing the mapping to a channel that exists will get you listings. The problem is that your m3u has a tvg-id that doesn't match the ids used in your xml file.

    For it to have worked automatically you either need:
    1) your m3u to have: #EXTINF:-1, tvg-id="EPG123.87840.schedulesdirect.org"...
    2) or your xml to use:
    <channel id="BBC1.uk">
    <display-name>BBC1LDH</display-name>
    <display-name>BBC One HD (London)</display-name>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •