Skip to content

Commit

Permalink
Merge pull request #79 from hlarsen/hlarsen/fix-unpause
Browse files Browse the repository at this point in the history
nzbget: fix unpausing queue
  • Loading branch information
clutterskull authored Jan 11, 2023
2 parents 11e0c1a + e188bb7 commit 22053eb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/background/nzb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,9 @@ class NZBGetHost extends NZBHost {
.then((res) => {
if (!res.success) return null;

let status:string = res.result['ServerStandBy']
? 'idle'
: res.result['DownloadPaused']
? 'paused'
: 'downloading';
let serverStandBy:boolean = res.result['ServerStandBy']
let downloadPaused:boolean = res.result['DownloadPaused']
let status:string = (serverStandBy && downloadPaused) ? 'paused' : (serverStandBy) ? 'idle' : 'downloading'

let speedBytes:number = res.result['DownloadRate']; // in Bytes / Second
let maxSpeedBytes:number = parseInt(res.result['DownloadLimit']);
Expand Down

0 comments on commit 22053eb

Please sign in to comment.