aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-10-04 12:21:42 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-10-04 14:04:11 +0200
commit9bf96226fd76e1e318cc111a308b4289d91858e5 (patch)
tree81263d75bbca34a7b7bcb3514542d0646e469e34
parentd116953ddae86499392cab68bc4b14c119231821 (diff)
stream.hls: Fix relative sequence URLs.
-rw-r--r--src/livestreamer/stream/hls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/livestreamer/stream/hls.py b/src/livestreamer/stream/hls.py
index f899287..72fcbcd 100644
--- a/src/livestreamer/stream/hls.py
+++ b/src/livestreamer/stream/hls.py
@@ -212,8 +212,8 @@ class HLSStream(Stream):
self.playlist_minimal_reload_time = duration
def _relative_url(self, url):
- if url[0] == "/":
- return urljoin(os.path.dirname(self.url), url)
+ if not url.startswith("http"):
+ return "{0}/{1}".format(os.path.dirname(self.url), url)
else:
return url