diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-06-24 09:42:46 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-06-24 09:42:46 +0200 |
commit | c7253e2e8c10ac537defea4a6ba4bb183b9db1e7 (patch) | |
tree | 251d6644631d2d2597b71ca252d8e241b13f55f4 /youtube_dl/extractor | |
parent | d69cf69a6a9bfbaa556ab513deb7a3c34bfa2a99 (diff) |
[youtube] fix condition always being evaluated to true
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 5afe064d1..35b95fdc2 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -486,7 +486,7 @@ class YoutubeIE(InfoExtractor): mobj = re.search(r';ytplayer.config = ({.*?});', video_webpage) info = json.loads(mobj.group(1)) args = info['args'] - if args.get('ptk','') == 'vevo' or 'dashmpd': + if args.get('ptk','') == 'vevo' or 'dashmpd' in args: # Vevo videos with encrypted signatures self.to_screen(u'%s: Vevo video detected.' % video_id) video_info['url_encoded_fmt_stream_map'] = [args['url_encoded_fmt_stream_map']] |