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 … 9 10 11 12 13 … 73 Next »
NextPVR - wrong parsing of episode data?

 
  • 0 Vote(s) - 0 Average
NextPVR - wrong parsing of episode data?
chjohans
Offline

Junior Member

Singapore
Posts: 4
Threads: 1
Joined: Oct 2022
#1
2022-10-07, 02:22 AM (This post was last modified: 2022-10-07, 02:24 AM by chjohans.)
I'm using NextPVR as a backend, with Emby and the EMby plugin for NextPVR.

I'm on Version: 5.2.7.220410 of NextPVR, on Windows 10, as I'm not sure that the Emby plugin has support for version 6.x.

I have "series recording" enabled for a couple of daily news broadcasts, and I just noticed that this stopped recording a couple of days ago. This happened just when the "Episode" for the news program(s) passed 1000.

I noticed that NextPVR seems to "truncate" the episode number to three digits so that episode 1001 becomes episode 100. Since Emby gets EPG data from the NextPVR plugin, it gets the wrong episode numbers and thinks it has already recorded the upcoming episodes. Or rather, it will schedule for recording every 10th episode above 1000 as E1001 becomes E100 in Nextpver and remains at that until E1010 becomes E101, then it stays at that until E1021 becomes E102, and so on.

Please see the attached screenshot of EPisode S01 E1006 of a news broadcast, and notice how this is truncated to S01E100. Here is the entry in my XMLTV source for this exact episode:



Code:
<programme start="20221007020000" stop="20221007030000" channel="CNA">
    <title lang="en">Asia Tonight</title>
    <sub-title>Episode S1 E1006</sub-title>
    <desc lang="en">CNA correspondents bring you the top stories of the day with 'live' reports and interviews to keep you up-to-date on the day's events.</desc>
    <icon src="https://production.togglestatic.com/shain/v1/dataservice/ResizeImage/$value?Format='jpg'&amp;Quality=85&amp;ImageId='5230082'&amp;EntityType='LinearSchedule'&amp;EntityId='26082941-ae82-41c4-a01e-3380e3fb1d92'&amp;Width=1280&amp;Height=720&amp;device=web_browser&amp;subscriptions=Anonymous&amp;segmentationTags=all" />
    <episode-num system="onscreen">S1 E1006</episode-num>
  </programme>


I was able to work around this issue by deleting all guide data from NextPVR itself and adding the same XMLTV guide to Emby, so that Emby gets its EPG directly rather than through the NextPVR plugin. This seems to work, and the episode numbers are now correct also when E is above 1000. This of course means that I have no EPG in NextPVR, but I can live with that as I mainly watch TV through the various Emby clients.

Is this a known issue, and is there a solution to this?

Granted, a series with episodes above 1000 might be rare, but I actually have more than one such case in my XMLTV source (grabbed with WenGrab+ from the broadcaster's online guide). There is nothing in the XMLTV

And, maybe this is a long shot, but does anyone happen to know if the NextPVR plugin in Emby will work with Nextpver Version 6.x?
(I was thinking this might have been fixed in a version later than what I'm currently on)


Attached Files Thumbnail(s)
   
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,396
Threads: 868
Joined: May 2006
#2
2022-10-07, 03:02 AM
Sub, I looked at the regex that the strings64.exe command output and there is a mix of \d+ and \d{1,3}. I saw the post on the Emby forum and it looks like WebGrab+ is putting monthday as the episode in this case. I am worried about \d+ because this weird use of episode could really be screwy if the grabber had put 202210006 in there. I am not even sure if apps like Kodi and other NextPVR clients format it correctly, I'd have to do some testing with 4 digits.

Martin
chjohans
Offline

Junior Member

Singapore
Posts: 4
Threads: 1
Joined: Oct 2022
#3
2022-10-07, 04:42 AM
Thanks, it works for me now by not using any EPG in NextPVR, but others might run into the same or a similar issue. The episode data is perfectly valid according to the XMLTV DTD. WebGrab+ is just grabbing the episode data, not using monthday, but it might very well be that the site it's grabbing from (https://www.mewatch.sg/channels/cna/97072) use monthday as it's episode number. But in any case, it's a perfectly valid episode number.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,457
Threads: 743
Joined: Nov 2003
#4
2022-10-07, 05:17 AM
If you can supply a sample xmltv file, I'll fix it for the next build. I can't do anything about old v5 builds though.

Quote:I'm on Version: 5.2.7.220410 of NextPVR, on Windows 10, as I'm not sure that the Emby plugin has support for version 6.x.
It should work fine with v6. For the most part v6 was about moving to a newer version of the .NET runtime. The network api etc (that Emby use) didn't change.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,396
Threads: 868
Joined: May 2006
#5
2022-10-07, 08:17 PM (This post was last modified: 2022-10-07, 08:17 PM by mvallevand.)
I forced episode to 4 digit and tested Kodi and it doesn't have any issue with it so this seems OK. Where I saw it in the code with strings64.exe was

.*S(?<SeasonNumber>\d{1,3}).?E[p]?(?<EpisodeNumber>\d{1,3})
^(?<SeasonNumber>\d{1,3})\\\/(?<EpisodeNumber>\d{1,3})\.

If you change that you might want to change SeasonNumber too since year is a valid season number.

Martin
chjohans
Offline

Junior Member

Singapore
Posts: 4
Threads: 1
Joined: Oct 2022
#6
2022-10-09, 12:45 PM (This post was last modified: 2022-10-09, 12:54 PM by chjohans.)
(2022-10-07, 05:17 AM)sub Wrote: If you can supply a sample xmltv file, I'll fix it for the next build. I can't do anything about old v5 builds though.

Quote:I'm on Version: 5.2.7.220410 of NextPVR, on Windows 10, as I'm not sure that the Emby plugin has support for version 6.x.
It should work fine with v6. For the most part v6 was about moving to a newer version of the .NET runtime. The network api etc (that Emby use) didn't change.

Great, please see the example XMLTV file attached.

It stopped working for me again as NextPVR would again populate its EPG from DVB/ATSC EPG, and I see no option to disable that. So the EPG from NextPVR will again overrule the (correct) XMLTV in Emby, so a quick fix for this would be greatly appreciated. It won't be any peace at home until my wife gets her news recordings back.....

In the meantime I'll upgrade to NextPVR 6.0, and hopefully, a new build with this issue fixed will arrive sooner rather than later! Smile

Edit: Found a way to disable the EPG from DVB/ATSC EPG, turns out it had a default time set to update the EPG. I cleared that and now it says "No automatic EPG update" so hopefully that will stick.

Thanks again!!!


Attached Files
.zip   guide_emby.zip (Size: 161.8 KB / Downloads: 1)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,457
Threads: 743
Joined: Nov 2003
#7
2022-10-09, 05:13 PM
This is fixed for the next build.
chjohans
Offline

Junior Member

Singapore
Posts: 4
Threads: 1
Joined: Oct 2022
#8
2022-10-10, 09:55 AM
Great, thank you!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  kodi 20.1 firetv and latest backend nextpvr for windows kindeshaun@gmail.com 3 59 2023-03-31, 05:28 PM
Last Post: mvallevand
  Schedules direct not working with NextPvr Bied 8 143 2023-01-31, 09:53 AM
Last Post: Bied
  NextPVR isn't working with comm skip Kappen 5 146 2023-01-30, 12:18 PM
Last Post: mvallevand
  OMG, the Easy way to Add a single channel to NextPVR benhase 1 178 2023-01-23, 01:05 PM
Last Post: HarryH3
  NextPVR Client Window not Full Screen steghead 7 159 2023-01-20, 02:08 PM
Last Post: steghead
  NextPVR No video playback jfjones_1832 15 408 2023-01-19, 09:46 PM
Last Post: jfjones_1832
  NextPVR Client Window not Full Screen steghead 0 64 2023-01-19, 09:02 AM
Last Post: steghead
  NextPVR Client Window not Full Screen steghead 0 67 2023-01-19, 09:01 AM
Last Post: steghead
  Windows could not start the NextPVR Service service on Local Computer Error 193:0xc1 Jimmyts100 6 632 2023-01-10, 04:09 AM
Last Post: mvallevand
Question nextPVR playing atsc 3.0 using HDHomerun 4k gar747 3 192 2022-12-13, 05:25 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode