mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-03-02 22:56:59 -05:00
Enhanced Sabnzbd - API timeout and always display stats #62
Labels
No labels
EnhancedApp
FoundationApp
FoundationApp
FoundationApp
bug
closed-issue-activity
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
no-issue-activity
question
research
research
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Heimdall#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MikeSterry on GitHub (Feb 14, 2018).
When configuring the API, I wouldn't receive a status result on test.
This was my fault, for not adding a trailing slash. That said, would it be possible to add 'read_timeout' to the request? I think the test just hung on my end, so it appeared to not be working.
Also, could we remove the if statement that prevents stats from displaying all the time? I would love to always see the stats.
From:
if($size > 0 || $rate > 0) { $output = ' <ul class="livestats"> <li><span class="title">Queue</span><strong>'.$queue_size.'</strong></li> <li><span class="title">Speed</span><strong>'.$current_speed.'/s</span></strong></li> </ul> '; }To:
$output = ' <ul class="livestats"> <li><span class="title">Queue</span><strong>'.$queue_size.'</strong></li> <li><span class="title">Speed</span><strong>'.$current_speed.'/s</span></strong></li> </ul> ';@MikeSterry commented on GitHub (Feb 14, 2018):
The code block removed spaces, so it's a bit tough to read. Hopefully, it still makes sense to everyone.
@KodeStar commented on GitHub (Feb 14, 2018):
The master version has a fix in place for the trailing slash thing. I'll look into adding a timeout.
I'll look at adding an option as to whether to display stats all the time or only when something is happening.
Thanks for the feedback.