Download Station MODS: March 2013 Update

Questions regarding modifying the torrent engine or download station may go here.
Forum rules
Please note the disclaimer before modifying your Synology Product.

Is this helpful?

Yes very helpful
1
50%
You wasted moments I could have used drinking Milo
0
No votes
PLEASE CREATE an SPK to do all the tricky parts
0
No votes
Can you please write more details explaining exactly what each step is actually doing to my DS?
1
50%
 
Total votes : 2

Re: Download Station MODS

Postby fjappe » Sun Mar 11, 2012 4:34 pm

Kerryandjane - this is just excellent! :D Thank you! Much appreciated :)
fjappe
Rookie
Rookie
 
Posts: 30
Joined: Wed Jun 17, 2009 9:17 pm

Re: Download Station MODS

Postby ivorbiggun » Tue Mar 13, 2012 4:10 am

Been waiting for this for 4.0. Just tested it and works like a charm!

Thanks mate.
ivorbiggun
I'm New!
I'm New!
 
Posts: 6
Joined: Thu Feb 16, 2012 2:34 am

Re: Download Station MODS

Postby mysterio21 » Wed Mar 14, 2012 5:03 am

great stuff making it compatible with DSM4

is there any chance you could post an example for this to work with NZB downloads?
mysterio21
I'm New!
I'm New!
 
Posts: 2
Joined: Wed Mar 14, 2012 4:39 am

Re: Download Station MODS

Postby kvspublic » Mon Mar 19, 2012 10:42 pm

kerryandjane wrote:
elikxir wrote:i'm logged in with root name:

DiskStation> /usr/syno/etc/packages/DownloadStation/download/settings.json
-ash: /usr/syno/etc/packages/DownloadStation/download/settings.json: Permission de
nied

i get this message "Permission denied" for any comand i make

whats the problem ?


What are you trying to do? If you're trying to edit the settings.json file you need to use a text editor.... like vi or nano.

Please google vi commands. Pretty please remove your comment. It's in the wrong section.


But after starting DS package settings.json will return to its default state (revert all my changes). How can i edit it?
kvspublic
I'm New!
I'm New!
 
Posts: 1
Joined: Sun Mar 18, 2012 12:07 am

Re: Download Station MODS

Postby bif-bigfoot » Sat Mar 24, 2012 6:36 pm

I Just downloaded the DSMod-2.0.spk and installed it..
But no effect.. no extraction of RAR's =(

How do i know it is installed corectly ?
It says Running in the packages center...
Is there any gui ? or do i need to edit any config file ???

I'm running DSM-4.0-2198 on a DS1511+
And my downloads is placed in /volume2/Download

If someone could help me to get this working it would save a lot of time.
bif-bigfoot
I'm New!
I'm New!
 
Posts: 7
Joined: Sun Apr 04, 2010 4:37 pm

Re: Download Station MODS

Postby kerryandjane » Sun Mar 25, 2012 3:15 am

Hey dude, sorry it's not working for ya.
Can you try a few things please?
    1. Test to see it works
    2. Test to see it was installed properly
Listed in order of ease...

The Test
Just to test to see if something is happening on torrent completion can you paste the following (i'll explain what the code is doing after it... and why we're trying it)
Code: Select all
cd /usr/syno/etc/packages/DownloadStation/download/scripts
mv DSScript.sh old.DSScript.sh
cat <<EOF> DSScript.sh
#!/bin/bash
mkdir /volume2/Download/testdir
EOF
chmod 777 DSScript.sh

This creates a backup of the old script and creates a new one to do a simple task with a result you can see (/volume2/Download/ kind of needs to exist)
    1. Makes a backup of the script (just incase you've made changes to the original)
    2. Creates a new script (a simple one to test that 'something' is being run after a torrent is completed.)
    3. Makes it executable
Now to test it download a small torrent file that you know will download quickly. The result should be:
After the torrent has completely downloaded you should have a folder created in /volume2/download called "testdir" if this works... SAWEEET problem isn't too bad.
Then i'm guessing it's the volume2 issue (I don't have a volume2 to test on):
paste the following:
Code: Select all
cd /usr/syno/etc/packages/DownloadStation/download/scripts
mv -f old.DSScript.sh DSScript.sh
sed -i 's/volume1/volume2/g' /usr/syno/etc/packages/DownloadStation/download/scripts/DSScript.sh

This will get your backup file back and replace all 'volume1' with 'volume2'.
Download another torrent and see if it's running perfect.

Test the install
Please paste the following into console for me.
Code: Select all
grep -a 'done' /usr/syno/etc/packages/DownloadStation/download/settings.json
grep -a 'synorsstool' /etc/crontab

This will check to see if 2 important files were written properly. You should get 3 lines of output for these 2 lines of code (2 for the first line, 1 for the second).

If you do get the 3 lines of output and they look like this:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/usr/syno/etc/packages/DownloadStation/download/scripts/DSScript.sh"
/volume1/@appstore/DownloadStation/bin/synorsstool --updateall

If you get no output - something went wrong... try a fresh reinstall. If pain persists please see your doctor (me kind of) and we'll have to get creative and possibly have to build from the ground up.

A while ago a guy posted he was having troubles with his DS1511 something to do with the RSS update can you confirm this works RSS feeds are being updated quicker than default?

FYI: There isn't a GUI for this package, there is one main script to edit which can be found by opening /root/DSScript.sh.

Let me know.
Last edited by kerryandjane on Sun Mar 25, 2012 11:27 am, edited 2 times in total.
DS209+ 2 x 2TB HD's (2xWD20EARS-00S8B1)
running latest firmware DSM 4.2
SparkLAN CAS-371W IP Cam
iPhone 3GS with SynoDS
and slim PS3
Get tech or die trying
User avatar
kerryandjane
Versed
Versed
 
Posts: 218
Joined: Tue Feb 03, 2009 3:39 pm

Re: Download Station MODS

Postby bif-bigfoot » Sun Mar 25, 2012 8:23 am

First test..

Typed in this witn no errors..
mv DSScript.sh old.DSScript.sh
cat <<EOF> DSScript.sh
#!/bin/bash
mkdir /volume2/Download/testdir
EOF
chmod 777 DSScript.sh

Downloaded a torrent (music) No Testdir created =(

----------------------------------------------------------------------------------------------------------
Trying
mv -rf old.DSScript.sh DSScript.sh
sed -i 's/volume1/volume2/g' /root/DSScript.sh

Gets this
BOH-DS> mv -rf old.DSScript.sh DSScript.sh
mv: invalid option -- r
BusyBox v1.16.1 (2012-03-07 15:44:58 CST) multi-call binary.

Usage: mv [OPTIONS] SOURCE DEST
or: mv [OPTIONS] SOURCE... DIRECTORY

Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY

Options:
-f Don't prompt before overwriting
-i Interactive, prompt before overwrite

BOH-DS> sed -i 's/volume1/volume2/g' /root/DSScript.sh

I tried removing the r parameter, as it seems to complain on thisone.. No errors..
mv -f old.DSScript.sh DSScript.sh
sed -i 's/volume1/volume2/g' /root/DSScript.sh

But the file /usr/syno/etc/packages/DownloadStation/download/scripts/DSScript.sh and /root/DSScript.sh is not the same nomore…

The file in /usr/... is like the default file.

The file in /root is still , i restarted both Downloadstation and Downloadstation Mod
#!/bin/bash
mkdir /volume2/Download/testdir

So i guess the "sed" command doesent do anything..

I Tried to copy the file fron /usr/... to /root/

And runed this:
mv -f old.DSScript.sh DSScript.sh
sed -i 's/volume1/volume2/g' /root/DSScript.sh

No error

Downloaded a torrent (music) No Testdir created =(
it's supposed to create a folder with today's date ?? the torrent was just mp3 fils so no rar files.. but i should dosomthing right ??

----------------------------------------------------------------------------------------------------------

Typed in this:
grep -a 'done' /root/download/settings.json
grep -a 'synorsstool' /etc/crontab

Got this:
BOH-DS> grep -a 'done' /root/download/settings.json
grep: /root/download/settings.json: No such file or directory
BOH-DS> grep -a 'synorsstool' /etc/crontab
*/5 * * * * * /usr/syno/bin/synorsstool --updateall

I'm downloading from http://www.mediafire.com/?7h3ax7are1rbuu6

Reinstalled it and runed
grep -a 'done' /root/download/settings.json
grep -a 'synorsstool' /etc/crontab

Same message
BOH-DS> grep -a 'done' /root/download/settings.json
grep: /root/download/settings.json: No such file or directory
BOH-DS> grep -a 'synorsstool' /etc/crontab
*/5 * * * * * /usr/syno/bin/synorsstool --updateall

Tried to find settings.json ... Found one
BOH-DS> find -name 'settings.json'
/usr/syno/etc/packages/DownloadStation/download/settings.json

Runed the grep command in that folder (/usr/syno/etc/packages/DownloadStation/download/) and got this;

BOH-DS> grep -a 'done' settings.json
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/usr/syno/etc/packages/DownloadStation/download/scripts/DSScript.sh",


Any suggestions ??
DS 1511+ , Latest DSM

Disks in SHR array:
2 x ST31500341AS (Seagate 1,5 TB) , 2 x WD30EZRX (Western digital 3 TB)
Standalone disk
1 x WD20EARS (Western digital 2 TB) for downloads/garbage/temt etc.
bif-bigfoot
I'm New!
I'm New!
 
Posts: 7
Joined: Sun Apr 04, 2010 4:37 pm

Re: Download Station MODS

Postby kerryandjane » Sun Mar 25, 2012 11:15 am

Please re-read and try from the top again....

bif-bigfoot wrote:it's supposed to create a folder with today's date ??

Nope... if you want that feature you need to edit the script yourself. I've made it easy for you though.
Based on what i've read in your last post I recommend removing the DSScript.sh in your root folder and recreating the link to the correct file. Uninstall the package and reinstall.
DS209+ 2 x 2TB HD's (2xWD20EARS-00S8B1)
running latest firmware DSM 4.2
SparkLAN CAS-371W IP Cam
iPhone 3GS with SynoDS
and slim PS3
Get tech or die trying
User avatar
kerryandjane
Versed
Versed
 
Posts: 218
Joined: Tue Feb 03, 2009 3:39 pm

Re: Download Station MODS

Postby bif-bigfoot » Thu Mar 29, 2012 7:42 pm

I have re-read and tried again

I Pasted the following in a SSH windows


BOH-DS> cd /usr/syno/etc/packages/DownloadStation/download/scripts
BOH-DS> mv DSScript.sh old.DSScript.sh
BOH-DS> cat <<EOF> DSScript.sh
> #!/bin/bash
> mkdir /volume2/Download/testdir
> EOF
BOH-DS> chmod 777 DSScript.sh

Now to test it download a small torrent file that you know will download quickly. The result should be:
After the torrent has completely downloaded you should have a folder created in /volume2/download called "testdir" if this works... SAWEEET problem isn't too bad.


No errors , downloaded a small torrent, but No testdir created when

*****************************************************************************

I Pasted the following in the same SSH windows


BOH-DS> cd /usr/syno/etc/packages/DownloadStation/download/scripts
BOH-DS> mv -f old.DSScript.sh DSScript.sh
BOH-DS> sed -i 's/volume1/volume2/g' /usr/syno/etc/packages/DownloadStation/down
load/scripts/DSScript.sh


Nothing happens when downloading a torrent

*****************************************************************************

I Pasted the following in the same SSH windows


BOH-DS> grep -a 'done' /usr/syno/etc/packages/DownloadStation/download/settings.
json
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/usr/syno/etc/packages/DownloadStation/download/scripts/DSScript.sh",
BOH-DS> grep -a 'synorsstool' /etc/crontab
*/5 * * * * * /usr/syno/bin/synorsstool --updateall


*****************************************************************************

I didn't get the "/volume1/@appstore/DownloadStation/bin/synorsstool --updateall" as you typed---

The folder etc doesn't exist… but /volume2/@appstore/DownloadStation/bin/synorsstool does..

Where shall i change this
DS 1511+ , Latest DSM

Disks in SHR array:
2 x ST31500341AS (Seagate 1,5 TB) , 2 x WD30EZRX (Western digital 3 TB)
Standalone disk
1 x WD20EARS (Western digital 2 TB) for downloads/garbage/temt etc.
bif-bigfoot
I'm New!
I'm New!
 
Posts: 7
Joined: Sun Apr 04, 2010 4:37 pm

Re: Download Station MODS

Postby kerryandjane » Mon Apr 02, 2012 11:20 pm

Hey bud,
Sorry it took so long to reply this is my weekend (This week anyway).

Hmm, It appears the +1511 can't do this.
Short of having a 'tinker' with the device myself I'm really not sure what to try.... It should just work dang it!

PM me if you do want me to have a try. I honestly think I offered all the suggestions I could have in my last message though.
sorry mate.
DS209+ 2 x 2TB HD's (2xWD20EARS-00S8B1)
running latest firmware DSM 4.2
SparkLAN CAS-371W IP Cam
iPhone 3GS with SynoDS
and slim PS3
Get tech or die trying
User avatar
kerryandjane
Versed
Versed
 
Posts: 218
Joined: Tue Feb 03, 2009 3:39 pm

Re: Download Station MODS

Postby the.MikeD » Wed Apr 04, 2012 11:49 pm

Just for clarity, is this for NZB as well, or just BT? I ask because you made a post in a thread talking about NZBs, but I see no reference to NZBs in this thread.
the.MikeD
Trainee
Trainee
 
Posts: 12
Joined: Thu May 12, 2011 5:25 pm

Re: Download Station MODS

Postby bif-bigfoot » Thu Apr 05, 2012 7:27 am

Its BT downloads..
DS 1511+ , Latest DSM

Disks in SHR array:
2 x ST31500341AS (Seagate 1,5 TB) , 2 x WD30EZRX (Western digital 3 TB)
Standalone disk
1 x WD20EARS (Western digital 2 TB) for downloads/garbage/temt etc.
bif-bigfoot
I'm New!
I'm New!
 
Posts: 7
Joined: Sun Apr 04, 2010 4:37 pm

Re: Download Station MODS

Postby jaycee836 » Fri Apr 06, 2012 9:50 pm

Firstly, thank you for your work!

is there any chance this will ever work to unrar HTTP downloads as well as torrents?

I realise this poses a problem that multi-part .rar files will finish downloading at different times, just wondering if there would be any way to approach this?

Thanks again.
jaycee836
I'm New!
I'm New!
 
Posts: 2
Joined: Fri Apr 06, 2012 9:45 pm

Re: Download Station MODS

Postby synodex » Sun Apr 15, 2012 3:42 pm

excellent!!
having a problem though.. got the old one working on the old dsm version on a 211+.
Did a clean install of dsm 4 after format of harddisk. Installed downloadstation and this mod.

I can run the script with a ./ command with unrar of rar files ind download folder succesfull.

It does not run on its own when a torrent has finished..

Please advice..
synodex
I'm New!
I'm New!
 
Posts: 2
Joined: Sun Apr 15, 2012 3:33 pm

Re: Download Station MODS

Postby kerryandjane » Sun Apr 15, 2012 3:56 pm

synodex wrote:excellent!!
having a problem though.. got the old one working on the old dsm version on a 211+.
Did a clean install of dsm 4 after format of harddisk. Installed downloadstation and this mod.

I can run the script with a ./ command with unrar of rar files ind download folder succesfull.

It does not run on its own when a torrent has finished..

Please advice..


Can you try pasting the following? then downloading a small torrent to see if it works for ya.

Code: Select all
/bin/sh /usr/local/etc/rc.d/DSRestart.sh
DS209+ 2 x 2TB HD's (2xWD20EARS-00S8B1)
running latest firmware DSM 4.2
SparkLAN CAS-371W IP Cam
iPhone 3GS with SynoDS
and slim PS3
Get tech or die trying
User avatar
kerryandjane
Versed
Versed
 
Posts: 218
Joined: Tue Feb 03, 2009 3:39 pm

PreviousNext

Return to Torrent Engines/Download Station Mods

Who is online

Users browsing this forum: No registered users and 0 guests