aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/livestreamer/plugins/youtube.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/livestreamer/plugins/youtube.py b/src/livestreamer/plugins/youtube.py
index c5f5d37..93a9ee4 100644
--- a/src/livestreamer/plugins/youtube.py
+++ b/src/livestreamer/plugins/youtube.py
@@ -74,10 +74,11 @@ class Youtube(Plugin):
formatmap = self._parse_format_map(fmtlist)
for streaminfo in streammap:
- if not "url" in streaminfo:
+ if not ("url" in streaminfo and "sig" in streaminfo):
continue
- stream = HTTPStream(self.session, streaminfo["url"][0])
+ stream = HTTPStream(self.session, streaminfo["url"][0],
+ params=dict(signature=streaminfo["sig"][0]))
if streaminfo["itag"][0] in formatmap:
quality = formatmap[streaminfo["itag"][0]]