]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/FileDownloader.py
Set the extractor key in playlists entries
[youtube-dl] / youtube_dl / FileDownloader.py
index bf0f5bb9ef9834247c465204af006cfdfffc8efd..a8517a390303a9f23b8b99e80cff9043f2f14333 100644 (file)
@@ -539,6 +539,11 @@ class FileDownloader(object):
                          'playlist': playlist, 
                          'playlist_index': i + playliststart,
                          }
+                if not 'extractor' in entry:
+                    # We set the extractor, if it's an url it will be set then to
+                    # the new extractor, but if it's already a video we must make
+                    # sure it's present: see issue #877
+                    entry['extractor'] = ie_result['extractor']
                 entry_result = self.process_ie_result(entry,
                                                       download=download,
                                                       extra_info=extra)