[mythtv] [mythtv-commits] Ticket #3522: Deleting a video doesn't delete the .png in the data directory

Nick Morrott knowledgejunkie at gmail.com
Thu Aug 9 18:57:39 UTC 2007


On 09/08/07, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> On 08/09/2007 04:29 AM, Nick Morrott wrote:
> > On 09/08/07, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> >
> >> UTF or some kind of special characters in the filenames?
> >>
> > Nope.
> >
> >> So, the only way I could see them sticking around is a) if there's
> >> something "wrong" with the filename
> > a) I'll post the filenames below in case you can see anything untoward.
> > ...
> > -rw-r--r--  1 root   root   3262152124 Aug  4 22:42 Rush Hour 2
> > (Untitled) - CH4 - 2007-08-04-2059.mpg
> > -rw-r--r--  1 root   root         8540 Aug  9 08:11 Rush Hour 2
> > (Untitled) - CH4 - 2007-08-04-2059.mpg.100x0x390.png
> > -rw-rw-rw-  1 root   root        19294 Aug  9 08:07 Rush Hour 2
> > (Untitled) - CH4 - 2007-08-04-2059.mpg.png
>
> Ah, spaces...  The nameFilter used by QDir allows multiple globs
> separated by spaces (or semicolons), so your filename ends up being a
> bunch of non-matching globs.  Does the attached patch work for you?

Thanks much for the patch Mike, I'll have to test it tomorrow. Spaces
was the only thought that crossed my mind too as everything else
seemed 'normal', but I hadn't looked through the QT docs before you
kindly posted the patch.

Spaces are the default behaviour for the mythrename.pl script - the
default format is "%T %- %Y-%m-%d, %g-%i %A %- %S" and underscores are
turned _off_ by default. I guess we chalk this one up to insufficient
testing...

I'll let you know how it goes tomorrow when I have some more stuff to
rename and delete, but I'm confident this will fix the issue.

Cheers,
-- 
Nick

MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-dev mailing list