Synology Disk Station Auto Index

Come up with a useful post-processing script? Share it here!
Post Reply
Phoenixfire
Newbie
Newbie
Posts: 1
Joined: August 26th, 2013, 10:11 pm

Synology Disk Station Auto Index

Post 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.
mookydudz
Newbie
Newbie
Posts: 3
Joined: August 27th, 2013, 4:22 am

Re: Synology Disk Station Auto Index

Post 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
cytec
Newbie
Newbie
Posts: 17
Joined: April 9th, 2013, 9:55 am

Re: Synology Disk Station Auto Index

Post 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
User avatar
LapinFou
Full Member
Full Member
Posts: 100
Joined: April 23rd, 2012, 7:35 am
Location: France, Caen

Re: Synology Disk Station Auto Index

Post 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.
:)
Synology Model: DS-916+
Firmware Version: DSM 6.2.3-25426 Update 2
HDD Model: 3xSeagate ST4000VN008 4To - SHR + 1x256Go SSD - cache
Post Reply