Skip to content

Commit

Permalink
[youtube] nope
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Nov 8, 2015
1 parent cf237b4 commit 763b1e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/you_get/extractors/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,10 @@ def extract(self, **kwargs):

if stream_id in self.streams:
src = self.streams[stream_id]['url']
if 'sig' in self.streams[stream_id]:
if self.streams[stream_id]['sig'] is not None:
sig = self.streams[stream_id]['sig']
src += '&signature={}'.format(sig)
elif 's' in self.streams[stream_id]:
elif self.streams[stream_id]['s'] is not None:
if not hasattr(self, 'js'):
self.js = get_content(self.html5player)
s = self.streams[stream_id]['s']
Expand Down

0 comments on commit 763b1e7

Please sign in to comment.