Force Download All Feeds Now

Want something added? Ask for it here.
Post Reply
Cpuroast
Release Testers
Release Testers
Posts: 69
Joined: December 15th, 2010, 11:19 pm

Force Download All Feeds Now

Post by Cpuroast »

Hi,

I was wondering if it would be possible to add a button on "http://localhost:8080/config/rss"

Next to "Read All Feeds Now" that would trigger a "Force Download" for all feeds. It could be called something like "Force Download All Feeds Now".

I was also trying to see if I could simply script it by using the API, but couldn't find anything related to that function in "http://wiki.sabnzbd.org/api".

Thanks in advance.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Force Download All Feeds Now

Post by shypike »

I don't thing that would be very useful.
There is a function to read all feeds.
Forcing is only needed for newly defined feeds.
Cpuroast
Release Testers
Release Testers
Posts: 69
Joined: December 15th, 2010, 11:19 pm

Re: Force Download All Feeds Now

Post by Cpuroast »

shypike wrote:I don't thing that would be very useful.
There is a function to read all feeds.
Forcing is only needed for newly defined feeds.
Hi shypike,

"Read all feeds" is great, but it will not immediately trigger matched downloads. Sab will still wait till it's expected RSS refresh time for it to match and trigger the downloads.

There are times when I don't want to wait for that time to arrive, as in when I wake my laptop, I essentially don't want to wait for sab's RSS to get to it's scheduled time for it to start downloading matches that occurred while the laptop was asleep.

So I end up going through each of the RSS feeds I have in place, 1 by 1 and hitting Force Download on each of them, this tends to be repetitive. Nothing a simple for loop tied to a button or an API command wouldn't fix.

So no, force downloads is not just for new feeds, it's also for feeds which haven't been refreshed in hours or even days due to various circumstances, power outage or system sleep, internet outage, etc.

I understand, that sab should normally be always active, refreshing it's feeds every 15mins and matching/downloading like clockwork. But it's not always the case like I mentioned above.

I don't mind if there was simply an API command I could simply call for Force Download, which I could simply script via bash and curl.

Also, as a future feature, if this function is in place, sab could trigger it immediately when sab starts to catch up while it was shutdown.

And if it's possible, sab could also detect when it was asleep and trigger it immediately when it wakes up.

Thanks in advance!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Force Download All Feeds Now

Post by shypike »

I doubt if forcing is needed when the normal read pattern is disturbed.
If so, it's a bug.
When you manually read a feed (so not using the read-all-feeds button)
you will need to use "force".

I'll have a further look at this.
Post Reply