Sinology Video Station not indexing files created by Filebot Node

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
litris
Posts: 44
Joined: 01 Jun 2015, 12:02

Sinology Video Station not indexing files created by Filebot Node

Post by litris »

The downloaded files directly video Station indexes them at the moment.

But the files moved by Filebot Node in the Task Scheduler do not index them I have to do it manually.

Why is this?

It is very rare it will be for the way to move the files to the movie folder or why Filebot adds new permissions.

It is curious that if I put a movie in the folder video Station index it in seconds but if it moves filebot not indexed.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sinology Video Station not indexing files created by Filebot Node

Post by rednoah »

If you use SMB or File Manager (i.e. software made by Synology) then there's probably hooks in place that notify the index service of file changes. filebot runs locally on the device and just processes files, like on any generic Linux system, without any special logic specific to Synology.

You can use the synoindex to make Synology DSM rescan for new files:

Code: Select all

synoindex -R all
You'd usually combine this command with the --def exec option of the amc script: viewtopic.php?f=8&t=557
:idea: Please read the FAQ and How to Request Help.
litris
Posts: 44
Joined: 01 Jun 2015, 12:02

Re: Sinology Video Station not indexing files created by Filebot Node

Post by litris »

It is not an option since there are 5000 films and 15000 chapters of series would take forever.

Filebot does something when you move files that do not recognize Synology based on Linux.

It has nothing to do with SMB as it is something internal between the SMB hard disks is a network communication for Windows etc.
litris
Posts: 44
Joined: 01 Jun 2015, 12:02

Re: Sinology Video Station not indexing files created by Filebot Node

Post by litris »

It has to do with the shape that moves the files or the permissions it gives you.

Because if you put in the folder manually from any device any file automatically detects it.

No matter how you do from Windows from SSH and terminal from Web The same thing gives it detects.

But if you move it Filebot doesn't detect it.
litris
Posts: 44
Joined: 01 Jun 2015, 12:02

Re: Sinology Video Station not indexing files created by Filebot Node

Post by litris »

I used only the folder where Filebot files and it works perfectly "synoindex -R /volume1/video/Movies/" but it takes an eternity for the amount of movies it contains.

It would be necessary to add a line that only indexes the new ones each time the file is new but in the link that you send me, it does not appear.

There had to be some way that filebot would kill files normally without rare permissions.

Or add a line that only indexes the file moved after moving it.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sinology Video Station not indexing files created by Filebot Node

Post by rednoah »

You can do some research on the synoindex command and then use it to only refresh / rescan specific files or folders.

e.g.

Code: Select all

--def exec='synoindex -R {quote folder}'
:idea: Please read the FAQ and How to Request Help.
litris
Posts: 44
Joined: 01 Jun 2015, 12:02

Re: Sinology Video Station not indexing files created by Filebot Node

Post by litris »

But "-R" will index everything again as the line I use above does the same as "synoindex -R /volume1/video/Movies/"

Would not it be -A?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sinology Video Station not indexing files created by Filebot Node

Post by rednoah »

synoindex -R all does indeed reindex everything, but synoindex -R /path/to/folder will only reindex /path/to/folder. If you're using the default {plex} naming schemes then that means each movie will have each own folder, and each season will have it's own folder, so you'll only end up rescanning the movie folder / season folder for this particular movie / episode, and not everything.

You're welcome to experiment with calling synoindex -A for each file:

Code: Select all

--def exec='synoindex -A {quote f}'
I'm not sure if it works well. There are reports that it works for adding, but somehow causes issues when these files are later moved / deleted without also being explicitly deleted from the synoindex database.
:idea: Please read the FAQ and How to Request Help.
litris
Posts: 44
Joined: 01 Jun 2015, 12:02

Re: Sinology Video Station not indexing files created by Filebot Node

Post by litris »

Ok, I'll run tests.

Thank you.
Phobos
Posts: 9
Joined: 20 Jul 2018, 03:06

Re: Sinology Video Station not indexing files created by Filebot Node

Post by Phobos »

I also have this exact problem.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sinology Video Station not indexing files created by Filebot Node

Post by rednoah »

If it's the same problem, then you can apply the same solution.

Please read the first reply in this thread.
:idea: Please read the FAQ and How to Request Help.
Phobos
Posts: 9
Joined: 20 Jul 2018, 03:06

Re: Sinology Video Station not indexing files created by Filebot Node

Post by Phobos »

Thanks, but that response isn't that helpful to me.
You can use the synoindex to make Synology DSM rescan for new files:
CODE: SELECT ALL

synoindex -R all
You'd usually combine this command with the --def exec option of the amc script: viewtopic.php?f=8&t=557
Means pretty much nothing to me since I'm not a coder and rarely use cmd line. The whole point of FileBot Node (I thought) was to make it easy, by implementing a GUI. The requirement to use the cmd line to make thing work as required, at least to some extent, defeats the point of the GUI.

Also, if I understand your point, you need to run a line of code every time you've converted files; but this process is not part of the schedule, i.e., the automation. So, if one can just move the folder into another directory and then move it back in to have Video Station see it, what't the point of doing that business with the cmd line? I think the problem would be that you have to think about this and do it every time you convert files--instead of the awesome task schedule looking after it.

Anyway, I appreciate the support. Thank you.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sinology Video Station not indexing files created by Filebot Node

Post by rednoah »

The amc script will call synoindex for you, if you configure it that way. Here's how it works.


1.
Open FileBot Node WebUI.

2.
Expand Automated Media Center section.

3.
Find Run Program option and paste the following command:

Code: Select all

synoindex -R all


This thread also discusses possible rescan optimizations such as this:

Code: Select all

synoindex -R {quote folder}
:idea: Please read the FAQ and How to Request Help.
Phobos
Posts: 9
Joined: 20 Jul 2018, 03:06

Re: Sinology Video Station not indexing files created by Filebot Node

Post by Phobos »

That was helpful and it worked. Thank you.

I tried adding --def at the beginning. I have no idea what that does but you said that that was what was usually done. Unfortunately

Code: Select all

--def exec='synoindex -R all'
returns an error. No worries. synoindex -R all works well. As litris stated, it takes a while. I know you could specify the folder but I don't know if it would do all the subfolders too; so it's fine. I don't mind waiting a bit.

Thanks again for the assistance. Great software.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sinology Video Station not indexing files created by Filebot Node

Post by rednoah »

FileBot Node is a simple front-end for creating command-line calls. The very first line in the output window will show you the command that is executed, so you can easily check how FileBot Node options map to command-line options.
:idea: Please read the FAQ and How to Request Help.
Phobos
Posts: 9
Joined: 20 Jul 2018, 03:06

Re: Sinology Video Station not indexing files created by Filebot Node

Post by Phobos »

Awesome. Much appreciated; and sorry. I hope that didn't come out as sarcastic. FileBot node is turning out to be very useful and I meant that. Can you recommend a link that specifies all the parameters for synoindex? Googling hasn't helped me thus far. Thank you again for your time.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sinology Video Station not indexing files created by Filebot Node

Post by rednoah »

AFAIK, there is no online documentation, but the built-in help does list a few options:

Code: Select all

synoindex -help

Code: Select all

Usage:
synoindex [OPTIONS]

Index Options:
    -h, --help
        this help text
    -A dirpath
        add a dir
    -a filepath
        add a file
    -D dirpath
        delete a dir
    -d filepath
        delete a file
    -N new_dirpath old_dirpath
        rename a dir
    -n new_filepath old_filepath
        rename a file
    -R [all|media|photo|music|video|thumb|dirpath]
        all:     reindex all dirpath that registered in each package
        media:   reindex dirpath that registered in MediaIndex package
        photo:   reindex photo dirpath
        music:   reindex music dirpath
        video:   reindex video dirpath
        thumb:   check converted video of each video file
        dirpath: reindex this specific dirpath
    -R user:{user_name}
        reindex personal photo dirpath
    -R share:{share_name}
        reindex share dirpath
    -R [type_music|type_video|type_photo]
        reindex dirpath that registered with specific type in MediaIndex

Package Index Options:
    -P [MediaIndex|{package_name}] {index_option}
        index operation only apply on this package
    -p [MediaIndex|{package_name}] {index_option}
        index operation apply all packages except for this package

File Index Options:
    -f {index_option}
        index operation apply on file index
    -U photo
        update photo images
:idea: Please read the FAQ and How to Request Help.
pietpara
Posts: 24
Joined: 29 Jan 2014, 20:51

Re: Sinology Video Station not indexing files created by Filebot Node

Post by pietpara »

I use this command and it works OK and fast:

Code: Select all

/usr/syno/bin/synoindex -a "{file}"
Place it in the Run Command field of the Automated Media Center section of Filebot Node UI.

Cheers
PietPara
Post Reply