aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Playlist.py
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2009-05-29 13:48:31 +0200
committerFraxinas <andreas.frisch@multimedia-labs.de>2009-05-29 13:48:31 +0200
commit7bec3eb85bd3329ec6611cf65666ff8948f4916a (patch)
tree74e8d96e3f48b2b440a55a56e40edbf09e63e737 /lib/python/Components/Playlist.py
parentda9ff2d4793dd5c6ab21763b3c4189ff2d4ab972 (diff)
downloadenigma2-7bec3eb85bd3329ec6611cf65666ff8948f4916a.tar.gz
enigma2-7bec3eb85bd3329ec6611cf65666ff8948f4916a.zip
add streaming protocols for correct uri handling
Diffstat (limited to 'lib/python/Components/Playlist.py')
-rw-r--r--lib/python/Components/Playlist.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/Components/Playlist.py b/lib/python/Components/Playlist.py
index c9ebe479..bcb4e3df 100644
--- a/lib/python/Components/Playlist.py
+++ b/lib/python/Components/Playlist.py
@@ -73,12 +73,14 @@ class PlaylistIOM3U(PlaylistIO):
self.displayname = extinf[1]
# TODO: use e2 facilities to create a service ref from file
elif entry[0] != "#":
+ remote_protos = ["http", "https", "udp", "rtsp", "rtp", "mmp"]
if entry[0] == "/":
sref = ServiceReference("4097:0:0:0:0:0:0:0:0:0:" + entry)
- elif entry.startswith("http"):
- sref = ServiceReference("4097:0:0:0:0:0:0:0:0:0:" + entry.replace(':',"%3a"))
else:
sref = ServiceReference("4097:0:0:0:0:0:0:0:0:0:" + os.path.dirname(filename) + "/" + entry)
+ for proto in remote_protos:
+ if entry.startswith(proto):
+ sref = ServiceReference("4097:0:0:0:0:0:0:0:0:0:" + entry.replace(':',"%3a"))
if self.displayname:
sref.ref.setName(self.displayname)
self.displayname = None