-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
封面图重复下载 #399
Comments
I found a similar open issue where the suggested solution is that files that already exist are automatically skipped without any prompt, and the download record only affects videos, albums, and live works files [1]. To prevent the cover image from being repeatedly downloaded when def download_cover(
self,
tasks: list,
name: str,
id_: str,
item: SimpleNamespace,
temp_root: Path,
actual_root: Path,
original_suffix: str = "jpeg",
dynamic_suffix: str = "webp",
**kwargs,
) -> None:
if all((self.original,
url := item["origin_cover"],
not self.is_exists(p := actual_root.with_name(f"{name}.{original_suffix}"))
)):
tasks.append((
url,
temp_root.with_name(f"{name}.{original_suffix}"),
p,
f"【封面】{name}",
id_,
original_suffix,
)) The condition To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
当开启 "original_cover": true,
已经下载过的视频的封面图会无限次数的被重复下载, 删除封面图文件后,再下次在611q模式下运行main.py,程序依然会每次都重复下载以前所有视频的封面图
请问大家遇到过这个情况吗, 怎么解决的? 感谢指点
The text was updated successfully, but these errors were encountered: