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

Number of torrents active in deluge is 0 #2

Open
absywabsy opened this issue Apr 1, 2021 · 0 comments
Open

Number of torrents active in deluge is 0 #2

absywabsy opened this issue Apr 1, 2021 · 0 comments

Comments

@absywabsy
Copy link

absywabsy commented Apr 1, 2021

Hi, thanks for this script, it's so far the only one that has worked for me out of the many that are out there, well done! Just a slight issue - it is not that the script is not working, it is working, it's just that one of the checks it performs is whether deluge has any active torrents and active is defined as seeding, downloading, etc.

I have more than 80+ active torrents on deluge at the moment but the script is going into sleep because it thinks deluge is actually 0?

Number of torrents active in deluge is 0
Iteration sequence is 1/40
Sleeping for 600 seconds

I've tested the script manually and it does work and remove torrents from deluge so I don't think it doesn't have access...could it be that because I'm on a shared seedbox, it can't exactly read how many active torrents is in deluge?

#Checking the number of active torrents in deluge that are Active, Downloading or Seeding
check_num_torrents_active() {
num_torrents_active=$($dc_local_bin "connect $dc_local_host $dc_local_username $dc_local_password;info"|egrep "[S]"|wc -l)
substitute_if_null_p num_torrents_active const0

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

No branches or pull requests

1 participant