Page 1 of 1

Synology Disk Station Auto Index

Posted: August 26th, 2013, 10:16 pm
by Phoenixfire
I've done a lot of searching and cannot find something that works:

AFter SAB downloads new shows and movies to my diskstation, the disk station does not auto-index because it did not come from a windows upload or other native feature.

I need a script that tells the diskstation to immediately index what was just downloaded and moved into my TV show or Movie directory without re-indexing the whole server, which takes over an hour.

Re: Synology Disk Station Auto Index

Posted: August 27th, 2013, 4:34 am
by mookydudz
Hi

I'm at work at the mo so can't try it; have a look here. I've been searching for this too, synoindex seems to be the key. I think I have seen it used by sickbeard(??), however I don't use sickbeard so unable to confirm.

mookydudz

Re: Synology Disk Station Auto Index

Posted: August 28th, 2013, 8:20 am
by cytec
yeah, sadly Synology doesnt index files from which are moved/added over terminal :(
you got two options for that:
1. Use sickbeard which has an notify option for Synologys Media Server
2. build your own script

building a own script should not be that difficult you just need the full path to the file or folder afther that you can simple call

synoindex with that parameters

examlpe lets say your newly downloaded file is in: /volume1/downloads/new_download/my_new_download.mp4
then you just call:

Code: Select all

synoindex -a /volume1/downloads/new_download/my_new_download.mp4
and the file gets added to the DiskStations Mediaserver index

if you have a folder with more than one file in it, you can run this:

Code: Select all

synoindex -A /volume1/downloads/new_download/
you can get a list of available options by just typing synoindex

Re: Synology Disk Station Auto Index

Posted: September 1st, 2013, 3:42 am
by LapinFou
You may have a look into my signature. I developed a script for Synology which correct special character issue but also optionally index the files.
:)