youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 8027175600c694537cecf0e5de2c6b9de559592b
parent 3054ff0cbebc7969d918f0deee76cd37ea6f5b40
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date:   Sat,  8 Jun 2013 12:08:44 +0200

Set the extractor key in playlists entries

If they were videos the extractor key wasn't being set anywhere else
Closes 877

Diffstat:
Myoutube_dl/FileDownloader.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py @@ -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)