From c69bb079fef352b7b34eac8739b0dc051629cb7b Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Wed, 15 Oct 2008 14:38:38 +0000 Subject: allow gstreamer to signalize missing plugins to the gui (requires reconfiguring enigma2) and add support for flac files (requires libflac7, gst-plugin-flac) --- lib/python/Components/Scanner.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/python/Components') diff --git a/lib/python/Components/Scanner.py b/lib/python/Components/Scanner.py index e13370b5..5a26a7d4 100644 --- a/lib/python/Components/Scanner.py +++ b/lib/python/Components/Scanner.py @@ -16,6 +16,7 @@ def getExtension(file): def getType(file): (type, _) = guess_type(file) + print "guessed type:", type if type is None: # Detect some mimetypes unknown to dm7025 # TODO: do mimetypes.add_type once should be better @@ -24,6 +25,8 @@ def getType(file): return "application/x-debian-package" elif ext == "ogg": return "application/ogg" + elif ext == "flac": + return "audio/x-flac" elif ext == "dmpkg": return "application/x-dream-package" elif ext == "ts": -- cgit v1.2.3