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!
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!