Browse Source

[extractor/common] Improve jwplayer formats extraction (closes #13379)

Sergey M․ 8 years ago
parent
commit
0a268c6e11
1 changed files with 2 additions and 0 deletions
  1. 2 0
      youtube_dl/extractor/common.py

+ 2 - 0
youtube_dl/extractor/common.py

@@ -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