youtube-dl

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

commit 8f6562448c7fe1ce6723300ed46c3f51a92c52ac
parent 263f4b514b9b90a217152d2ef8fbf5b884b41b5a
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 28 Mar 2014 23:09:56 +0700

[ntv] Move app guess outside formats loop

Diffstat:
Myoutube_dl/extractor/ntv.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/ntv.py b/youtube_dl/extractor/ntv.py @@ -125,13 +125,14 @@ class NTVIE(InfoExtractor): '7': 'video2', } + app = apps[puid22] if puid22 in apps else apps['4'] + formats = [] for format_id in ['', 'hi', 'webm']: file = video.find('./%sfile' % format_id) if file is None: continue size = video.find('./%ssize' % format_id) - app = apps[puid22] if puid22 in apps else apps['4'] formats.append({ 'url': 'rtmp://media.ntv.ru/%s' % app, 'app': app,