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

transmission 任务添加后 无活动时,活动时间为0 (1970.1.1.0.0.0啥的) 使用 action: remove-inactive-seeds 会导致 误删除 #109

Closed
wants to merge 1 commit into from

Conversation

LaierX
Copy link

@LaierX LaierX commented Aug 1, 2021

transmission 任务添加后 无活动时,活动时间为0 (1970.1.1.0.0.0啥的) 使用 action: remove-inactive-seeds 会导致误删除
加了个判断,如果 活动时间为 0 则为当前时间 以免误删

transmission 任务添加后 无活动时,活动时间为0 (1970.1.1.0.0.0啥的)  使用 action: remove-inactive-seeds 会导致 误删除
@LaierX LaierX changed the title Update transmission.py transmission 任务添加后 无活动时,活动时间为0 (1970.1.1.0.0.0啥的) 使用 action: remove-inactive-seeds 会导致 误删除 Aug 1, 2021
@jerrymakesjelly jerrymakesjelly force-pushed the master branch 2 times, most recently from 8d80058 to 2827697 Compare April 15, 2022 09:30
@jerrymakesjelly jerrymakesjelly mentioned this pull request Apr 22, 2022
44 tasks
jerrymakesjelly added a commit that referenced this pull request Apr 28, 2022
1. It won't remove those torrents that have never been active by default
2. Use a special way to remove above torrents, which is, setting

  last_activity: never

or

  last_activity: none

Closes #93, #98, #109.
jerrymakesjelly added a commit that referenced this pull request Apr 28, 2022
1. It won't remove those torrents that have never been active by default
2. Use a special way to remove above torrents, which is, setting

  last_activity: never

or

  last_activity: none

Closes #93, #98, #109.
@jerrymakesjelly
Copy link
Owner

感谢!不过我更倾向于用 None 表示无活动的种子,一方面可以防止误删,另一方面可以用这个标记去设计条件,从而提供专门删除无活动的种子的功能。

所以,可以麻烦你将 time.time() 修改为 None 吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants