Make the RSS downloader check more often than every 12 hours
-
- New here
- Posts: 2
- Joined: Mon Aug 01, 2011 10:33 pm
Make the RSS downloader check more often than every 12 hours
I love the RSS torrent downloader but how do I make it check more often than every 12 hours?
-
- New here
- Posts: 2
- Joined: Wed Nov 30, 2011 12:49 am
Re: Make the RSS downloader check more often than every 12 h
Please help ! I wanna do the same .
-
- First post
- Posts: 1
- Joined: Wed Mar 27, 2013 10:23 am
Re: Make the RSS downloader check more often than every 12 h
Im bumping this thread since I cant find a solution to it either.
I like the build in download station a lot and have it currently set up with an RSS feed to download my favo series and then give me a notification on my phone when its downloaded and rdy to watch.
The only thing currently bothering me is that the lowest option you can pick for the RSS feed to update and check for new stuff is 12 hours... which is pretty long. If anybody knows a way to maybe change this option to like 1 or 2 hours though SSH or something directly on the NAS? (im newbie) that would be great
I like the build in download station a lot and have it currently set up with an RSS feed to download my favo series and then give me a notification on my phone when its downloaded and rdy to watch.
The only thing currently bothering me is that the lowest option you can pick for the RSS feed to update and check for new stuff is 12 hours... which is pretty long. If anybody knows a way to maybe change this option to like 1 or 2 hours though SSH or something directly on the NAS? (im newbie) that would be great
-
- New here
- Posts: 2
- Joined: Mon Apr 08, 2013 12:06 am
Re: Make the RSS downloader check more often than every 12 h
yea, i have this problem too.
- schumaku
- Guru
- Posts: 43578
- Joined: Mon Jan 21, 2008 4:41 pm
- Location: Kloten (Zurich), Switzerland -- Skype: schumaku
- Contact:
Re: Make the RSS downloader check more often than every 12 h
Thee is no simple solution available. Technical (and formally correct) behaviour of a RSS reader/downloader would be to accept the refresh defined in the RSS feed.
-
- New here
- Posts: 5
- Joined: Fri Mar 29, 2013 4:57 pm
Re: Make the RSS downloader check more often than every 12 h
I've been working on a way to do this and am almost certain it is possible. Will post back as soon as I find a solution .
EDIT: Well that didn't take nearly as long to work out as I thought it would.
Steps:
Note that this was done on a TS-212 with the latest firmware (20130301), the steps required may differ between models.
1. Ensure that the PDO extensions have been properly enabled for the the CLI version of PHP.
In your php.ini (/opt/etc/php.ini), add the following lines if they aren't there:
2. Install the php-curl package.
3. Modify the RSS update script to have a custom update time.
Note that I chose to hardcode the allowed update time to make it easy to update, there are many other ways to do this.
Backup the file listed below before editing if you plan to make any changes.
Look for the following line in /mnt/ext/home/httpd/cgi-bin/Qdownload/rss_job_downloader.php: (line 43 for me)
Replace $job_row['rss_job_interval'] with the value (in hours) that you would like to allow the RSS feeds to update. For example, if you want it to update every 30 minutes:
4. Run the update script to see the results.
The way the update script works is that if the last check time is less than the interval time, no update will be performed. By changing this interval value, the script can be successfully run after this new interval. I haven't been able to find out how often the script is actually called by Qdownload yet... so to be safe you may want to add this script to your crontab to ensure that it is updated after the proper interval (just be sure to set the crontab interval slightly more than the update interval that you have set in the script).
Qdownload could either be calling this script sporadically or very often, so I wouldn't recommend removing this interval from the script or setting it to 0 either.
EDIT: Well that didn't take nearly as long to work out as I thought it would.
Steps:
Note that this was done on a TS-212 with the latest firmware (20130301), the steps required may differ between models.
1. Ensure that the PDO extensions have been properly enabled for the the CLI version of PHP.
In your php.ini (/opt/etc/php.ini), add the following lines if they aren't there:
Code: Select all
extension = pdo.so
extension = pdo_sqlite.so
extension = sqlite.so
extension = pdo_mysql.so
Code: Select all
ipkg install php-curl
Note that I chose to hardcode the allowed update time to make it easy to update, there are many other ways to do this.
Backup the file listed below before editing if you plan to make any changes.
Look for the following line in /mnt/ext/home/httpd/cgi-bin/Qdownload/rss_job_downloader.php: (line 43 for me)
Code: Select all
if (time() - $job_row['rss_job_last_check'] < ($job_row['rss_job_interval'] * 60 * 60)) {
Code: Select all
if (time() - $job_row['rss_job_last_check'] < ((30/60) * 60 * 60)) {
Code: Select all
php rss_job_downloader.php
Qdownload could either be calling this script sporadically or very often, so I wouldn't recommend removing this interval from the script or setting it to 0 either.
-
- New here
- Posts: 3
- Joined: Tue May 21, 2013 10:38 am
Re: Make the RSS downloader check more often than every 12 h
Thanks for that!o.barrett wrote:I've been working on a way to do this and am almost certain it is possible. Will post back as soon as I find a solution .
EDIT: Well that didn't take nearly as long to work out as I thought it would.
Steps:
Note that this was done on a TS-212 with the latest firmware (20130301), the steps required may differ between models.
1. Ensure that the PDO extensions have been properly enabled for the the CLI version of PHP.
In your php.ini (/opt/etc/php.ini), add the following lines if they aren't there:2. Install the php-curl package.Code: Select all
extension = pdo.so extension = pdo_sqlite.so extension = sqlite.so extension = pdo_mysql.so
3. Modify the RSS update script to have a custom update time.Code: Select all
ipkg install php-curl
Note that I chose to hardcode the allowed update time to make it easy to update, there are many other ways to do this.
Backup the file listed below before editing if you plan to make any changes.
Look for the following line in /mnt/ext/home/httpd/cgi-bin/Qdownload/rss_job_downloader.php: (line 43 for me)Replace $job_row['rss_job_interval'] with the value (in hours) that you would like to allow the RSS feeds to update. For example, if you want it to update every 30 minutes:Code: Select all
if (time() - $job_row['rss_job_last_check'] < ($job_row['rss_job_interval'] * 60 * 60)) {
4. Run the update script to see the results.Code: Select all
if (time() - $job_row['rss_job_last_check'] < ((30/60) * 60 * 60)) {
The way the update script works is that if the last check time is less than the interval time, no update will be performed. By changing this interval value, the script can be successfully run after this new interval. I haven't been able to find out how often the script is actually called by Qdownload yet... so to be safe you may want to add this script to your crontab to ensure that it is updated after the proper interval (just be sure to set the crontab interval slightly more than the update interval that you have set in the script).Code: Select all
php rss_job_downloader.php
Qdownload could either be calling this script sporadically or very often, so I wouldn't recommend removing this interval from the script or setting it to 0 either.
Seems like the path has changed in the new beta firmware 4.01 though:
/share/MD0_DATA/.qpkg/DSv3/home/httpd/cgi-bin/Qdownload/rss_job_downloader.php
I just removed one of the "* 60" in line 43 (the same line as described above). Like this:
Code: Select all
if (time() - $job_row['rss_job_last_check'] < ($job_row['rss_job_interval'] * 60)) {
So the minimum update interval should now be 12 minutes (12 hours setting) and maximum 12 hours (1 month setting)
-
- First post
- Posts: 1
- Joined: Fri Oct 30, 2015 3:06 am
Re: Make the RSS downloader check more often than every 12 hours
anyone know how you can do this on the new firmware?
- pwilson
- Guru
- Posts: 22533
- Joined: Fri Mar 06, 2009 11:20 am
- Location: Victoria, BC, Canada (UTC-08:00)
Re: Make the RSS downloader check more often than every 12 hours
Under Download Station v4.2.1:NioTeX wrote:anyone know how you can do this on the new firmware?
Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs
Please review: When you're asking a question, please include the following.
- Gryzor
- Easy as a breeze
- Posts: 293
- Joined: Sat Oct 24, 2015 3:21 pm
- Contact:
Re: Make the RSS downloader check more often than every 12 hours
Yeah, but this only goes down to 12 hours, not more often as the subject of this thread is looking an answer to...pwilson wrote: Under Download Station v4.2.1:
I'd like to change that too. Download Station is good enough for me to not mess with Transmission, but the 12-hour long RSS update intervals are silly. I'd like to get it down to one hour or half hours...
.:.
QNAP TS-251-4G / 4.3.2.0026
QNAP TS-251-4G / 4.3.2.0026
-
- First post
- Posts: 1
- Joined: Sun Jan 10, 2016 7:34 am
Re: Make the RSS downloader check more often than every 12 hours
Hi,
on 4.2 i have found this file /etc/config/ds.conf
In this you will find
If you change the check_update_time to 1, I believe you can bring it down to 1 hour. (Download station restart is probably required activate the change)
on 4.2 i have found this file /etc/config/ds.conf
In this you will find
Code: Select all
[rss]
enable=true
check_update_time=12
- Gryzor
- Easy as a breeze
- Posts: 293
- Joined: Sat Oct 24, 2015 3:21 pm
- Contact:
Re: Make the RSS downloader check more often than every 12 hours
Well, better than nothing I guess
.:.
QNAP TS-251-4G / 4.3.2.0026
QNAP TS-251-4G / 4.3.2.0026
- Gryzor
- Easy as a breeze
- Posts: 293
- Joined: Sat Oct 24, 2015 3:21 pm
- Contact:
Re: Make the RSS downloader check more often than every 12 hours
Actually because of that limitation I moved over to QSonarr. Much more complicated - took it to another level, but at least it works...
.:.
QNAP TS-251-4G / 4.3.2.0026
QNAP TS-251-4G / 4.3.2.0026
-
- New here
- Posts: 9
- Joined: Tue Feb 05, 2013 7:38 am
Re: Make the RSS downloader check more often than every 12 hours
dzintarsb wrote:This doesnt work for me. After some period of time check_update_time is set back 12. Any other ideas?etakpte wrote:Hi,
on 4.2 i have found this file /etc/config/ds.conf
In this you will find
If you change the check_update_time to 1, I believe you can bring it down to 1 hour. (Download station restart is probably required activate the change)Code: Select all
[rss] enable=true check_update_time=12
This 12h limitation is so stupid... Why there is no shorter update interval option?
after restarting the Download station, it sets back to 12. Any idea why?