chore: 更换代码格式化器,移除无用依赖

This commit is contained in:
amtoaer
2024-02-21 23:54:39 +08:00
parent 0bc7b831de
commit 1dd760d445
5 changed files with 30 additions and 173 deletions

View File

@@ -302,9 +302,10 @@ async def process_favorite_item(
await process.communicate()
fav_item.tmp_video_path.unlink()
else:
paths, tasks = [fav_item.tmp_video_path], [
download_content(streams[0].url, fav_item.tmp_video_path)
]
paths, tasks = (
[fav_item.tmp_video_path],
[download_content(streams[0].url, fav_item.tmp_video_path)],
)
if streams[1]:
paths.append(fav_item.tmp_audio_path)
tasks.append(download_content(streams[1].url, fav_item.tmp_audio_path))