diff options
author | 香芋奶茶 <17985734+Kiritomo@users.noreply.github.com> | 2025-04-19 03:12:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-18 21:12:27 +0200 |
commit | f5736bb35bde62348caebf7b188668655e316deb (patch) | |
tree | 9105dcb34e0b132245ebf6db7a310de81e0a18ff | |
parent | 9d26daa04ad5108257bc5e30f7f040c7f1fe7a5a (diff) |
[ie/AbemaTV] Fix thumbnail extraction (#12859)
Closes #12858
Authored by: Kiritomo
-rw-r--r-- | yt_dlp/extractor/abematv.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yt_dlp/extractor/abematv.py b/yt_dlp/extractor/abematv.py index 8c7131b10..8f2fc4c80 100644 --- a/yt_dlp/extractor/abematv.py +++ b/yt_dlp/extractor/abematv.py @@ -21,6 +21,7 @@ from ..utils import ( int_or_none, time_seconds, traverse_obj, + update_url, update_url_query, ) @@ -417,6 +418,10 @@ class AbemaTVIE(AbemaTVBaseIE): 'is_live': is_live, 'availability': availability, }) + + if thumbnail := update_url(self._og_search_thumbnail(webpage, default=''), query=None): + info['thumbnails'] = [{'url': thumbnail}] + return info |