NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support v
1 2 3 4 5 … 43 Next »
first_run usage

 
  • 0 Vote(s) - 0 Average
first_run usage
janoonk
Offline

Member

Netherlands
Posts: 107
Threads: 34
Joined: Dec 2020
#1
Yesterday, 08:17 AM (This post was last modified: Yesterday, 08:17 AM by janoonk.)
Hi,

For example on Discovery you have a show called "Gold rush: White water" where same episode is aired multiple times. I want to prevent duplicate recording so i set my recording rule to "Record Series (NEW episodes)".
That didn't work because the column first_run for all EPG_EVENT data is always set to 'Y' and is not updated. I am using the EPG data from DVB-C from my provider.
Since it was not set I thought let's make a config/PostLoadEPG.sh script which runs a complex .sql statement that uses the episode-num in the metadata of the description and checks the start_time for episodes having the same episode-num and then updates the first_run column, this works. But I ran into a problem because every 24 hours all EPG data is deleted from EPG_EVENT table including old events (laying in the past), so my previously and correctly first_run='N' episode is now updated by my SQL query back to first_run='Y' and stays Y until aired.

Can I somehow retain old EPG_EVENT data for some days before being deleted? Or do I need to save a copy of all first_run='N' instances?
I do wonder how this `first_run` can be used reliably when its not set by EPG data directly.
Bobins
Offline

Posting Freak

UK (North West)
Posts: 1,227
Threads: 139
Joined: Sep 2004
#2
Yesterday, 10:39 AM
Obvious question,

Have you ticked the "Avoid duplicates where possible" box on the General Settings page?

Ray.
NPVR Version= 7.0.2.250621
Intel i5 Ten Core 14400 + 16GB DDR5 in Gigabyte B760 AX Motherboard
Windows 11 Pro 64bit
TBS-6902 dual DVB-S tuner
TBS-6205 quad DVB-T tuner
500Gb System Disk (M2 Nvme SSD)
4Tb Media Store (2 x 2Tb M2 Nvme SSD Spanned)

Raspberry Pi3 B+, Pi4B (OSMC) & Pi5 (XBian) running Kodi v21.1
janoonk
Offline

Member

Netherlands
Posts: 107
Threads: 34
Joined: Dec 2020
#3
Yesterday, 10:49 AM
(Yesterday, 10:39 AM)Bobins Wrote: Obvious question,

Have you ticked the "Avoid duplicates where possible" box on the General Settings page?

Ray.

yes it's ticked
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#4
Yesterday, 11:59 AM
This value is set by the EPG source. If the guide data doesn't include S/E information or provide a unique ID there is no easiy way to avoid duplicates.

If NextPVR is setting the unique id then the setting you need to changes is <DVBAssumeNew>true</DVBAssumeNew> to false. You also need <ShowNewInGuide>true</ShowNewInGuide> as false to control the visible display.

For some guide data NextPVR is able to parse the S/E from the description, I am not sure about your source. The major issue is this might not be reliable for every station of every channel and it up to you to understand this. If you have a reliable way of setting the unique ID or the first run flag run your script in PostLoadEPG which runs before the recordings are created.

If this is important to you maybe try Schedules Direct. It is available in the Nederlands and in many countries as very good unique ID process.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Avoid Duplicate Recordings - selective usage? daneo 2 1,473 2020-05-20, 07:23 PM
Last Post: mvallevand
  ffmpeg resource usage thecubasekid 18 5,991 2020-04-25, 05:31 PM
Last Post: mvallevand
  Tuner Usage jcole998 4 2,388 2019-08-12, 01:16 PM
Last Post: jcole998

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

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

Linear Mode
Threaded Mode