Mnyb;316864 Wrote: 
> 
> The criteria for weeding out a "bad" file could get complicated.
> But if limited to only files that is not included in track count then
> I'm positive to idea. It wont solve all problems but it seems not to
> complicated to do (says an complete amateur with out any perl skills
> ;-) ).

without writing code:

extract all file-url's from the db
(ie, 'select url from tracks where audio')
use Find::File and get all files from filesystem
compare the two.  Not hard if you store one of the lists as a hash
based
on filename (ie, if ($exists($db{$filename}))

The only really annoying trick is the unescaping special characters,
but that isn't really a problem in perl.


-- 
snarlydwarf
------------------------------------------------------------------------
snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179
View this thread: http://forums.slimdevices.com/showthread.php?t=49429

_______________________________________________
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to