youtube-dl

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

commit 4ea5c7b70dd5cb26036cea815a9d9599aac0de36
parent 8dfa187b8a54fbe9648975216e11ad8a34d09e60
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 18 May 2014 14:23:02 +0700

[ndr] Improve thumbnail extraction

Diffstat:
Myoutube_dl/extractor/ndr.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/ndr.py b/youtube_dl/extractor/ndr.py @@ -71,7 +71,7 @@ class NDRIE(InfoExtractor): thumbnails = re.findall(r'''\d+: {src: "([^"]+)"(?: \|\| '[^']+')?, quality: '([^']+)'}''', page) if thumbnails: QUALITIES = ['xs', 's', 'm', 'l', 'xl'] - thumbnails.sort(key=lambda thumb: QUALITIES.index(thumb[1])) + thumbnails.sort(key=lambda thumb: QUALITIES.index(thumb[1]) if thumb[1] in QUALITIES else -1) thumbnail = 'http://www.ndr.de' + thumbnails[-1][0] for format_id in ['lo', 'hi', 'hq']: