1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 07:39:59 +08:00

Add change sugested by bobfoss.

https://github.com/ytdl-org/youtube-dl/issues/23423#issuecomment-568222543
This commit is contained in:
vicm3 2019-12-22 17:50:08 -06:00
parent c748c6a2e1
commit 8d121b307d

View File

@ -108,7 +108,7 @@ class SpankBangIE(InfoExtractor):
})
for format_id, format_url in stream.items():
if format_id.startswith(STREAM_URL_PREFIX):
if format_id in ('240p','320p','480p','720p','1080p','4k'):
if format_url and isinstance(format_url, list):
format_url = format_url[0]
extract_format(