Search found 10 matches

by tagwolf
April 16th, 2023, 7:50 am
Forum: Post-Processing Scripts
Topic: sabnzbd_monitor.py - Detects and prevents downloads stalling and keeps everything running 100%.
Replies: 5
Views: 12326

Re: sabnzbd_monitor.py - Detects and prevents downloads stalling and keeps everything running 100%.

Yea, there's got to be a way to implement some stall detection. Even if it's something as simple as a tunable timeout vs the size of the file for sab to just mark it as failed and move on.

Or better yet, an amount of time where the download hasn't progressed after X time.
by tagwolf
April 12th, 2023, 8:56 pm
Forum: Post-Processing Scripts
Topic: sabnzbd_monitor.py - Detects and prevents downloads stalling and keeps everything running 100%.
Replies: 5
Views: 12326

Re: sabnzbd_monitor.py - Detects and prevents downloads stalling and keeps everything running 100%.

Just looked at the sabnzbd source code. I'm primarily a python developer so lucky all around that it's python!

Is there any developer documentation on files, libraries, etc.

Also a list of known problems and bugs?
by tagwolf
April 12th, 2023, 10:23 am
Forum: Post-Processing Scripts
Topic: sabnzbd_monitor.py - Detects and prevents downloads stalling and keeps everything running 100%.
Replies: 5
Views: 12326

Re: sabnzbd_monitor.py - Detects and prevents downloads stalling and keeps everything running 100%.

safihre wrote: April 10th, 2023, 12:46 pm Wouldn't it be more useful to help us fix why it's stalls? 😅
This is an interesting idea :P. I haven't looked much at the sabnzbd source code? What language is it in? I'm primarily a python developer but know a few other languages.
by tagwolf
April 10th, 2023, 12:18 am
Forum: Bug Reports
Topic: sabnzbd queue API bug in quota and left_quota
Replies: 2
Views: 6629

sabnzbd queue API bug in quota and left_quota

Both quota and left_quota have spaces after them when they show 0, and possibly other values in both json and xml in the queue api: Version: 3.7.2 json quota: "0 " left_quota: "0 " xml <quota>0 </quota> <left_quota>0 </left_quota> This will cause many scripts and other things to ...
by tagwolf
April 9th, 2023, 11:30 pm
Forum: Post-Processing Scripts
Topic: sabnzbd_monitor.py - Detects and prevents downloads stalling and keeps everything running 100%.
Replies: 5
Views: 12326

sabnzbd_monitor.py - Detects and prevents downloads stalling and keeps everything running 100%.

I created a script that ensures sabnzbd is always stable and running to fix any stalls. This works great on my ubuntu system. Adjust as needed. Update the Config options for host , port , protocol , apikey , state_file , and restart_command (if needed). The state_file config option isn't anything sp...
by tagwolf
April 9th, 2023, 11:29 pm
Forum: General Discussion
Topic: New User!
Replies: 7
Views: 103632

Re: New User!

I do hope you might update the regex for URL detection to be a bit less restrictive. I think limiting new users from posting scripts might make us miss out on some cool stuff. Here's a potentially good one to try: /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0...
by tagwolf
April 9th, 2023, 11:27 pm
Forum: Debian/Ubuntu Package
Topic: FYI: shell script to show SABnzbd's Queue and History
Replies: 1
Views: 5430

Re: FYI: shell script to show SABnzbd's Queue and History

Whoa I haven't seen lynx used in a long time. That brings me back :).
by tagwolf
April 9th, 2023, 11:25 pm
Forum: Debian/Ubuntu Package
Topic: Howto: Delay Start sabnzbdplus in Ubuntu
Replies: 4
Views: 55358

Re: Howto: Delay Start sabnzbdplus in Ubuntu

A more systemd proper way to do this is to add the following to the service file:

[Service]
ExecStartPre=/bin/sleep 30
by tagwolf
April 9th, 2023, 11:24 pm
Forum: General Help
Topic: Re-run a post-processing script?
Replies: 4
Views: 9088

Re: Re-run a post-processing script?

You would need to create your own script that checked the result of the script and reran it if you didn't get the result you wanted. Run that script in sab instead of the main one. This is a very deep topic so if you are interested in it you should look into learning python or another language.
by tagwolf
April 9th, 2023, 11:22 pm
Forum: General Help
Topic: Manually run post-processing script? (for testing)
Replies: 3
Views: 2733

Re: Manually run post-processing script? (for testing)

Are you running sabnzbd from Windows or Linux? As @shypike said, you would just open a command prompt or terminal (ssh via linux) and run the script (with arguments) from there. What script are you trying to run?