Page 1 of 1

refresh file services and media library

Posted: 09 Aug 2021, 13:34
by marciton
I'm using scripts with filbot command on it to properly named my files since a while now but I'm noticing this recommendation :

Code: Select all

* Consider using --apply refresh to refresh file services and media library
I'm not sure for what it is.

this is an example of the commands I run:

Code: Select all

runNS="/usr/local/bin/filebot -rename -non-strict --format @/var/services/homes/bob/format.txt --lang fr --db TheTVDB --q @title.txt --filter "s==01" *.mkv"

Re: refresh file services and media library

Posted: 09 Aug 2021, 14:21
by rednoah
--apply refresh will help you call /usr/syno/bin/synoindex -R or /usr/local/medialibrary/bin/mymediadbcmd buildfolder on newly added folders depending on the platform. This will help ensure that new files show up in file services and media library which might otherwise sometimes display out-of-sync file listings.

Re: refresh file services and media library

Posted: 09 Aug 2021, 17:30
by marciton
ok, I understand,and as I'm running this directly on a Synology folder ... it's not useful on my case. Thanks for the clarification.

Re: refresh file services and media library

Posted: 10 Aug 2021, 02:42
by rednoah
marciton wrote: 09 Aug 2021, 17:30 ok, I understand,and as I'm running this directly on a Synology folder ... it's not useful on my case. Thanks for the clarification.
On Synology NAS, if you process files locally, and then try to access those files remotely via SMB, then you may sometimes not see the new files due to caching and indexing not being up-to-date. If you ever run into some kind of "filebot moved files but they're not there" kind of problem, then --apply refresh will help with that.

Re: refresh file services and media library

Posted: 10 Aug 2021, 12:41
by marciton
Thanks, that's clear.
I'm not sure that displaying the message all the time I running the command is good, but it's not bothering me in my logs.

Re: refresh file services and media library

Posted: 10 Aug 2021, 13:16
by rednoah
It's hugely important that the first impression that new users have isn't "filebot deleted all my files" so proactively detecting common or severe user errors out-of-the-box takes precedence. That being said, you can alway use --log ALL | FINEST | FINE | INFO to adjust the log level to your preference.

Code: Select all

--log INFO

Re: refresh file services and media library

Posted: 21 Mar 2023, 05:04
by rednoah