[spankbang] Fix extraction (closes #21763, closes #21764)
authorSergey M․ <dstftw@gmail.com>
Sat, 13 Jul 2019 17:09:39 +0000 (00:09 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 13 Jul 2019 17:13:26 +0000 (00:13 +0700)
youtube_dl/extractor/spankbang.py

index f11d728caac1e73e9fe746a87d95f4261fa11c0d..eb0919e3aa08ee98ccd680de8b1a65b280ef472b 100644 (file)
@@ -106,6 +106,8 @@ class SpankBangIE(InfoExtractor):
 
             for format_id, format_url in stream.items():
                 if format_id.startswith(STREAM_URL_PREFIX):
+                    if format_url and isinstance(format_url, list):
+                        format_url = format_url[0]
                     extract_format(
                         format_id[len(STREAM_URL_PREFIX):], format_url)