git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add streaming protocols for correct uri handling
[enigma2.git]
/
lib
/
python
/
Components
/
Playlist.py
diff --git
a/lib/python/Components/Playlist.py
b/lib/python/Components/Playlist.py
index c9ebe479d852aa1f319d5210ad0a027901e8465f..bcb4e3dfd71fe04891374e2ef75a2ec46bc47d04 100644
(file)
--- 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] != "#":
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)
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)
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
if self.displayname:
sref.ref.setName(self.displayname)
self.displayname = None