Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

how do I list previously recorded shows?

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


mylists at wilsononline

Sep 3, 2009, 4:33 AM

Post #1 of 15 (1918 views)
Permalink
how do I list previously recorded shows?

Is there a quick way to like all the episodes of a particular show?

ie what database table is this stored in ? and do these ever expire or get
purged?

thanks
Paul


seven at seven

Sep 3, 2009, 4:40 AM

Post #2 of 15 (1843 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

Select * from oldrecorded;



Enjoy :-)



_____

From: mythtv-users-bounces [at] mythtv
[mailto:mythtv-users-bounces [at] mythtv] On Behalf Of Paul - subscriptions
Sent: Thursday, 3 September 2009 9:33 PM
To: mythtv-users [at] mythtv
Subject: [mythtv-users] how do I list previously recorded shows?



Is there a quick way to like all the episodes of a particular show?

ie what database table is this stored in ? and do these ever expire or get
purged?

thanks
Paul


mylists at wilsononline

Sep 3, 2009, 5:02 AM

Post #3 of 15 (1846 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

The reason I'm wanting is I'm trying to figure out why MythTV is not
recording a new episode as I'm pretty sure its not a duplicate.
ie is this a bug or have I missed something.



On Thu, Sep 3, 2009 at 9:33 PM, Paul - subscriptions <
mylists [at] wilsononline> wrote:

> Is there a quick way to like all the episodes of a particular show?
>
> ie what database table is this stored in ? and do these ever expire or get
> purged?
>
> thanks
> Paul
>


mylists at wilsononline

Sep 3, 2009, 5:06 AM

Post #4 of 15 (1829 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

note I've now checked the "oldrecorded" table and subtitle does NOT exist,
so this must be a bug right?
what else can I check



On Thu, Sep 3, 2009 at 10:02 PM, Paul - subscriptions <
mylists [at] wilsononline> wrote:

> The reason I'm wanting is I'm trying to figure out why MythTV is not
> recording a new episode as I'm pretty sure its not a duplicate.
> ie is this a bug or have I missed something.
>
>
>
>
> On Thu, Sep 3, 2009 at 9:33 PM, Paul - subscriptions <
> mylists [at] wilsononline> wrote:
>
>> Is there a quick way to like all the episodes of a particular show?
>>
>> ie what database table is this stored in ? and do these ever expire or get
>> purged?
>>
>> thanks
>> Paul
>>
>
>


mtdean at thirdcontact

Sep 3, 2009, 8:11 AM

Post #5 of 15 (1836 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

<fixed top posting x2>

On 09/03/2009 08:06 AM, Paul - subscriptions wrote:
> On Thu, Sep 3, 2009 at 10:02 PM, Paul - subscriptions wrote:
>
>> On Thu, Sep 3, 2009 at 9:33 PM, Paul - subscriptions wrote:
>>
>>> Is there a quick way to like all the episodes of a particular show?
>>>
>>> ie what database table is this stored in ? and do these ever expire or get
>>> purged?
>> The reason I'm wanting is I'm trying to figure out why MythTV is not
>> recording a new episode as I'm pretty sure its not a duplicate.
>> ie is this a bug or have I missed something.
> note I've now checked the "oldrecorded" table and subtitle does NOT exist,
> so this must be a bug right?
> what else can I check

No. If Myth says it's a duplicate, it's almost definitely a duplicate.
Duplicate checking doesn't necessarily work the way most people think,
and it's definitely not a simple check.

http://www.gossamer-threads.com/lists/mythtv/users/394050#394050

Mike


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mylists at wilsononline

Sep 3, 2009, 2:22 PM

Post #6 of 15 (1806 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

On Thu, Sep 3, 2009 at 10:06 PM, Paul - subscriptions <
mylists [at] wilsononline> wrote:

> note I've now checked the "oldrecorded" table and subtitle does NOT exist,
> so this must be a bug right?
> what else can I check
>
>
>
>
> On Thu, Sep 3, 2009 at 10:02 PM, Paul - subscriptions <
> mylists [at] wilsononline> wrote:
>
>> The reason I'm wanting is I'm trying to figure out why MythTV is not
>> recording a new episode as I'm pretty sure its not a duplicate.
>> ie is this a bug or have I missed something.
>>
>>
>>
>>
>> On Thu, Sep 3, 2009 at 9:33 PM, Paul - subscriptions <
>> mylists [at] wilsononline> wrote:
>>
>>> Is there a quick way to like all the episodes of a particular show?
>>>
>>> ie what database table is this stored in ? and do these ever expire or
>>> get purged?
>>>
>>> thanks
>>> Paul
>>>
>>
>>
>
I've found a row in the "program" table but none in the recorded table..

--- print list start ---
Title - Subtitle Ch Station Day Start End S C I T N Pri
City Homicide - "The Confessio 6 PRIME C 07 20:30-21:35 1 0 0 d P 0/0


mysql> SELECT starttime,title, subtitle,
programid,syndicatedepisodenumber,programid FROM program WHERE title LIKE
"City Homicide%" and subtitle = "The Confession";
+---------------------+---------------+----------------+-------------+-------------------------+-------------+
| starttime | title | subtitle | programid |
syndicatedepisodenumber | programid |
+---------------------+---------------+----------------+-------------+-------------------------+-------------+
| 2009-09-07 20:30:00 | City Homicide | The Confession | EP341898163 |
E6S3 | EP341898163 |
+---------------------+---------------+----------------+-------------+-------------------------+-------------+


mtdean at thirdcontact

Sep 3, 2009, 3:38 PM

Post #7 of 15 (1806 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

On 09/03/2009 05:22 PM, Paul - subscriptions wrote:
> I've found a row in the "program" table but none in the recorded table..
>
> --- print list start ---
> Title - Subtitle Ch Station Day Start End S C I T N Pri
> City Homicide - "The Confessio 6 PRIME C 07 20:30-21:35 1 0 0 d P 0/0
>
>
> mysql> SELECT starttime,title, subtitle,
> programid,syndicatedepisodenumber,programid FROM program WHERE title LIKE
> "City Homicide%" and subtitle = "The Confession";


SELECT starttime, title, subtitle, programid FROM program WHERE title =
'City Homicide';
SELECT starttime, title, subtitle, programid FROM oldrecorded WHERE
title = 'City Homicide';

Again, subtitle and description are almost definitely irrelevant.

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mylists at wilsononline

Sep 3, 2009, 9:16 PM

Post #8 of 15 (1810 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

On Fri, Sep 4, 2009 at 12:48 PM, Paul Wilson <paul [at] wilsononline>wrote:

>
>
> On Fri, Sep 4, 2009 at 7:22 AM, Paul - subscriptions <
> mylists [at] wilsononline> wrote:
>
>>
>>
>> On Thu, Sep 3, 2009 at 10:06 PM, Paul - subscriptions <
>> mylists [at] wilsononline> wrote:
>>
>>> note I've now checked the "oldrecorded" table and subtitle does NOT
>>> exist, so this must be a bug right?
>>> what else can I check
>>>
>>>
>>>
>>>
>>> On Thu, Sep 3, 2009 at 10:02 PM, Paul - subscriptions <
>>> mylists [at] wilsononline> wrote:
>>>
>>>> The reason I'm wanting is I'm trying to figure out why MythTV is not
>>>> recording a new episode as I'm pretty sure its not a duplicate.
>>>> ie is this a bug or have I missed something.
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Sep 3, 2009 at 9:33 PM, Paul - subscriptions <
>>>> mylists [at] wilsononline> wrote:
>>>>
>>>>> Is there a quick way to like all the episodes of a particular show?
>>>>>
>>>>> ie what database table is this stored in ? and do these ever expire or
>>>>> get purged?
>>>>>
>>>>> thanks
>>>>> Paul
>>>>>
>>>>
>>>>
>>>
>> I've found a row in the "program" table but none in the recorded table..
>>
>> --- print list start ---
>> Title - Subtitle Ch Station Day Start End S C I T N
>> Pri
>> City Homicide - "The Confessio 6 PRIME C 07 20:30-21:35 1 0 0 d P
>> 0/0
>>
>>
>> mysql> SELECT starttime,title, subtitle,
>> programid,syndicatedepisodenumber,programid FROM program WHERE title LIKE
>> "City Homicide%" and subtitle = "The Confession";
>>
>> +---------------------+---------------+----------------+-------------+-------------------------+-------------+
>> | starttime | title | subtitle | programid |
>> syndicatedepisodenumber | programid |
>>
>> +---------------------+---------------+----------------+-------------+-------------------------+-------------+
>> | 2009-09-07 20:30:00 | City Homicide | The Confession | EP341898163 |
>> E6S3 | EP341898163 |
>>
>> +---------------------+---------------+----------------+-------------+-------------------------+-------------+
>>
>>
> I see two shows (different subtitles) which have the same "Programid" is
> that normal
>
> ====
>
> mysql> SELECT starttime, title, subtitle, programid FROM program WHERE
> title =
> -> 'City Homicide';
> +---------------------+---------------+----------------+-------------+
> | starttime | title | subtitle | programid |
> +---------------------+---------------+----------------+-------------+
> | 2009-08-31 20:30:00 | City Homicide | Thai Take Away | |
> | 2009-08-31 20:30:00 | City Homicide | Thai Take Away | EP341898153 |
> | 2009-08-31 20:30:00 | City Homicide | Thai Take Away | |
> | 2009-09-07 20:30:00 | City Homicide | The Confession | EP341898163 |
> | 2009-08-31 20:30:00 | City Homicide | Thai Take Away | |
> +---------------------+---------------+----------------+-------------+
> 5 rows in set (0.01 sec)
>
> mysql> SELECT starttime, title, subtitle, programid FROM oldrecorded WHERE
> -> title = 'City Homicide';
>
> +---------------------+---------------+---------------------------------+----------------+
> | starttime | title | subtitle |
> programid |
>
> +---------------------+---------------+---------------------------------+----------------+
> | 2007-08-27 20:30:00 | City Homicide |
> | |
> | 2007-09-10 14:00:00 | City Homicide |
> | |
> | 2007-09-03 20:30:00 | City Homicide |
> | |
> | 2007-09-09 00:05:00 | City Homicide |
> | |
> | 2007-09-10 20:30:00 | City Homicide |
> | |
> | 2007-09-17 20:30:00 | City Homicide |
> | |
> | 2007-09-24 20:30:00 | City Homicide |
> | |
> | 2007-10-01 20:30:00 | City Homicide |
> | |
> | 2007-10-08 20:30:00 | City Homicide |
> | |
> | 2007-10-15 20:30:00 | City Homicide |
> | |
> | 2007-10-29 20:30:00 | City Homicide |
> | |
> | 2007-11-12 20:30:00 | City Homicide |
> | |
> | 2007-11-05 20:30:00 | City Homicide |
> | |
> | 2007-11-19 20:30:00 | City Homicide |
> | |
> | 2008-06-30 20:30:00 | City Homicide | Thicker than Water |
> EP341898112 |
> | 2008-07-07 20:30:00 | City Homicide | Somersaulting Dogs |
> EP341898122 |
> | 2008-07-21 20:30:00 | City Homicide | Taniwha |
> EP341898142 |
> | 2008-07-14 20:30:00 | City Homicide | In House |
> EP341898132 |
> | 2008-08-04 20:30:00 | City Homicide |
> | |
> | 2008-07-28 20:30:00 | City Homicide | Guilty As Charged |
> EP341898152 |
> | 2008-08-25 20:30:00 | City Homicide | Reward |
> EP341898162 |
> | 2008-09-08 20:30:00 | City Homicide | Life After Death |
> EP341898182 |
> | 2008-09-01 20:30:00 | City Homicide | Golden |
> EP341898172 |
> | 2008-10-20 20:30:00 | City Homicide | Jane Doe |
> EP003418981142 |
> | 2008-09-29 20:30:00 | City Homicide | Oh Lucky Man |
> EP003418981112 |
> | 2008-09-15 20:30:00 | City Homicide | Never To Be Released |
> EP341898192 |
> | 2008-09-22 20:30:00 | City Homicide |
> | |
> | 2008-10-27 20:30:00 | City Homicide | Serious Men |
> EP003418981111 |
> | 2008-10-06 20:30:00 | City Homicide | Spoils of War |
> EP003418981122 |
> | 2008-11-10 20:30:00 | City Homicide | The Ripe Fruits in the Garden |
> EP341898151 |
> | 2008-10-13 20:30:00 | City Homicide | Jury Duty |
> EP003418981132 |
> | 2009-02-08 20:30:00 | City Homicide | Junkie |
> EP341898113 |
> | 2009-02-22 20:30:00 | City Homicide | The Forgotten |
> EP341898133 |
> | 2009-02-15 20:30:00 | City Homicide | Stolen Sweets |
> EP341898123 |
> | 2009-03-01 20:30:00 | City Homicide | A Green Light |
> EP341898143 |
> | 2009-03-08 20:30:00 | City Homicide | House of Horrors |
> EP341898153 |
>
> | 2009-03-15 20:30:00 | City Homicide | The Cutting Edge |
> EP341898163 |
>
> | 2009-03-22 20:30:00 | City Homicide | Rage |
> EP341898173 |
> | 2009-03-29 20:30:00 | City Homicide | Life & Death |
> EP341898183 |
> | 2009-08-10 20:30:00 | City Homicide | The Money Shot / Meet and Greet
> | |
> | 2009-08-31 20:30:00 | City Homicide | Thai Take Away |
> EP341898153 |
> | 2009-08-24 20:30:00 | City Homicide | The First Stone |
> EP341898143 |
>
> +---------------------+---------------+---------------------------------+----------------+
>
> ===
>
> Programid=EP341898163
where does this value come from ?
see above...


mtdean at thirdcontact

Sep 3, 2009, 10:16 PM

Post #9 of 15 (1824 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

Please fix your mail client. I have no idea what's going on, but it's
making it /extremely/ difficult to reply to your messages. I've had to
reformat every single message to which I replied. Also, your selecting
your own messages and clicking reply, and not to the messages which
contain the questions/information to which you're replying, makes it
very difficult to follow the flow of the thread--especially since you're
not trimming the old garbage (which I understand that GMail hides from
you)--and cuts out my name, so your mails aren't highlighted in my
client, so I have to watch for them manually.


On 09/04/2009 12:16 AM, Paul - subscriptions wrote:
> I see two shows (different subtitles) which have the same
> "Programid" is that normal

Nope.

>
> ====
>
> mysql> SELECT starttime, title, subtitle, programid FROM program WHERE
> title =
> -> 'City Homicide';
>
...
> | 2009-09-07 20:30:00 | City Homicide | The Confession | EP341898163 |
...
> mysql> SELECT starttime, title, subtitle, programid FROM oldrecorded WHERE
> -> title = 'City Homicide';
...
> | 2008-10-27 20:30:00 | City Homicide | Serious
> Men | EP003418981111 |
>
...
> | 2009-03-15 20:30:00 | City Homicide | The Cutting
> Edge | EP341898163 |
>
...
> ===
> Programid=EP341898163
> where does this value come from ?
> see above...

The programid is provided by your listings provider. It is /the/
authoritative identifier of episodes. Therefore, if 2 episodes have the
same programid, they are definitely the same episode.

However, the problem you have is likely hinted at in the above values.
Notice that all of the programid's shown from your program table are EP
followed by 9 digits--making a total length of 11 characters. One of
the values in oldrecorded is also 11 characters--this being the
programid for "The Cutting Edge" that's telling Myth that you've already
recorded the upcoming episode "The Confession". However, other
programid's in oldrecorded, such as the one for "Serious Men", is EP
followed by 12 digits. (Though your e-mail would make me think you
would use some other listings provider, these look like Schedules Direct
programid's. I'm guessing that you are using Schedules Direct--if not,
you may need to fix the "fixup" at the bottom.)

My guess is that your program table definition is corrupt--your
programid column is defined as VARCHAR(11) rather than VARCHAR(40).
That means that all of the 14-character programid's get truncated, so
you end up with dups due to invalid data. You can see if this is the
case with:

mysql -umythtv -p mythconverg -e "DESC program;"

How can your programid table definition get corrupted--it's almost
always due to character encoding. I.e. someone or something converted
your program.programid column to UTF-8 and didn't do it correctly.
(I.e. when switching from a distro with a properly-configured MySQL
server to one without or vice versa or when using some tool to
"optimize" your database or ...)

At this point--knowing that at least part of the schema is broken--I
wouldn't trust /any/ of the rest of the schema or even the data in the
database, so I recommend starting over. You can probably save your
recording rules and recording history with the approach described below,
but saving anything else is likely to

Do a full backup of your broken database (
http://www.mythtv.org/wiki/Database_Backup_and_Restore ), then drop the
database and then run mc.sql (
http://www.mythtv.org/wiki/Database_Backup_and_Restore#Database_Restore
), then start mythtv-setup and exit and do a partial restore of the
database (
http://www.mythtv.org/wiki/Database_Backup_and_Restore#Partial_restore_of_a_backup
). Then, erase all your broken oldrecorded.programid values:

mysql -umythtv -p mythconverg -e "UPDATE oldrecorded "\
"SET programid = '' WHERE REGEXP('..[[:digit:]]{1,13}');"

Then start mythtv-setup and configure your system, again.

If you have questions, you can usually find me here or on IRC (sphery).

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Sep 4, 2009, 11:05 AM

Post #10 of 15 (1769 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

On 09/04/2009 01:16 AM, Michael T. Dean wrote:
> Do a full backup of your broken database (
> http://www.mythtv.org/wiki/Database_Backup_and_Restore ), then drop
> the database and then run mc.sql (
> http://www.mythtv.org/wiki/Database_Backup_and_Restore#Database_Restore
> ), then start mythtv-setup and exit and do a partial restore of the
> database (
> http://www.mythtv.org/wiki/Database_Backup_and_Restore#Partial_restore_of_a_backup
> ). Then, erase all your broken oldrecorded.programid values:
>
> mysql -umythtv -p mythconverg -e "UPDATE oldrecorded "\
> "SET programid = '' WHERE REGEXP('..[[:digit:]]{1,13}');"

Just realized I didn't copy correctly from my test run...

mysql -umythtv -p mythconverg -e "UPDATE oldrecorded "\
"SET programid = '' WHERE programid REGEXP('..[[:digit:]]{1,13}');"

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mylists at wilsononline

Sep 4, 2009, 2:07 PM

Post #11 of 15 (1758 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

On 5/09/2009 4:05 AM, Michael T. Dean wrote:
> On 09/04/2009 01:16 AM, Michael T. Dean wrote:
>> Do a full backup of your broken database (
>> http://www.mythtv.org/wiki/Database_Backup_and_Restore ), then drop
>> the database and then run mc.sql (
>> http://www.mythtv.org/wiki/Database_Backup_and_Restore#Database_Restore
>> ), then start mythtv-setup and exit and do a partial restore of the
>> database (
>> http://www.mythtv.org/wiki/Database_Backup_and_Restore#Partial_restore_of_a_backup
>> ). Then, erase all your broken oldrecorded.programid values:
>>
>> mysql -umythtv -p mythconverg -e "UPDATE oldrecorded "\
>> "SET programid = '' WHERE REGEXP('..[[:digit:]]{1,13}');"
>
> Just realized I didn't copy correctly from my test run...
>
> mysql -umythtv -p mythconverg -e "UPDATE oldrecorded "\
> "SET programid = '' WHERE programid REGEXP('..[[:digit:]]{1,13}');"
>
> Mike
>

Thanks again for your reply.

I checked my database schema and it has VARCHAR(40) so db is ok.
My Grabber is the Oztvio (australia) and therefor doesn't contain any "programid" so I'm
unsure where this data is coming from...(see example below)
So perhaps where ever its been generated some how its no fully unique or they changed the
generation code etc..


XML eg
<programme start="20090907203000 +1000" stop="20090907213000 +1000" channel="Prime-Can">
<title>City Homicide</title>
<sub-title>The Confession</sub-title>
<desc>Has Stanley Wolfe always been a good cop? Somehow, this by-the-book senior
sergeant is connected to the deaths of three people. The team wants to stand by their
Sarge, but what isn&apos;t he telling them?</desc>
<credits>
<actor>Shane Bourne</actor>
<actor>John Adam</actor>
<actor>Daniel MacPherson</actor>
<actor>Nadia Townsend</actor>
<actor>Damien Richardson</actor>
</credits>
<date>2009</date>
<category>Crime Drama</category>
<category>Drama Group</category>
<episode-num system="xmltv_ns">2.5.</episode-num>
<rating><value>M</value></rating>
<star-rating><value>0/10</value></star-rating>
</programme>


Thanks
Paul
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Sep 4, 2009, 2:14 PM

Post #12 of 15 (1764 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

On 09/04/2009 05:07 PM, Paul wrote:
> I checked my database schema and it has VARCHAR(40) so db is ok.
> My Grabber is the Oztvio (australia) and therefor doesn't contain any
> "programid" so I'm unsure where this data is coming from...(see
> example below)
> So perhaps where ever its been generated some how its no fully unique
> or they changed the generation code etc..

If that's the case, then:

mysql -umythtv -p mythconverg \
-e "UPDATE oldrecorded SET programid = ''; "\
"UPDATE program SET programid = '';"

and keep watching to see if you get new programid's in program. Myth
doesn't generate it--it only takes whatever the grabber/EIT gives it--so
if you continue to get it, it's coming from your grabber.

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mylists at wilsononline

Sep 4, 2009, 2:25 PM

Post #13 of 15 (1756 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

On 5/09/2009 7:14 AM, Michael T. Dean wrote:
> On 09/04/2009 05:07 PM, Paul wrote:
>> I checked my database schema and it has VARCHAR(40) so db is ok.
>> My Grabber is the Oztvio (australia) and therefor doesn't contain any
>> "programid" so I'm unsure where this data is coming from...(see
>> example below)
>> So perhaps where ever its been generated some how its no fully unique
>> or they changed the generation code etc..
>
> If that's the case, then:
>
> mysql -umythtv -p mythconverg \
> -e "UPDATE oldrecorded SET programid = ''; "\
> "UPDATE program SET programid = '';"
>
> and keep watching to see if you get new programid's in program. Myth
> doesn't generate it--it only takes whatever the grabber/EIT gives it--so
> if you continue to get it, it's coming from your grabber.
>
> Mike
>

What does it look like in the XML file? ie have you an example of what I should scan for?
is it: <programid> </programid>???
Paul
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Sep 4, 2009, 6:02 PM

Post #14 of 15 (1748 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

On 09/04/2009 05:25 PM, Paul wrote:
> On 5/09/2009 7:14 AM, Michael T. Dean wrote:
>> On 09/04/2009 05:07 PM, Paul wrote:
>>> I checked my database schema and it has VARCHAR(40) so db is ok.
>>> My Grabber is the Oztvio (australia) and therefor doesn't contain
>>> any "programid" so I'm unsure where this data is coming from...(see
>>> example below)
>>> So perhaps where ever its been generated some how its no fully
>>> unique or they changed the generation code etc..
>> If that's the case, then:
>>
>> mysql -umythtv -p mythconverg \
>> -e "UPDATE oldrecorded SET programid = ''; "\
>> "UPDATE program SET programid = '';"
>>
>> and keep watching to see if you get new programid's in program. Myth
>> doesn't generate it--it only takes whatever the grabber/EIT gives
>> it--so if you continue to get it, it's coming from your grabber.
> What does it look like in the XML file? ie have you an example of what
> I should scan for?
> is it: <programid> </programid>???

OK, it looks like we build a programid for xmltv data using other
information. It starts with MV for movies, EP for series, SP for
sports, or SH for other shows (based on category); followed by the
seriesid (or the hash of the title if the seriesid is empty); then, if
neither is empty, followed by episode then season; then, if neither is
empty, followed by partnumber and parttotal.

If there's no episode or season info, the programid is erased (so normal
dup checking rules apply).

With this approach, it's impossible to have a programid without a
seriesid, episode, and season at minimum.

Your episode-num for, "The Confession," posted in an earlier response
(<episode-num system="xmltv_ns">2.5.</episode-num>) contains the season
and episode values 2 and 5, respectively, meaning the episode's
programid should end in 63 (as it's a 0-based season, episode and part
num/total in xmltv_ns episode-num and we increment it to it's
"natural-counting" form). Therefore, the programid value EP341898163
for that episode, as shown in an earlier response, is correct, too.
Looking at some other values:

seriesid seems to be 3418981

Thicker than Water, S2E1, is EP341898112
Somersaulting Dogs, S2E2, is EP341898122
In House, S2E3, is EP341898132
Taniwha, S2E4, is EP341898142

These are right. What this doesn't explain is how, "The Cutting Edge,"
which was S2E20 got put in your database's oldrecorded as EP341898163
instead of EP3418981192. Without seeing the XMLTV data from March 15,
I'll have to guess that either it was invalid data from the listings
provider or something messed up values in your database.

The only way that Myth might be messing things up is if you're using
/both/ XMLTV and EIT on the same channels--which is an unsupported
configuration. If you're not doing that, we'll always use the data
provided by the listings provider. On the bright side, even if the
listings provider is breaking things, you can always just clear out any
programid's from either oldrecorded or program when you see bad data.

Mike

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mylists at wilsononline

Sep 4, 2009, 9:03 PM

Post #15 of 15 (1746 views)
Permalink
Re: how do I list previously recorded shows? [In reply to]

On 5/09/2009 11:02 AM, Michael T. Dean wrote:
> On 09/04/2009 05:25 PM, Paul wrote:
>> On 5/09/2009 7:14 AM, Michael T. Dean wrote:
>>> On 09/04/2009 05:07 PM, Paul wrote:
>>>> I checked my database schema and it has VARCHAR(40) so db is ok.
>>>> My Grabber is the Oztvio (australia) and therefor doesn't contain
>>>> any "programid" so I'm unsure where this data is coming from...(see
>>>> example below)
>>>> So perhaps where ever its been generated some how its no fully
>>>> unique or they changed the generation code etc..
>>> If that's the case, then:
>>>
>>> mysql -umythtv -p mythconverg \
>>> -e "UPDATE oldrecorded SET programid = ''; "\
>>> "UPDATE program SET programid = '';"
>>>
>>> and keep watching to see if you get new programid's in program. Myth
>>> doesn't generate it--it only takes whatever the grabber/EIT gives
>>> it--so if you continue to get it, it's coming from your grabber.
>> What does it look like in the XML file? ie have you an example of what
>> I should scan for?
>> is it: <programid> </programid>???
>
> OK, it looks like we build a programid for xmltv data using other
> information. It starts with MV for movies, EP for series, SP for
> sports, or SH for other shows (based on category); followed by the
> seriesid (or the hash of the title if the seriesid is empty); then, if
> neither is empty, followed by episode then season; then, if neither is
> empty, followed by partnumber and parttotal.
>
> If there's no episode or season info, the programid is erased (so normal
> dup checking rules apply).
>
> With this approach, it's impossible to have a programid without a
> seriesid, episode, and season at minimum.
>
> Your episode-num for, "The Confession," posted in an earlier response
> (<episode-num system="xmltv_ns">2.5.</episode-num>) contains the season
> and episode values 2 and 5, respectively, meaning the episode's
> programid should end in 63 (as it's a 0-based season, episode and part
> num/total in xmltv_ns episode-num and we increment it to it's
> "natural-counting" form). Therefore, the programid value EP341898163
> for that episode, as shown in an earlier response, is correct, too.
> Looking at some other values:
>
> seriesid seems to be 3418981
>
> Thicker than Water, S2E1, is EP341898112
> Somersaulting Dogs, S2E2, is EP341898122
> In House, S2E3, is EP341898132
> Taniwha, S2E4, is EP341898142
>
> These are right. What this doesn't explain is how, "The Cutting Edge,"
> which was S2E20 got put in your database's oldrecorded as EP341898163
> instead of EP3418981192. Without seeing the XMLTV data from March 15,
> I'll have to guess that either it was invalid data from the listings
> provider or something messed up values in your database.
>
> The only way that Myth might be messing things up is if you're using
> /both/ XMLTV and EIT on the same channels--which is an unsupported
> configuration. If you're not doing that, we'll always use the data
> provided by the listings provider. On the bright side, even if the
> listings provider is breaking things, you can always just clear out any
> programid's from either oldrecorded or program when you see bad data.
>
> Mike
>
>

Thanks for this insight.. I now understand XMLTV a bit more now.. The grabber source I use
is more or less community generated so its possible someone coded the wrong Series/EP #
for this showing but it looks ok now so perhaps MythTV does update it once it has been
inserted the first time.
ie it doesn't update the Programid on the next grabbers run.

Paul




_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.