]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube] Respect noplaylist for multifeed videos
authorSergey M․ <dstftw@gmail.com>
Sat, 25 Jul 2015 16:17:06 +0000 (22:17 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 25 Jul 2015 16:17:06 +0000 (22:17 +0600)
youtube_dl/extractor/youtube.py

index afe0a781b3439ab2f568969baf9a2ec95d2593e0..bcd27408dae6f41d869224ef1a3a3e3b62a0be7b 100644 (file)
@@ -1089,7 +1089,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
             else:
                 video_description = ''
 
-        if not smuggled_data.get('force_singlefeed', False) and 'multifeed_metadata_list' in video_info:
+        if (not self._downloader.params.get('noplaylist') and
+                not smuggled_data.get('force_singlefeed', False) and
+                'multifeed_metadata_list' in video_info):
             entries = []
             multifeed_metadata_list = compat_urllib_parse_unquote_plus(video_info['multifeed_metadata_list'][0])
             for feed in multifeed_metadata_list.split(','):