NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 246 247 248 249 250 … 433 Next »
NPVR Fails to Read Information from EPG

NPVR Fails to Read Information from EPG
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,809
Threads: 769
Joined: Nov 2003
#11
2013-09-04, 01:46 AM
Can you post the full xmltv file? Regardless of what the channel section at the top of the xmltv file says, from that log I'd only [x] of those channels actually have listings in the xmltv file.

I'm guessing it's an mc2xml problem, or problem with the data it's getting from Microsoft, otherwise we'd be seeing lots of people reporting it from around the world.
drlava
Offline

Member

Posts: 192
Threads: 18
Joined: Jul 2007
#12
2013-09-04, 04:01 AM
Sure, here it is attached.

If the problem were with the listings, how do you explain the fix being a twerk with npvr?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,809
Threads: 769
Joined: Nov 2003
#13
2013-09-04, 04:11 AM
Those channels seem to all have listings here.

The only possible things I can see happening are:
- sometimes mc2xml is generating your xmltv file is with different channel id strings, causing the listings to match some of the mapped channel
- sometimes your xmltv file contains errors and it's stopping processing the file part way through.

I'm happy to help you work out the cause, but don't believe its a NextPVR problem since this stuff area of code hasn't changed in like 3 years, and it's been super reliable. I've not seen other reports of problems loading xmltv listings.

When the next release is out, I could give you a patch with a super amount of logging around the processing of your xmltv file, so it tells us clearly why some listings aren't being used. I'm sure it'll be one of the two things I said above. Unfortunately my build isn't compatible with 2.6.2, so I cant give you a patch for the current release.
drlava
Offline

Member

Posts: 192
Threads: 18
Joined: Jul 2007
#14
2013-09-04, 04:34 AM (This post was last modified: 2013-09-04, 04:46 AM by drlava.)
sub Wrote:- sometimes mc2xml is generating your xmltv file is with different channel id strings, causing the listings to match some of the mapped channel

Yes, this is it. See my post 7 here. When new OTA channels are inserted in the lineup, the channel ID string in the xmltv file is changed, but the <display-name> isn't. SO, the 'twerk' fix I mentioned before gets NPVR to re-associate an ID string to the new display-name by 'editing' each channel. All that needs to be done is have NPVR re-scan for display-names when it does a guide update instead of having it rely on the old id string that it grabbed from the initial display-name lookup.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,809
Threads: 769
Joined: Nov 2003
#15
2013-09-04, 06:13 AM
No, it shouldn't have to do that. It's just a bug in your xmltv grabber or data source. The whole point of the ids is so that the application rely on the ids not changing, even if the channel name changes.

We've never seen the need for this before from other xmltv users, in all the years of NextPVR, and GBPVR before it.
drlava
Offline

Member

Posts: 192
Threads: 18
Joined: Jul 2007
#16
2013-09-05, 02:39 AM
Hmm, I'm using mc2xml. Here's an example of the change:
Code:
Before:
<channel id="I72.28459581.microsoft.com">
        <display-name>49 MyNetworkTV</display-name>
        <display-name>74 49 MyNetworkTV</display-name>
        <display-name>74</display-name>
        <display-name>KPDXDT (KPDX-DT)</display-name>
        <display-name>MyNetworkTV Affiliate</display-name>
    </channel>

After:
<channel id="I74.28459581.microsoft.com">
        <display-name>49 MyNetworkTV</display-name>
        <display-name>74 49 MyNetworkTV</display-name>
        <display-name>74</display-name>
        <display-name>KPDXDT (KPDX-DT)</display-name>
        <display-name>MyNetworkTV Affiliate</display-name>
    </channel>

The only difference is the id string prefix changed from I72 to I74. I guess the solution is I could write a parser that removes this prefix. Then the ID string will stay the same.
thank you for your feedback.
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,671
Threads: 170
Joined: Jun 2007
#17
2013-09-05, 03:31 AM
sub Wrote:No, it shouldn't have to do that. It's just a bug in your xmltv grabber or data source. The whole point of the ids is so that the application rely on the ids not changing, even if the channel name changes.

We've never seen the need for this before from other xmltv users, in all the years of NextPVR, and GBPVR before it.
Sorry to burst your bubble, but I have seen this problem with EPG data coming from Schedules Direct via the xmltv.exe grabber. (See the original post in this thread from 2010. AND I've had this problem happen twice in the last 2-3 weeks. The same work-around "fixes" the problem and gets NextPVR to properly import the EPG data. (from the exact same xmltv data file)
drlava
Offline

Member

Posts: 192
Threads: 18
Joined: Jul 2007
#18
2013-09-05, 04:37 AM (This post was last modified: 2013-09-05, 05:35 AM by drlava.)
What I've done now is added a line in my updateepg.bat that strips out the changing part of the string (see my post above)

using a command line utility:

http://brett.batie.com/software-developm...-editplus/

and the line:
searchReplace "=\"I\d+\.(\d+)\.microsoft\.com\"" "=\"I.${1}.microsoft.com\"" "xmltv.xml" > xmltvmod.xml
del xmltv.xml
ren xmltvmod.xml xmltv.xml

or

http://rxfind.codeplex.com/
rxfind "xmltv.xml" /p:"=\"I\d+\.(\d+)\.microsoft\.com\"" /r:"=\"I.${1}.microsoft.com\"" /q

this turns
<channel id="I72.28459581.microsoft.com">
into
<channel id="I.28459581.microsoft.com">

Note these regular expressions are formatted for my mc2xml OTA legacy microsoft source. YMMV.
If your channel id string has different formatting or no part of it has a unique identifier which stays constant, then this patch won't work.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,196
Threads: 958
Joined: May 2006
#19
2013-09-05, 04:52 AM
BrettB, I think SD uses just the number anyway, why are you bothering with a grabber?

Martin
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,671
Threads: 170
Joined: Jun 2007
#20
2013-09-05, 04:59 AM
BrettB Wrote:Sorry to burst your bubble, but I have seen this problem with EPG data coming from Schedules Direct via the xmltv.exe grabber. (See the original post in this thread from 2010. AND I've had this problem happen twice in the last 2-3 weeks. The same work-around "fixes" the problem and gets NextPVR to properly import the EPG data. (from the exact same xmltv data file)

OK, the activity on this thread (along with my recent problems) got me looking more closely at my xmltv files. It appears that MY problem was caused by UltraXMLTV Enhancer. Apparently, it changes the <channel id> values in the file when it processes it. Yuck!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  npvr is not responding johndutcher 3 1,580 2022-05-05, 07:57 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 4,077 2022-04-14, 04:33 AM
Last Post: Antmannz
  nPVR Continually Wakes PC bfos 23 11,671 2022-02-17, 03:48 PM
Last Post: sub
  Can't find tuner filter in NPVR 4.05 on old XP machine (eee 701) with RTL2832U iamanotheruser 3 1,833 2022-01-03, 04:45 AM
Last Post: mvallevand
  Streaming Services with NPVR tesla1886 4 2,840 2021-01-04, 02:58 AM
Last Post: tesla1886
  NPVR choosing incorrect xml guide display-name after reboot drlava 7 3,258 2020-12-27, 02:27 AM
Last Post: sub
  Can NPVR offset only 3 channel listings in EPG? acemib 20 7,396 2020-04-27, 01:28 PM
Last Post: mvallevand
  Video Meta information made from scratch MPMovieBuff 1 1,736 2020-04-06, 02:51 PM
Last Post: mvallevand
  Import recorded tv shows to NPVR mattman1968 9 6,213 2020-03-03, 12:57 PM
Last Post: Jimixter
  Easiest way to migrate NPVR to a new machine JP23 1 2,032 2020-02-24, 04:55 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode