From 9bf96226fd76e1e318cc111a308b4289d91858e5 Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Thu, 4 Oct 2012 12:21:42 +0200 Subject: stream.hls: Fix relative sequence URLs. --- src/livestreamer/stream/hls.py | 4 ++-- 1 file 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 -- cgit v1.2.3