]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[extractor/common] Improve jwplayer formats extraction (closes #13379)
authorSergey M․ <dstftw@gmail.com>
Wed, 14 Jun 2017 15:02:15 +0000 (22:02 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 14 Jun 2017 15:02:15 +0000 (22:02 +0700)
youtube_dl/extractor/common.py

index f027447c81922c4ab0f0974f6703be739de515ea..941385ae2eb3bd844989d19efb86f233c50d45c8 100644 (file)
@@ -2328,6 +2328,8 @@ class InfoExtractor(object):
         urls = []
         formats = []
         for source in jwplayer_sources_data:
+            if not isinstance(source, dict):
+                continue
             source_url = self._proto_relative_url(source.get('file'))
             if not source_url:
                 continue