On Wed, 2015-11-11 at 06:53 +1000, Adam Nielsen wrote:
> > Each time xmms2d starts, it thrashes my disk trying to add non
> > -audio
> > files like .log, .txt, .jpg, .pdf etc in my music folder (and no,
> > the
> > answer is not to delete those files). A comma separated list of
> > extensions to ignore would be great.
> 
> It sounds like the problem is that these files were added to the
> medialib, but since there is no xform that can recognise them, xmms2d
> sees there is no metadata for the files.  So it regularly tries to
> update them all in case you have installed a new xform that can
> handle
> the filetypes.
> 

Actually, that's not true. The issue is that the medialib-updater
client request an import on directories it tracks, each time it starts
with the server. For files already in the medialib (the valid audio
files), no rescan of the files is performed. However, since other files
aren't audio files, they were removed from the medialib server-side and
so it tries to readd them each time the medialib-updater request an
import of the containing directory.

> > I'm thinking of writing this myself, it sounds like a good
> > exercise.
> > The problem is I don't know where to implement this. Should it be a
> > parameter in startup.d/xmms2-mlib-updater.sh or a server config
> > variable stored in xmms2.conf somewhere?
> 

An exclusion list would have to be server-side, (somewhere in src/xmms/
source files). It should register a configuration parameter with a
sensible default value. I think case-insensitive glob pattern matching
makes sense here. Something like '.*:*.jpg:*.png:*.gif:*.txt'.

> I'm not sure you'd need it.  If you removed all your .log, .jpg, etc.
> files from the medialib then they would still exist in the
> filesystem,
> but xmms2d wouldn't keep trying to read them.  I'm guessing when you
> added the files you added them a whole folder at a time?  Probably
> using
> 'find' to only pick out audio files would be a better option in this
> case.
> 
> I suspect ignoring filename extensions will be difficult, because
> xmms2
> seems to have been designed around magic - by which I mean
> identifying
> files by their signatures/headers rather than by filename.
> 
> If you did start ignoring filename extensions, I guess one person
> would
> reasonably assume nobody would want to play .php scripts so that
> extension would be ignored, then another person would complain their
> streaming URL no longer works because the URL happens to end in .php.
> 
> I think the way things work now - if you tell xmms2d you want to play
> a .log file, it will try to - is the most flexible.  Maybe instead,
> you
> can come up with a script which you use instead of 'xmms2 add' which
> excludes the files you don't want at that stage, before they end up
> in
> the medialib.
> 
> Cheers,
> Adam.
> 
> --
> _______________________________________________
> Xmms2-devel mailing list
> Xmms2-devel@lists.xmms2.org
> http://lists.xmms2.org/cgi-bin/mailman/listinfo/xmms2-devel

--
_______________________________________________
Xmms2-devel mailing list
Xmms2-devel@lists.xmms2.org
http://lists.xmms2.org/cgi-bin/mailman/listinfo/xmms2-devel

Reply via email to