aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-09-30 18:49:03 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-09-30 18:49:03 +0200
commitc489d16668d49a535e3c38390c458a0b6015b7ba (patch)
treea3453595da672dee9c45d9d035436e90554c819b
parent75075cfb95a6e2a37e2bea79849114bd75140e0f (diff)
plugins.youtube: Adding a special signature to stream URL is now needed.
-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]]