Page 1 of 1

Update download speed + timeleft for downloading 'force' nzb

Posted: January 30th, 2013, 8:03 am
by tripkip
Using SABnzbd 0.7.9.

In the web UI the download speed or time left is not shown/updated while items with 'force' priority are downloaded.
This is happening because the queue is paused, but since force overrules the queue being paused the speed and time left for the 'force' items should be displayed.

Re: Update download speed + timeleft for downloading 'force'

Posted: January 30th, 2013, 2:19 pm
by shypike
It will be, in 0.7.10

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 3:27 am
by tripkip
shypike wrote:It will be, in 0.7.10
Awesom shypike! Thanks.

I don't know if it's a little buggie or if it's just the way it's designed, but when sickbeard adds an nzb to the queue it sends it with priority 'high'.
My SABnzbd category for sickbeard is set to priority 'force'. SABnzbd ignores the category priority because it is added with a manual priority.
Can I/you make it so that it still uses force?

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 4:07 am
by shypike
You'll need a pre-queue script for that.

Code: Select all

@echo off
echo 1
echo.
echo.
echo.
echo.
if "%5" == "1" echo 2
if not "%5" == "1" echo.
Details are described in the Wiki: http://wiki.sabnzbd.org/user-pre-queue-script

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 4:30 am
by tripkip
shypike wrote:You'll need a pre-queue script for that.

Code: Select all

@echo off
echo 1
echo.
echo.
echo.
echo.
if "%5" == "1" echo 2
if not "%5" == "1" echo.
Details are described in the Wiki: http://wiki.sabnzbd.org/user-pre-queue-script
My category voor TV is called 'TV'..
Is this correct then?

Code: Select all

@echo off
echo 1
echo.
echo.
echo.
echo.
if "%3" == "TV" echo 2
if not "%3" == "TV" echo.
echo.
OK I see now what you did with your example O0
It switches high to force.

Thanks.

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 9:57 am
by tripkip
Hmm your script worked when I tested it a first time.
Now when sickbeard added a new ep it didn't:
2013-02-01 15:49:44,561::INFO::[newsunpack:1533] Running pre-queue script ['/SABscripts/high2force.sh', 'Some.TV.SHOW.S06E14.720p.WEB-DL.DD5.1.H.264', '', 'tv', '', '1', '750876724', 'alt.binaries.teevee', 'Some TV Show', '6', '14', '720p WEB-DL DD5 1 H 264']

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 10:12 am
by shypike
It didn't what?
Not run the script or not give the wanted result?

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 10:29 am
by tripkip
Not giving the wanted result. According to the log the script ran.
It works for a backlog tv show, not for a new one.
Sickbeard sends backlog TV shows without any priority (so default). --> these are added with priority 'force' correctly
New ones are sent with priority 'high'. --> these are still added with priority 'high'

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 12:27 pm
by shypike
Can you list your script?

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 1:02 pm
by tripkip
shypike wrote:Can you list your script?
I tried both of the scripts below.

Code: Select all

echo off
echo 1
echo.
echo.
echo.
echo.
if "%5" == "1" echo 2
if not "%5" == "1" echo.

Code: Select all

echo off
echo 1
echo.
echo.
echo.
echo.
if "%3" == "tv" echo 2
if not "%3" == "tv" echo.

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 1:14 pm
by shypike
Eh, you are using a Windows script on a Linux system?
That won't work.
Even the Windows variant that you list is incorrect: you left out the @ at the start of the first line.
That @ is essential.

For Linux (or OSX) you would use:

Code: Select all

#!/bin/bash
echo 1
echo
echo
echo
echo
if [ "$5" = "1" ]; then
    echo 2
fi

Re: Update download speed + timeleft for downloading 'force'

Posted: February 1st, 2013, 1:20 pm
by tripkip
Howly cow. What a retard am I.

Thanks shypike, it works great now!

Re: Update download speed + timeleft for downloading 'force'

Posted: July 22nd, 2013, 1:46 am
by peavers
Cheers shypike, script works great