mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 08:19:57 +01:00
parent
1d485a1a79
commit
bfec31bec8
@ -3402,13 +3402,13 @@ def feed_entry(name):
|
|||||||
original_thumbnails = thumbnails.copy()
|
original_thumbnails = thumbnails.copy()
|
||||||
|
|
||||||
# The best resolution thumbnails sometimes does not appear in the webpage
|
# The best resolution thumbnails sometimes does not appear in the webpage
|
||||||
# See: https://github.com/ytdl-org/youtube-dl/issues/29049, https://github.com/yt-dlp/yt-dlp/issues/340
|
# See: https://github.com/yt-dlp/yt-dlp/issues/340
|
||||||
# List of possible thumbnails - Ref: <https://stackoverflow.com/a/20542029>
|
# List of possible thumbnails - Ref: <https://stackoverflow.com/a/20542029>
|
||||||
thumbnail_names = [
|
thumbnail_names = [
|
||||||
'maxresdefault', 'hq720', 'sddefault', 'sd1', 'sd2', 'sd3',
|
# While the *1,*2,*3 thumbnails are just below their correspnding "*default" variants
|
||||||
'hqdefault', 'hq1', 'hq2', 'hq3', '0',
|
# in resolution, these are not the custom thumbnail. So de-prioritize them
|
||||||
'mqdefault', 'mq1', 'mq2', 'mq3',
|
'maxresdefault', 'hq720', 'sddefault', 'hqdefault', '0', 'mqdefault', 'default',
|
||||||
'default', '1', '2', '3'
|
'sd1', 'sd2', 'sd3', 'hq1', 'hq2', 'hq3', 'mq1', 'mq2', 'mq3', '1', '2', '3'
|
||||||
]
|
]
|
||||||
n_thumbnail_names = len(thumbnail_names)
|
n_thumbnail_names = len(thumbnail_names)
|
||||||
thumbnails.extend({
|
thumbnails.extend({
|
||||||
|
Loading…
Reference in New Issue
Block a user