1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 02:01:50 +00:00

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

This commit is contained in:
Sergey M․ 2019-07-14 00:09:39 +07:00
parent b99f11a56b
commit 5f562bd4bb
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View 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)