[Tip] Changing the script-option on whole queue

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
zhiva
Newbie
Newbie
Posts: 2
Joined: September 9th, 2010, 3:29 pm

[Tip] Changing the script-option on whole queue

Post by zhiva »

Hello all, thought I´d share a tip I just had to use.

Because of an error on my side, all new downloads in the tv-category got the wrong script assigned. My queue was 20 pages long, so it seemed a bit tedious to do everyone manually. What I did:

1. Stop SABnzbd
2. Command: cd /home/[username]/.sabnzbd/cache
3. Command: find ./ -type f -exec sed -i 's/[name_of_wrong_script]/[name_of_correct_script]/' {} \;
  * Type in without the [] around script. For me it became: find ./ -type f -exec sed -i 's/mediarover-sort.sh/sabToSickBeard.py/' {} \;
4. Start SABnzbd (sudo invoke-rc.d sabnzbd restart if you use Ubuntu)

Now, the queue has changed to the new script.

BEWARE: This can seriously mess up your queue, do a backup of the cache-directory first!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: [Tip] Changing the script-option on whole queue

Post by shypike »

Rather risky, given that the queue admin files are binary.
zhiva
Newbie
Newbie
Posts: 2
Joined: September 9th, 2010, 3:29 pm

Re: [Tip] Changing the script-option on whole queue

Post by zhiva »

Yeah, but I found alot of the text was cleartext, so sed-ing it seemed ok. Didnt harm my list at least, and its worth a shot if people have a huge list and find it tedious to change all dropdown boxes.
Post Reply