1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-02-11 16:34:25 +00:00

Fixed up tests and linting

This commit is contained in:
Kieran Eglin
2024-04-24 10:57:39 -07:00
parent 44bb6c2056
commit ea2a085397
3 changed files with 29 additions and 134 deletions

View File

@@ -1982,7 +1982,7 @@ class YoutubeDL:
'playlist', ie_result, self.prepare_filename(ie_copy, 'pl_infojson'))
if _infojson_written is None:
return
description_file = self._write_description('playlist', ie_result, self.prepare_filename(ie_copy, 'pl_description'))
if description_file is None:
return
@@ -4265,7 +4265,6 @@ class YoutubeDL:
self.to_screen(f'[info] Writing {label} description to: {filename}')
with open(filename, 'w', encoding='utf-8') as descfile:
descfile.write(info_dict['description'])
info_dict['description_filepath'] = filename
except OSError:
self.report_error(f'Cannot write {label} description file {filename}')
return None