diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-29 01:02:37 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-29 01:03:32 +0530 |
commit | 66c935fb16c21280dde261f7f48f04c50c462df5 (patch) | |
tree | 6cd5b3a972ce096331ffdee118ac80254f280980 /youtube_dlc/YoutubeDL.py | |
parent | 64c0d954e573a608e497c8318b35a81c25583003 (diff) | |
download | hypervideo-pre-66c935fb16c21280dde261f7f48f04c50c462df5.tar.lz hypervideo-pre-66c935fb16c21280dde261f7f48f04c50c462df5.tar.xz hypervideo-pre-66c935fb16c21280dde261f7f48f04c50c462df5.zip |
Linter and misc cleanup
:ci skip dl
Diffstat (limited to 'youtube_dlc/YoutubeDL.py')
-rw-r--r-- | youtube_dlc/YoutubeDL.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py index 20a4af751..e88299f19 100644 --- a/youtube_dlc/YoutubeDL.py +++ b/youtube_dlc/YoutubeDL.py @@ -1119,15 +1119,15 @@ class YoutubeDL(object): if not ensure_dir_exists(encodeFilename(infofn)): return if self.params.get('overwrites', True) and os.path.exists(encodeFilename(infofn)): - self.to_screen('[info] Playlist description metadata is already present') + self.to_screen('[info] Playlist metadata is already present') else: - self.to_screen('[info] Writing description playlist metadata as JSON to: ' + infofn) + self.to_screen('[info] Writing playlist metadata as JSON to: ' + infofn) playlist_info = dict(ie_result) playlist_info.pop('entries') try: write_json_file(self.filter_requested_info(playlist_info), infofn) except (OSError, IOError): - self.report_error('Cannot write playlist description metadata to JSON file ' + infofn) + self.report_error('Cannot write playlist metadata to JSON file ' + infofn) if self.params.get('writedescription', False): descfn = replace_extension( @@ -2144,13 +2144,13 @@ class YoutubeDL(object): if not ensure_dir_exists(encodeFilename(infofn)): return if not self.params.get('overwrites', True) and os.path.exists(encodeFilename(infofn)): - self.to_screen('[info] Video description metadata is already present') + self.to_screen('[info] Video metadata is already present') else: - self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn) + self.to_screen('[info] Writing video metadata as JSON to: ' + infofn) try: write_json_file(self.filter_requested_info(info_dict), infofn) except (OSError, IOError): - self.report_error('Cannot write metadata to JSON file ' + infofn) + self.report_error('Cannot write video metadata to JSON file ' + infofn) return info_dict['__infojson_filepath'] = infofn |