diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 27c1e726ff..eb7470f72c 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1271,7 +1271,7 @@ def process_info(self, info_dict): return if self.params.get('writedescription', False): - descfn = filename + '.description' + descfn = replace_extension(filename, 'description', info_dict.get('ext')) if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(descfn)): self.to_screen('[info] Video description is already present') elif info_dict.get('description') is None: