<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 19, 2016 at 1:24 AM, Jan Ceuleers <span dir="ltr"><<a href="mailto:jan.ceuleers@gmail.com" target="_blank">jan.ceuleers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear list,<br>
<br>
I have multiple listings sources, in part because there is no single<br>
listings source that has all of the data that I need. Each listings<br>
source has its own program ID scheme, so I can't rely on program IDs for<br>
duplicate checking, particularly of shows that might be broadcast on<br>
multiple channels and therefore get to me via multiple listings sources<br>
(such as movies).<br>
<br>
I thought I had solved this problem by including the following in my<br>
daily listings cleanup script:<br>
<br>
# Force duplicate matching to rely on title, subtitle, description (or<br>
whatever<br>
# is set in the recording rule) by getting rid of program IDs which are not<br>
# consistent between listings sources.<br>
update program set programid="";<br>
<br>
This gets executed after the mythfilldatabase --file runs (for each of<br>
the listings sources) and is followed by a mythutil --resched.<br>
<br>
The rule using which I record all movies has its duplicate check method<br>
set to Subtitle.<br>
<br>
Yet I still see duplicate movies in the upcoming recordings. For<br>
example, I could have sworn that I recently watched and then deleted<br>
(without "allow re-record") Escape from Alcatraz, but it is again going<br>
to be recorded.<br>
<br>
Can anyone suggest how I can further troubleshoot this? For example:<br>
<br>
- how can I confirm that Escape from Alcatraz was indeed recently deleted?<br>
- how do I double-confirm that the upcoming showing of this movie is<br>
being recorded because of the recording rule that includes Subtitle as<br>
its duplicate setting (although mythweb already says so)?<br>
- any other troubleshooting steps you would recommend?<br>
<br>
Many thanks, Jan<br></blockquote><div><br></div><div>Here are some mysql queries that might start to shed some light:<br></div><div>Show upcoming programs:<br></div><div>SELECT programid, channum, callsign, listingsource, starttime, title, subtitle, description FROM program, channel WHERE program.chanid=channel.chanid AND title='Escape From Alcatraz';<br></div><div>Show previously recorded programs:<br><div>SELECT programid, channum, callsign, starttime, recstatus, 
title, subtitle, description FROM oldrecorded, channel WHERE 
oldrecorded.chanid=channel.chanid AND title='Escape From Alcatraz';<br><br></div><div>The recstatus field may be interesting there. Here's the enumeration of that value: <a href="https://github.com/MythTV/mythtv/blob/v0.27.3/mythtv/libs/libmyth/programtypes.h#L210">https://github.com/MythTV/mythtv/blob/v0.27.3/mythtv/libs/libmyth/programtypes.h#L210</a><br><br></div><div>Karl<br></div><br></div></div></div></div>