Skip to content
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

[Bug]: data.yaml重试列表更新错误 #194

Open
songquanxu opened this issue Sep 1, 2024 · 2 comments
Open

[Bug]: data.yaml重试列表更新错误 #194

songquanxu opened this issue Sep 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@songquanxu
Copy link

telegram_media_downloader version or commit

2.2.4

What OS are you seeing the problem on?

Other Linux Distro

Python Version

3.10.12

What happened?

启动时首先会下载之前失败的任务,但有些任务已经被正确下载了,但data.yaml仍旧记录为未下载,随着这样的文件增多,导致程序以非常高的速度去尝试列表中的文件,产生了和服务器的连接错误。

Expected Behavior

只要下载成功,或者发现需要下载的文件已存在,就立即移除data.yaml中对应的记录。

Current Behavior

在data.yaml文件中需要重新下载的文件,再次下载时如果发现硬盘该文件已存在,则自动跳过下载,但未在data.yaml中清除这个项目,导致这个列表不断的增大。有的成功下载的文件也没有被从列表中移除。

Possible Solution

我在主程序的worker()部分看到了对应的代码,但是发现在有些时候这些代码不起作用。

Steps to Reproduce

在一个有大量重试任务的列表中,就会重现该问题

Relevant log output

No response

@songquanxu songquanxu added the bug Something isn't working label Sep 1, 2024
@OriginChaos
Copy link

同现象+1,我现在是核对之后手动去data.yaml里面删

@tangyoha
Copy link
Owner

tangyoha commented Sep 4, 2024

迁移到telethon完毕后修复该问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants