diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-01 17:56:37 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-05 00:02:27 +0530 |
commit | 29f7c58aafb25a094e267a8a3fb355e102e42792 (patch) | |
tree | 5537f53fb970bc5b29370f97e8f190a6e4dc7d4e /youtube_dlc/YoutubeDL.py | |
parent | c2b5f3114ff0f2888af211323ad60505d87fb2fd (diff) | |
download | hypervideo-pre-29f7c58aafb25a094e267a8a3fb355e102e42792.tar.lz hypervideo-pre-29f7c58aafb25a094e267a8a3fb355e102e42792.tar.xz hypervideo-pre-29f7c58aafb25a094e267a8a3fb355e102e42792.zip |
Update to ytdl-2021.01.03
Diffstat (limited to 'youtube_dlc/YoutubeDL.py')
-rw-r--r-- | youtube_dlc/YoutubeDL.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py index 2cc02e46f..715eaa7dc 100644 --- a/youtube_dlc/YoutubeDL.py +++ b/youtube_dlc/YoutubeDL.py @@ -1705,7 +1705,7 @@ class YoutubeDL(object): if req_format is None: req_format = self._default_format_spec(info_dict, download=download) if self.params.get('verbose'): - self.to_stdout('[debug] Default format spec: %s' % req_format) + self._write_string('[debug] Default format spec: %s\n' % req_format) format_selector = self.build_format_selector(req_format) @@ -1919,7 +1919,7 @@ class YoutubeDL(object): for ph in self._progress_hooks: fd.add_progress_hook(ph) if self.params.get('verbose'): - self.to_stdout('[debug] Invoking downloader on %r' % info.get('url')) + self.to_screen('[debug] Invoking downloader on %r' % info.get('url')) return fd.download(name, info, subtitle) subtitles_are_requested = any([self.params.get('writesubtitles', False), @@ -2635,7 +2635,7 @@ class YoutubeDL(object): thumb_ext = determine_ext(t['url'], 'jpg') suffix = '_%s' % t['id'] if len(thumbnails) > 1 else '' thumb_display_id = '%s ' % t['id'] if len(thumbnails) > 1 else '' - t['filename'] = thumb_filename = os.path.splitext(filename)[0] + suffix + '.' + thumb_ext + t['filename'] = thumb_filename = replace_extension(filename + suffix, thumb_ext, info_dict.get('ext')) if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(thumb_filename)): self.to_screen('[%s] %s: Thumbnail %sis already present' % |