1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 17:27:21 +08:00

fix twitch thumbnail bug

This commit is contained in:
Avichai 2020-03-18 13:20:29 +02:00
parent 3a3645e6f2
commit 615f63bb83

View File

@ -617,7 +617,7 @@ class TwitchStreamIE(TwitchBaseIE):
thumbnails = [] thumbnails = []
for thumbnail_key, thumbnail_url in stream['preview'].items(): for thumbnail_key, thumbnail_url in stream['preview'].items():
m = re.search(r'(?P<width>\d+)x(?P<height>\d+)\.jpg$', thumbnail_key) m = re.search(r'(?P<width>\d+)x(?P<height>\d+)\.jpg$', thumbnail_url)
if not m: if not m:
continue continue
thumbnails.append({ thumbnails.append({