A feature-rich command-line audio/video downloader
YoutubeDL: Use its `urlopen` method for downloading the thumbnail.
Jaime Marquínez Ferrándize9c092f1252d
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.pyindex 62ccad20c5..6fd0969b5d 100644--- a/youtube_dl/YoutubeDL.py+++ b/youtube_dl/YoutubeDL.py@@ -918,7 +918,7 @@ class YoutubeDL(object):self.to_screen('[%s] %s: Downloading thumbnail ...' %(info_dict['extractor'], info_dict['id']))try:- uf = compat_urllib_request.urlopen(info_dict['thumbnail'])+ uf = self.urlopen(info_dict['thumbnail'])with open(thumb_filename, 'wb') as thumbf:shutil.copyfileobj(uf, thumbf)self.to_screen('[%s] %s: Writing thumbnail to: %s' %