mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2025-03-01 09:12:58 +08:00
Refactor
This commit is contained in:
parent
865363c93b
commit
099a1631db
2 changed files with 2 additions and 6 deletions
|
@ -68,13 +68,13 @@ class MediaDownloader:
|
|||
|
||||
meta: dict | None = ytdl.extract_info(url, download=True)
|
||||
if not meta:
|
||||
err_msg = f'Error during media download. Check logs. URL: "{url}"'
|
||||
err_msg = f'Error during media download. Check logs.'
|
||||
self._log.error('%s. Meta: %s', err_msg, meta)
|
||||
raise MediaDownloaderError(err_msg)
|
||||
|
||||
current_files = os.listdir(curr_tmp_dir)
|
||||
if not current_files:
|
||||
err_msg = f'Nothing downloaded. Is URL valid? URL: "{url}"'
|
||||
err_msg = f'Nothing downloaded. Is URL valid?'
|
||||
self._log.error(err_msg)
|
||||
raise MediaDownloaderError(err_msg)
|
||||
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
[tool.black]
|
||||
line-length = 88
|
||||
skip-string-normalization = 1
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 88
|
||||
select = ["F", "E", "W", "I001"]
|
||||
|
|
Loading…
Reference in a new issue