[mythtv-users] programid field changed causing duplicate shows to be recorded
Paul
mylists at wilsononline.id.au
Thu Oct 21 00:04:19 UTC 2010
as below
I think this may be a change introduced some time in the XMLParsing code
Paul
-------- Original Message --------
Subject: Re: [TVguide] mythtv XML Series and unique ids data
Date: Wed, 20 Oct 2010 19:15:39 +1100
From: neil_1888 <neil_1888 at aanet.com.au>
Reply-To: Australian community-based TV guide <tvguide at oztivo.net>
To: tvguide at oztivo.net
> Message: 6
> Date: Wed, 20 Oct 2010 09:14:19 +1100
> From: Paul - subscriptions <mylists at wilsononline.id.au>
> Subject: [TVguide] mythtv XML Series and unique ids data
> To: tvguide <tvguide at oztivo.net>
> Message-ID:
> <AANLkTi=6h7Tmn8sYuJ8H+s3BoEne0dv8cfHvrEC2Q3Q2 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> hi,
> I'm just trying to understand MythTVs programid field which is used for
> Duplicate title checking and can't see any data in my recent XMLTV file.
> The problem is the program id seems to have removed leading zero now
>
> eg Sea Patrol Giving Up the Dead (EP009103882852) in the oldrecord
> table but new schedule has : EP9103882852
>
> So apparently this field is derived from a few of the TAGs
>
> eg
> if (!uniqueid.isEmpty()) // we already have a unique id ready for use
> programid.append(uniqueid);
> else
> {
> if (seriesid.isEmpty()) //need to hash ourself a seriesid from the
> title
> {
> seriesid = QString::number(ELFHash(pginfo->title.toLocal8Bit()
> .constData()));
> }
> pginfo->seriesId = seriesid;
> programid.append(seriesid);
>
> if (!episode.isEmpty() && !season.isEmpty())
> {
> programid.append(episode);
> programid.append(season);
> if (pginfo->partnumber && pginfo->parttotal)
> {
> programid += QString::number(pginfo->partnumber);
> programid += QString::number(pginfo->parttotal);
> }
> ....
>
> But I don't see this in my XML file
> eg
>
> <programme start="20101025140000 +1100" stop="20101025150000 +1100"
> channel="gem">
> <title>Sea Patrol</title>
> <sub-title>Heart of Glass</sub-title>
> <desc>Bomber's 21st birthday celebrations are cut short when she and
> Spider are lost overboard. Bomber and Spider's problems go from bad to worse
> when they are "rescued" and held hostage by a desperate crime boss. Buffer
> faces disciplinary action for losing Bomber and Spider at sea. Meanwhile,
> Buffer tries to deal with a secret personal tragedy.</desc>
> <credits>
> <actor>Lisa McCune</actor>
> <actor>Saskia Burmeister</actor>
> <actor>David Lyons</actor>
> </credits>
> <category>Drama</category>
> <category>Adventure</category>
> <category>Drama Group</category>
> <episode-num system="xmltv_ns">1 . 7 . </episode-num>
> <rating>
> <value>M</value>
> </rating>
> <star-rating>
> <value>0/10</value>
> </star-rating>
> </programme>
>
> Can anyone shed some light on this?
>
> Thanks
> Paul
>
>
> ------------------------------
The unique id is not in the xmltv file. It is generated internally by
mythtv from the xmltv data as per your code snippet. The xmltv file is a
input into mythtv not a output.
Had a look at my database and have also lost the leading zeros. Looks
like a bug in mythtv. Suggest posting a message to the mythtv mail list.
Neil.
_______________________________________________
TVguide mailing list,
tvguide at oztivo.net
Unsubscribe at https://www.oztivo.net/cgi-bin/mailman/listinfo/tvguide
See http://www.oztivo.net/twiki/bin/view/TVGuide for Documentation
And http://tvguide.oztivo.net to access the guide
More information about the mythtv-users
mailing list