diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-15 14:38:38 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-15 14:38:38 +0000 |
| commit | c69bb079fef352b7b34eac8739b0dc051629cb7b (patch) | |
| tree | d599ef4903aa7b3e8bfe0b55794e39a5332e8e3e /lib/python/Components/Scanner.py | |
| parent | 0c2185a46606c2ac3e41205fe92e6d5ba4ead1b9 (diff) | |
| download | enigma2-c69bb079fef352b7b34eac8739b0dc051629cb7b.tar.gz enigma2-c69bb079fef352b7b34eac8739b0dc051629cb7b.zip | |
allow gstreamer to signalize missing plugins to the gui (requires reconfiguring enigma2) and add support for flac files (requires
libflac7, gst-plugin-flac)
Diffstat (limited to 'lib/python/Components/Scanner.py')
| -rw-r--r-- | lib/python/Components/Scanner.py | 3 |
1 files changed, 3 insertions, 0 deletions
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": |
