return "application/ogg"
elif ext == "dmpkg":
return "application/x-dream-package"
+ elif ext == "ts":
+ return "video/MP2T"
elif ext == "iso":
- return "video/x-dvd-iso"
+ return "video/x-dvd-iso"
elif file[-12:].lower() == "video_ts.ifo":
return "video/x-dvd"
return type
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?
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),