Re: Wait 40 sec / Trying to fetch NZB from ........
Posted: Mon Sep 28, 2015 8:04 pm
Sorry about this... once upon a time I believe this did work.
Can you edit the WeighVersion function in /usr/local/AppCentral/sabznbd/CONTROL/start-stop.sh?
then try restarting SABnzbd and it should now update to 0.8.0Beta1
Can you edit the WeighVersion function in /usr/local/AppCentral/sabznbd/CONTROL/start-stop.sh?
Code: Select all
WeighVersion() { #translates the version into a numerical "weight" that can be compared to see which version is newer
local Version=$1
local Vweight=0
Location=$(expr index $Version 'RBA')
let Locationm1=$Location-1
#Test for unstable release
if [ $Location -gt 1 ]; then
#Unstable release found, weigh accordingly
Nversion=${Version:0:$Locationm1} #strip the unstable part off, keep the numerical version
Vmajor=$(/bin/echo $Nversion | /usr/bin/cut -d. -f1)
Vminor=$(/bin/echo $Nversion | /usr/bin/cut -d. -f2)
Vfix=$(/bin/echo $Nversion | /usr/bin/cut -d. -f3)
let Vweight=$Vmajor*1000000+$Vminor*10000+$Vfix*100
case ${Version:$Locationm1:1} in
R) #Release candidate
let Minus=$Location+1
let Vweight=$Vweight+80+${Version:$Minus}
;;
B) #Beta
let Minus=$Location+3
let Vweight=$Vweight+40+${Version:$Minus}
;;
A) #Alpha
let Minus=$Location+4
let Vweight=$Vweight+${Version:$Minus}
;;
esac
else
#must be stable release, so
Vmajor=$(/bin/echo $Version | /usr/bin/cut -d. -f1)
Vminor=$(/bin/echo $Version | /usr/bin/cut -d. -f2)
Vfix=$(/bin/echo $Version | /usr/bin/cut -d. -f3)
let Vweight=99+$Vmajor*1000000+$Vminor*10000+$Vfix*100
fi
echo -n "$Vweight"
}