1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-14 13:37:45 +08:00

[__init__] Don't download thumbnails if --skip-download is used

This commit is contained in:
Yen Chi Hsuan 2016-06-09 22:47:10 +08:00
parent 7c640d273c
commit 7ec90b9898

View File

@ -252,7 +252,7 @@ def _real_main(argv=None):
'key': 'EmbedThumbnail',
'already_have_thumbnail': already_have_thumbnail
})
if not already_have_thumbnail:
if not already_have_thumbnail and not opts.skip_download:
opts.writethumbnail = True
# Please keep ExecAfterDownload towards the bottom as it allows the user to modify the final file in any way.
# So if the user is able to remove the file before your postprocessor runs it might cause a few problems.