[mythtv-users] mythvideo file ordering weirdness

Michael T. Dean mtdean at thirdcontact.com
Mon Apr 23 15:53:06 UTC 2007


On 04/23/2007 11:17 AM, George Nassas wrote:
> On 23-Apr-07, at 5:36 AM, Nick Rout wrote:
>> a directory listing of season 2 of SG-1 looks (in part) like this:
>>
>> Stargate SG-1 [2x01] The Serpent's Lair.avi
>> Stargate SG-1 [2x02] In the Line of Duty.avi
>>
>> However when listed in mythvideo the bits inside the [ ] are omitted,
>>
>> Stargate SG-1 In the Line of Duty
>> Stargate SG-1 The Serpent's Lair
>>
>> This annoying me and it only seems to have started today, although it
>> *could* be related to the switch to 0.20.
>>     
> It's definitely due to the 0.20 switch, the code that converts  
> filenames to titles changed for .20 and the new approach drops  
> anything between [] characters.

MythVideo has been dropping anything between the square brackets 
(inclusive) since 0.11.

>  A few people have complained but it  
> remains as is.

And, as was for a /very/ long time (about 4 years; since July 28, 2003).

>  If you're willing to pop into sql you have it your way  
> with a command like:
>
> update videometadata
> set title = substring_index(substring_index(filename, '/', -1), '.', 1)
> where title like 'Stargate SG-1%';

Or just use some separator for your season/disc info that's not 
"reserved" by MythVideo's guess title algorithm for non-title comments 
in filenames (currently "reserved" are '[', ']', '(', ')', '{', and '}').

Or, use the Video Manager to edit the title to whatever you want.

Mike




More information about the mythtv-users mailing list