Feature #3529
Utilize <new /> or <previously-shown /> tags in tv_grab_file.xmltv when setting up recordings
0%
Description
I posted a message asking about this in the forum and after two weeks got no response so I am assuming this is something TVHeadEnd does not already do.
I use a program called zap2xml to generate the tv_grab_file.xmltv used by TVHeadEnd, and use tv-grab-file to import the program listings. Very often a program listing will include a tag like <new /> or <previously-shown /> - here is an example of two shows with the tags:
<programme start="20160110193000 -0500" stop="20160110210000 -0500" channel="C6pbs.zap2it.com"> <title lang="en">Masterpiece Classic</title> <sub-title lang="en">Downton Abbey Season 6 on Masterpiece</sub-title> <desc lang="en">Downton Abbey is threatened.</desc> <episode-num system="dd_progid">EP01088332.0163</episode-num> <video> <aspect>16:9</aspect> <quality>HDTV</quality> </video> <previously-shown /> </programme> <programme start="20160110210000 -0500" stop="20160110220000 -0500" channel="C6pbs.zap2it.com"> <title lang="en">Masterpiece Classic</title> <sub-title lang="en">Downton Abbey Season 6 on Masterpiece</sub-title> <desc lang="en">Wedding plans hit a snag.</desc> <date>20160110</date> <episode-num system="dd_progid">EP01088332.0164</episode-num> <video> <aspect>16:9</aspect> <quality>HDTV</quality> </video> <new /> </programme>
What I am requesting is that TVHeadEnd read these tags into its database if it does not do so already, and then on the DVR AutoRec Entry page allow selection of a program for recording based on the presence or absence of one of those tags. I am using HTS Tvheadend 4.0.8 and if there is already a way to do it, I don't see it. The obvious goal would be to automatically record only the new shows and skip the ones tagged as previously shown. Not all programs have these tags, but most of the major television network shows do.
It would also be good if the content of these tags, when available, is shown in the Details field (when you click the (i) icon) along with the program description, so you can tell if an episode is new or is a rerun. But the main thing is to be able to select on these so you can specify that you only want to record a show that is tagged as new, or that is not tagged as previously-shown (or maybe the opposite if for some odd reason you only want to record reruns).
History
Updated by K Shea almost 9 years ago
That second paragraph got partially eaten. It should have read:
Very often a program listing will include a tag like <new /> or <previously-shown /> - here is an example of two shows with the tags:
Updated by Jaroslav Kysela almost 9 years ago
- Status changed from New to Need feedback
v4.1-1444-g8b906ac:
- the EPG dialog should show new/repeat flags
- the autorec has 'broadcast type' field now where you can select filter for the broadcast type (new/premiere or repeated)
Please, report back your results.
Updated by Jaroslav Kysela almost 9 years ago
Parsing of previously-shown tag was fixed in v4.1-1450-g10fe6da .
Updated by James McMullin almost 9 years ago
I have been trying to find this feature and happened upon the request the same day "Broadcast Type" was added. I hadn't had a chance to report back until now. My Autorecs are not picking up on the <new /> tag when I have "new / premiere / unknown" selected in their properties. I did verify the recording is set correctly when I switch the type back to "Any". This was one of my test shows:
<programme start="20160202210000 -0600" stop="20160202220000 -0600" channel="I34222.labs.zap2it.com">
<title lang="en">Chicago Fire</title>
<sub-title lang="en">The Sky Is Falling</sub-title>
<desc lang="en">Chili's erratic behavior continues.</desc>
<date>20160202</date>
<category lang="en">Series</category>
<episode-num system="dd_progid">EP01567915.0084</episode-num>
<video>
<aspect>16:9</aspect>
<quality>HDTV</quality>
</video>
<new />
<subtitles type="teletext" />
</programme>
Updated by James McMullin almost 9 years ago
Sorry, trying again on the pasting the show
<programme start="20160202210000 -0600" stop="20160202220000 -0600" channel="I34222.labs.zap2it.com"> <title lang="en">Chicago Fire</title> <sub-title lang="en">The Sky Is Falling</sub-title> <desc lang="en">Chili's erratic behavior continues.</desc> <date>20160202</date> <category lang="en">Series</category> <episode-num system="dd_progid">EP01567915.0084</episode-num> <video> <aspect>16:9</aspect> <quality>HDTV</quality> </video> <new /> <subtitles type="teletext" /> </programme>
Updated by Jaroslav Kysela almost 9 years ago
james hook : Have you tried v4.1-1450-g10fe6da ? The previous code set the internal repeat flag for all imported events so the check for new/premiere didn't work before.
Updated by James McMullin almost 9 years ago
I have 1449. I will update and try again. Thanks for the response and work on this feature. It is exactly what I needed.
Updated by James McMullin almost 9 years ago
Upgraded to 4.1-1451~gf074688 but my AutoRecs still do not set when Broadcast Type is on "New ...". I am willing to provide further information but I am not sure what would be useful.
Updated by Jaroslav Kysela almost 9 years ago
You should remove the EPG database - epgdb.v2 file in the tvh configuration directory, otherwise the fix is not activated.