[mythtv-users] Mythvideo: series suddenly renames itself

Gordon McCrae gordon.mccrae at gmail.com
Sat Jan 21 12:11:34 UTC 2012


On 21/01/12 06:59, Jean-Yves Avenard wrote:
> Hi
>
> On Saturday, 21 January 2012, Gordon McCrae <gordon.mccrae at gmail.com 
> <mailto:gordon.mccrae at gmail.com>> wrote:
>
>
> > It is in fact "looked at" again (at least in my 0.24.1 system). You 
> get a message stating that it's found an entry with the same hash, but 
> different name and updates the database entry to reflect the new file 
> name.
> >
> > There's commentary in the Wiki that states "The location of any 
> video content will be updated automatically based off a matching hash, 
> with no loss of metadata, next time a Scan For Changes is triggered 
> from the Watch Videos menu."
> >
> > What also happens though is that it also seems to flip-flop between 
> the two names (assuming there's tow duplicate entries) each time you 
> rescan. Raymond Wagner produced a script to remove duplicates blindly 
> from the database so that there was only 1 unique entry.
> >
>
> None of which explain why if the same file is present twice, it is 
> only showed once.
>
> All it explains, is that no matter what the file name is, it will show 
> under the same name due to the files having the same hash.
>
Here's an example from the output of MythFrontend when I scan for new media:

<SNIP>
2012-01-21 12:02:01.940 Adding :  : /DATA/VIDEOS/0<<< TV >>>/001: 
12.01.21 @ 11.55/Red Dwarf - Confidence and Paranoia.mpg : e62547eaec23c306
2012-01-21 12:02:02.204 Adding :  : /DATA/VIDEOS/0<<< TV >>>/002: 
12.01.21 @ 07.25/Transformers Prime - Untitled.mpg : ed041579031109bd
<SNIP>
2012-01-21 12:02:03.271 Hash 73a3ae071609fd6e already exists in the 
database, updating record 32898 with new filename /DATA/VIDEOS/0<<< TV 
 >>>/007: 12.01.20 @ 18.55/Transformers Prime - Untitled.mpg
2012-01-21 12:02:03.513 Hash b195f6834bd418be already exists in the 
database, updating record 32894 with new filename /DATA/VIDEOS/0<<< TV 
 >>>/008: 12.01.20 @ 11.55/Boston Legal - Thanksgiving.mpg
2012-01-21 12:02:03.623 Hash c038794038de1ac8 already exists in the 
database, updating record 32892 with new filename /DATA/VIDEOS/0<<< TV 
 >>>/009: 12.01.20 @ 08.55/Farscape - Prayer.mpg

So basically, the master field is the HASH value, not the filename, it's 
a secondary field and is changed when you scan for new media, so you can 
never see the two copies of the same file, only one entry for the HASH 
value with one of the file names.

The "oddity" I see, is that if I do have duplicates (I used to create 
links to the most recently added videos and put them in the "NEW VIDEOS" 
folder), then the filename flip-flops between the proper one and the link.

Cheers
Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120121/8b63b780/attachment.html 


More information about the mythtv-users mailing list