Skip to content

Commit

Permalink
Merge pull request #409 from stdedos/patch-1
Browse files Browse the repository at this point in the history
Already-signed videos can also use the `sig=` attribute
  • Loading branch information
nficano committed Jun 28, 2019
2 parents 22157bd + a69bb0f commit 8427cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytube/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def apply_signature(config_args, fmt, js):
elif live_stream:
raise LiveStreamError('Video is currently being streamed live')

if 'signature=' in url:
if any([x in url for x in ['signature=', 'sig=']]):
# For certain videos, YouTube will just provide them pre-signed, in
# which case there's no real magic to download them and we can skip
# the whole signature descrambling entirely.
Expand Down

0 comments on commit 8427cd8

Please sign in to comment.