Browse Source

[spankbang] Fix extraction (closes #21763, closes #21764)

master
Sergey M․ 5 years ago
parent
commit
5f562bd4bb
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/spankbang.py

+ 2
- 0
youtube_dl/extractor/spankbang.py View File

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


Loading…
Cancel
Save