NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 53 54 55 56 57 … 102 Next »
AutoMap XML Error

 
  • 0 Vote(s) - 0 Average
AutoMap XML Error
arud01ph
Offline

Junior Member

Posts: 13
Threads: 3
Joined: Dec 2019
#1
2021-11-20, 05:31 PM
Hi,

I recently replaced my IPTV provider and am experiencing an issue when automapping the new XMLTV file.
I can manually map a channel on the Settings/Channel page, however I am getting an object reference error in the log during the AutoMap process.

Log snip...
2021-11-20 11:18:37.537 [DEBUG][24] Got request [192.168.1.9]: /services/service (setting.epg.automap)
2021-11-20 11:18:37.538 [DEBUG][24] method=setting.epg.automap
2021-11-20 11:18:37.539 [DEBUG][24] parameters:
2021-11-20 11:18:37.539 [DEBUG][24]   method: setting.epg.automap
2021-11-20 11:18:37.540 [DEBUG][24]   format: json
2021-11-20 11:18:37.540 [DEBUG][24]   type: ATSC
2021-11-20 11:18:37.541 [DEBUG][24]   source: xmltv--1774079704
2021-11-20 11:18:37.541 [DEBUG][24]   prefer: default
2021-11-20 11:18:37.541 [DEBUG][24]   sid: dbe4019f-7385-4bba-8801-223206849561
2021-11-20 11:18:37.542 [DEBUG][24]   client_ip: 192.168.1.9
2021-11-20 11:18:37.542 [DEBUG][24]   user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
2021-11-20 11:18:37.543 [DEBUG][24]   host_callback: ...
2021-11-20 11:18:37.543 [DEBUG][24] setting.epg.automap
2021-11-20 11:18:37.561 [DEBUG][24] CaptureSource.LoadAll()
2021-11-20 11:18:37.580 [DEBUG][24] Loading XMLTV from: D:\NextPVR.Versions\m3u_temp\A.xml
2021-11-20 11:18:38.237 [ERROR][24] System.NullReferenceException: Object reference not set to an instance of an object.
  at NShared.XmltvEPGSource.GetSuggestedMapping(Channel channel, List`1 mappings, String tvgID)
  at NShared.Extend.SettingsRequestHandler.AutoMapChannels(Dictionary`2 parameters)
  at NShared.Extend.SettingsRequestHandler.HandleRequest(String method, Dictionary`2 parameters)
  at NShared.Extend.PluginFactory.HandleRequest(ServiceResponseStream serviceResponseStream, Dictionary`2 parameters)
  at NPVR5.Controllers.ServicesController.HandleServiceRequest(String body, String contentType)

The xml provided has a couple of differences as compared to the last.
 - Missing <!DOCTYPE tv SYSTEM "xmltv.dtd">
 - A number of channels are missing the <icon src> tag, including the first entry

Modified the XML by:
   - Add the missing DOCTYPE
   - Only included:
      - 7 channels containing the <icon src> child
      - Removed all but a few <programme> entries to narrow the cause

Manually mapping from this modified file works.
On AutoMap it doesn't throw a null exception now, however nothing was found?
2021-11-20 11:39:49.270 [DEBUG][50] CaptureSource.LoadAll()

2021-11-20 11:39:49.276 [DEBUG][50] Loading XMLTV from: D:\NextPVR.Versions\m3u_temp\A.xml
2021-11-20 11:39:49.883 [DEBUG][50] AutoMap found matches for 0 channels
2021-11-20 11:39:49.883 [DEBUG][50] {"stat":"ok"}

Hope the observations/research helps.  If there is anything else I can try or info I can provide...

Thank you!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,096
Threads: 957
Joined: May 2006
#2
2021-11-20, 05:39 PM (This post was last modified: 2021-11-20, 05:39 PM by mvallevand.)
I don't know about type ATSC, I would think the strategy is IPTV

2021-11-20 11:18:37.540 [DEBUG][24] type: ATSC
2021-11-20 11:18:37.541 [DEBUG][24] prefer: default

and it should be prefer Names

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#3
2021-11-20, 05:39 PM
Its' not clear to me why you might be getting the NullReferenceException. If you want to supply the A.xml, I can take a look. It's fine for the DOCTYPE to missing.

Quote:I recently replaced my IPTV provider and am experiencing an issue when automapping the new XMLTV file.
Realistically, when this type of change happens with IPTV, it's usually easier to delete the IPTV source and re-add it. IPTV channels often have names that don't match the names in the XMLTV files, so it's usually best to recreate the source, and it uses the tvg-id in the m3u source to do the mapping, which is a different process than trying to map by name.
arud01ph
Offline

Junior Member

Posts: 13
Threads: 3
Joined: Dec 2019
#4
2021-11-20, 06:12 PM (This post was last modified: 2021-11-20, 06:13 PM by arud01ph.)
[attachment=undefined][attachment=undefined]mvallevand:
I have an ATSC dongle too...
When I changed providers, I started from scratch/fresh data folder.
OK!  Mapping by channel name worked from the modified xml

sub:
Attached non-modified xml (edit - Thought I attached it... trying again)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,788
Threads: 769
Joined: Nov 2003
#5
2021-11-20, 06:16 PM
(2021-11-20, 06:12 PM)arud01ph Wrote: sub:
Attached non-modified xml (edit - Thought I attached it... trying again)
Attachements need to be zipped. There is a size limit though, so if it's a big file, you typically need to put it somewhere like one drive / google drive etc, and just share the download link.
arud01ph
Offline

Junior Member

Posts: 13
Threads: 3
Joined: Dec 2019
#6
2021-11-20, 06:26 PM
It was too big, yes.  Here's a link.

https://drive.google.com/file/d/15TORBUw...sp=sharing
arud01ph
Offline

Junior Member

Posts: 13
Threads: 3
Joined: Dec 2019
#7
2021-11-28, 03:18 AM
The XML is malformed from the provider.
Lame. Working on parsing it.

Thanks for the suggestions guys.

-Adam
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows could not start the NextPVR Service service on Local Computer Error 193:0xc1 Jimmyts100 7 5,756 2025-06-18, 06:26 PM
Last Post: jcole998
  error: No tuner was available for the requested channel jzk 3 329 2025-04-19, 03:30 PM
Last Post: mvallevand
  Video image error on software kellanphil 1 252 2025-02-28, 04:11 AM
Last Post: sub
  EPG Script Error? RedDevilJoe 4 400 2025-02-01, 01:16 AM
Last Post: RedDevilJoe
  Error 400 wakecars067 16 2,206 2024-09-15, 11:59 PM
Last Post: mvallevand
  Error at 58 minutes playback Offroad 4 667 2024-06-01, 01:17 PM
Last Post: Offroad
  Files Still Open Error fccgrant 14 1,628 2024-03-29, 06:53 PM
Last Post: fccgrant
  Application Error crash apuftw 8 2,707 2024-01-25, 09:30 PM
Last Post: sub
  Automap lost a channel SamM 2 522 2024-01-07, 04:52 PM
Last Post: Colincam
  Failure to wake and powercfg error nextmel 6 1,254 2024-01-05, 08:19 PM
Last Post: gEd

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode