aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-08-14 07:35:31 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-08-14 07:35:31 +0000
commit853a25f5b72ba119899baf8b1b50532e2900cfa9 (patch)
tree7ced4065f6e3a427434bf1d21b5ad851cc82eba7 /lib/python/Plugins/Extensions/MediaPlayer/plugin.py
parentd9b671360e525ffc2406b4becfb9bf600b07b662 (diff)
downloadenigma2-853a25f5b72ba119899baf8b1b50532e2900cfa9.tar.gz
enigma2-853a25f5b72ba119899baf8b1b50532e2900cfa9.zip
add autoplay detection for .ts movies
Diffstat (limited to 'lib/python/Plugins/Extensions/MediaPlayer/plugin.py')
-rw-r--r--lib/python/Plugins/Extensions/MediaPlayer/plugin.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
index cb20dd22..e1e0e226 100644
--- a/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
+++ b/lib/python/Plugins/Extensions/MediaPlayer/plugin.py
@@ -784,7 +784,11 @@ def filescan_open(list, session, **kwargs):
mp.switchToPlayList()
for file in list:
- ref = eServiceReference(4097, 0, file.path)
+ if file.mimetype == "video/MP2T":
+ stype = 1
+ else:
+ stype = 4097
+ ref = eServiceReference(stype, 0, file.path)
mp.playlist.addFile(ref)
# TODO: rather play first than last file?
@@ -812,7 +816,7 @@ def audioCD_open(list, session, **kwargs):
def filescan(**kwargs):
from Components.Scanner import Scanner, ScanPath
mediatypes = [
- Scanner(mimetypes = ["video/mpeg"],
+ Scanner(mimetypes = ["video/mpeg", "video/MP2T"],
paths_to_scan =
[
ScanPath(path = "", with_subdirs = False),