From: Sergey M․ Date: Wed, 11 Mar 2015 14:34:32 +0000 (+0600) Subject: [npo] Improve smooth stream skipping and set low preference for streams other than... X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=32aaeca775c03ce784b8a30ea987c03a25a00e98;p=youtube-dl [npo] Improve smooth stream skipping and set low preference for streams other than hds ans hls (Closes #5175) --- diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py index 9c01eb0af..557dffa46 100644 --- a/youtube_dl/extractor/npo.py +++ b/youtube_dl/extractor/npo.py @@ -219,7 +219,8 @@ class NPOLiveIE(NPOBaseIE): if streams: for stream in streams: stream_type = stream.get('type').lower() - if stream_type == 'ss': + # smooth streaming is not supported + if stream_type in ['ss', 'ms']: continue stream_info = self._download_json( 'http://ida.omroep.nl/aapi/?stream=%s&token=%s&type=jsonp' @@ -242,6 +243,7 @@ class NPOLiveIE(NPOBaseIE): else: formats.append({ 'url': stream_url, + 'preference': -10, }) self._sort_formats(formats)