nficano commited on
Commit
720ed7c
·
2 Parent(s): eddcf8b c8b6ab9

Merge branch 'master' of github.com:nficano/pytube

Browse files

* 'master' of github.com:nficano/pytube:
Update __main__.py

Files changed (1) hide show
  1. pytube/__main__.py +1 -1
pytube/__main__.py CHANGED
@@ -118,7 +118,7 @@ class YouTube(object):
118
 
119
  # unscramble the progressive and adaptive stream manifests.
120
  for fmt in stream_maps:
121
- if not self.age_restricted:
122
  mixins.apply_descrambler(self.vid_info, fmt)
123
  mixins.apply_descrambler(self.player_config_args, fmt)
124
 
 
118
 
119
  # unscramble the progressive and adaptive stream manifests.
120
  for fmt in stream_maps:
121
+ if not self.age_restricted and fmt in self.vid_info:
122
  mixins.apply_descrambler(self.vid_info, fmt)
123
  mixins.apply_descrambler(self.player_config_args, fmt)
124