Suppress --apply refresh notice on Synology

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
arachne
Posts: 9
Joined: 24 Apr 2013, 08:59

Suppress --apply refresh notice on Synology

Post by arachne »

I use FileBot CLI on a Synology NAS and my Plex database is on a different computer (a gruntier one). When I run FileBot to handle my renaming, I get a message in the output that says

Code: Select all

Consider using --apply refresh to refresh file services and media library
I understand that this is a feature of the Synology version but I don't need it (and it took me ages to figure this out, because even though the docs refer to the refresh argument, I didn't understand why my system wouldn't do anything when I ran with this command - because my database is elsewhere). How can I suppress the message? I can ignore it but it's obviously designed to get my attention for a reason. :)

Interestingly, when I run filebot --apply refresh on my system, I just get back the standard list of possible arguments, without 'refresh' among them. Is this expected behaviour?

Code: Select all

m@x ~/incoming $ filebot --apply refresh
FileBot 4.9.2 (r8040) / OpenJDK Runtime Environment 13.0.2 (headless)

 --mode [interactive]                   : Enable CLI interactive mode
 -rename                                : Rename media files
 --db [TheTVDB, AniDB, TheMovieDB::TV]  : Database
 or [TheMovieDB] or [AcoustID, ID3] or     
 [xattr, exif, file]                       
 --order [Airdate, DVD, Absolute]       : Episode order
 --action [move, copy, keeplink,        : Rename action
 symlink, hardlink, clone, test]           
 --conflict [skip, override, auto,      : Conflict resolution
 index, fail]                              
 --filter {expression}                  : Filter expression
 --mapper {expression}                  : Mapper expression
 --format {expression}                  : Format expression
 -non-strict                            : Enable advanced matching and more
                                          aggressive guess work
 -get-subtitles                         : Fetch subtitles
 --lang [English, German, Spanish]      : Language
 -check                                 : Create / Check verification files
 --output directory                     : Output directory
 --encoding [UTF-8, Windows-1252]       : Output character encoding
 -list                                  : Print episode list
 -mediainfo                             : Print media info
 -revert                                : Revert files
 -extract                               : Extract archives
 -script [fn:name] or [script.groovy]   : Run Groovy script
 --def name=value                       : Define script variables
 -r                                     : Recursively expand folders
 -d                                     : Do not expand folders
 --q [name] or [id] or {expression}     : Query expression
 --file-filter {expression}             : Input file filter expression
 --apply [artwork, cover, nfo, date,    : Apply post-processing actions
 metadata, import, prune, clean]           
 -exec echo {f} [+]                     : Execute command
 -unixfs                                : Allow special characters in file paths
 -no-xattr                              : Disable extended attributes
 -no-probe                              : Disable media parser
 -no-index                              : Disable media index
 -no-history                            : Disable history
 --log [all, fine, info, warning, off]  : Log level
 --log-file log.txt                     : Log file
 -clear-cache                           : Clear cached and temporary data
 -clear-prefs                           : Clear application settings
 -clear-history                         : Clear rename history
 -version                               : Print version identifier
 -help                                  : Print this help message
 --license *.psm                        : Import license file
User avatar
rednoah
The Source
Posts: 23098
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Suppress --apply refresh notice on Synology

Post by rednoah »

--apply refresh is a post-processing option that can be added to filebot -rename and filebot -mediainfo commands:
viewtopic.php?t=11079


This is just a help message, that you can safely ignore if it doesn't apply to your particular use case:

Code: Select all

Consider using --apply refresh to refresh file services and media library
:idea: You see this message because of --log-level ALL, so you can change the --log-level make the log less verbose:

Code: Select all

--log-level INFO
:idea: Please read the FAQ and How to Request Help.
arachne
Posts: 9
Joined: 24 Apr 2013, 08:59

Re: Suppress --apply refresh notice on Synology

Post by arachne »

Awesome - thank you very much for the explanation and log change suggestion - will try that out.
arachne
Posts: 9
Joined: 24 Apr 2013, 08:59

Re: Suppress --apply refresh notice on Synology

Post by arachne »

I tried this out and I noted that

Code: Select all

--log-level INFO
gave me an argument parse error. I checked the CLI reference online and I was able to get this command suppressed with the following:

Code: Select all

--log info
Cheers!
Post Reply