diff options
-rw-r--r-- | src/livestreamer/stream/hls.py | 4 |
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 |