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