Should be a basic question, but for some reason I can't get this figured out. How do I use the -exec option with FileBot and run it against a single file?
I can for example do the following to run a script against a single file
filebot -script fn:nfo "/location/file.mp4"
or the following to use ...
Search found 34 matches
- 15 Apr 2022, 20:02
- Forum: Help and Support
- Topic: Run -exec Option For A Single File
- Replies: 1
- Views: 1999
- 14 Apr 2022, 21:56
- Forum: Scripting and Automation
- Topic: AMC Script Invokes Exec Script with Type "Movie" for .srt Subtitle File
- Replies: 3
- Views: 2539
Re: AMC Script Invokes Exec Script with Type "Movie" for .srt Subtitle File
Shouldn't the type be "Subtitle" for the srt file? Or are all movie related files flagged as "Movie" type?
No, {type} is not the file type, but the match type, which is either Movie , or Episode , or MoviePart , or MultiEpisode , etc. You probably mean to pass along {ext} so that your script ...
- 14 Apr 2022, 17:18
- Forum: Episode / Movie Naming Scheme
- Topic: Are Multi File TV Episodes Supported by AMC Script?
- Replies: 1
- Views: 2238
Are Multi File TV Episodes Supported by AMC Script?
Are multi file TV episodes supported by the AMC script? I have the following two files that make up one episode
s01e01 - Episode.cd1.mkv
s01e01 - Episode.cd2.mkv
however, the AMC script seems to only process the second file and gives me the following message
...
[amc] Input: /location/s01e01 ...
s01e01 - Episode.cd1.mkv
s01e01 - Episode.cd2.mkv
however, the AMC script seems to only process the second file and gives me the following message
...
[amc] Input: /location/s01e01 ...
- 13 Apr 2022, 19:30
- Forum: Scripting and Automation
- Topic: Calling Exec Script Only Once Per Match
- Replies: 1
- Views: 2039
Calling Exec Script Only Once Per Match
Is there a argument that can be passed to the AMC script that would have it call the script specified via the exec argument only once for each match instead of calling it for each file? For example instead of calling it twice, once for the episode video file and once for the subtitles file, call it ...
- 13 Apr 2022, 18:09
- Forum: Scripting and Automation
- Topic: AMC Script Invokes Exec Script with Type "Movie" for .srt Subtitle File
- Replies: 3
- Views: 2539
AMC Script Invokes Exec Script with Type "Movie" for .srt Subtitle File
I have the following movie files that are being processed by FileBot's AMC script
Star.Trek.2009.720p.BrRip.x264.mp4
Star.Trek.2009.720p.BrRip.x264.srt
and I use the following exec parameter with the AMC script
--def exec="/config/postprocess.sh -d {quote folder} -f {quote f} -t {quote type ...
Star.Trek.2009.720p.BrRip.x264.mp4
Star.Trek.2009.720p.BrRip.x264.srt
and I use the following exec parameter with the AMC script
--def exec="/config/postprocess.sh -d {quote folder} -f {quote f} -t {quote type ...
- 09 Feb 2022, 02:26
- Forum: Help and Support
- Topic: Correct Way to Use --file-filter Option?
- Replies: 4
- Views: 5784
Re: Correct Way to Use --file-filter Option?
:?: What's the complete command-line call? Are you passing any input folders or files?
e.g. list files in or below the current directory . and select files where the file path matches a specific keyword, and then print them with a specific custom format:
$ filebot -mediainfo -r . --file-filter ...
- 08 Feb 2022, 22:38
- Forum: Help and Support
- Topic: Correct Way to Use --file-filter Option?
- Replies: 4
- Views: 5784
Correct Way to Use --file-filter Option?
I'm trying to use the --file-filter option to only process (via the AMC script) files that are in folders matching a certain regex, but no matter what I try I always get the following error:
Invalid usage: no input
Abort (×_×)
I even get this error with the following file filter that should ...
Invalid usage: no input
Abort (×_×)
I even get this error with the following file filter that should ...
- 07 Feb 2022, 18:57
- Forum: Help and Support
- Topic: Difference Between --filter and --file-filter Options
- Replies: 1
- Views: 2660
Difference Between --filter and --file-filter Options
Is there a difference between the --filter and --file-filter options? I've come across both in various posts and I'm just trying to figure out which one is the correct one to use.
Thanks,
Harry
Thanks,
Harry
- 04 Feb 2022, 15:50
- Forum: Scripting and Automation
- Topic: Will 4.9.5 API Classes Have Support for TV Show Trailers?
- Replies: 2
- Views: 2629
Re: Will 4.9.5 API Classes Have Support for TV Show Trailers?
Awesome. Thanks for all the details.
Thanks,
Harry
Thanks,
Harry
- 04 Feb 2022, 04:51
- Forum: Scripting and Automation
- Topic: Will 4.9.5 API Classes Have Support for TV Show Trailers?
- Replies: 2
- Views: 2629
Will 4.9.5 API Classes Have Support for TV Show Trailers?
Just wondering if the API classes coming in 4.9.5 will have support for TV series trailers? In other words, will there be a getTrailers method in the SeriesInfo class. If not currently in the beta, could it be added?
Thanks,
Harry
Thanks,
Harry
- 03 Feb 2022, 22:20
- Forum: Feature Requests and Bug Reports
- Topic: Feature Request: Episode level NFO
- Replies: 15
- Views: 24075
Re: Feature Request: Episode level NFO
Awesome. Thanks for doing that. I'll check it out tomorrow hopefully. Much appreciated.rednoah wrote: 03 Feb 2022, 18:44 The artwork script (previously just used to print available artwork) has been repurposed for this use case:
https://github.com/filebot/scripts/blob ... ork.groovy
Harry
- 03 Feb 2022, 17:59
- Forum: Feature Requests and Bug Reports
- Topic: Feature Request: Episode level NFO
- Replies: 15
- Views: 24075
Re: Feature Request: Episode level NFO
snip
I'm also a bit dubious about generating invalid XML files (can't have multiple root elements) but if that's what we want, then I'll see into making it work.
Awesome additions to the nfo.groovy file. Any chance you'd also add downloading the banner and fanart for the series and movies to ...
- 03 Feb 2022, 15:44
- Forum: Scripting and Automation
- Topic: Database Settings for FileBot vs AMC
- Replies: 8
- Views: 7130
Re: Database Settings for FileBot vs AMC
Well, the guest actors are in the episode nfo and the series actors are in the series nfo.
Getting cast and crew typically requires extra requests, so that's information we wouldn't include by default. Most users don't care, or rather Plex and friends take care of adding the information the users ...
- 03 Feb 2022, 05:40
- Forum: Scripting and Automation
- Topic: Database Settings for FileBot vs AMC
- Replies: 8
- Views: 7130
Re: Database Settings for FileBot vs AMC
:idea: Being able to use TheMovieDB as episode list source but TheTVDB as source for --def artwork=y is a feature in many ways, and I'm not convinced we'd come up positive overall if we change the current behaviour.
snip
:idea: On that note, we could roll database-agnostic series nfo ...
- 03 Feb 2022, 04:55
- Forum: Scripting and Automation
- Topic: Database Settings for FileBot vs AMC
- Replies: 8
- Views: 7130
Re: Database Settings for FileBot vs AMC
Not planned due to concerns about backwards-compatibility. So we'd need a really good reason to switch to TheMovieDB::TV (for everything regardless of selected database) such as Plex confirmed no longer working with TheTVDB sourced NFO files.
:idea: The new nfo script is written database ...
- 03 Feb 2022, 04:51
- Forum: Scripting and Automation
- Topic: AMC Script vs --apply Post Processing
- Replies: 3
- Views: 5132
Re: AMC Script vs --apply Post Processing
Yes. There are a number of features that were introduced in the amc script and later built into the FileBot application as standard features that can be used in both GUI and CLI.
You can indeed use filebot -rename to perform typical tasks:
$ filebot -rename Alias.1x01.mp4 -non-strict --apply ...
- 03 Feb 2022, 04:23
- Forum: Scripting and Automation
- Topic: Database Settings for FileBot vs AMC
- Replies: 8
- Views: 7130
Re: Database Settings for FileBot vs AMC
1.
The default series database is used by -rename that don't specify --db :
filebot -script fn:properties --def series.db=TheMovieDB::TV
2.
The series.db setting has no effect on the amc script , because it'll alway specify TheTVDB explicitly for internal rename() calls. If you use --def ...
- 03 Feb 2022, 04:14
- Forum: Scripting and Automation
- Topic: AMC Script vs --apply Post Processing
- Replies: 3
- Views: 5132
AMC Script vs --apply Post Processing
Still learning all the features of FileBot and I just found out about being able to script the post processing features using the --apply command. What I'm now trying to figure out is if this basically makes the majority of the AMC script functionality redundant. I see that the AMC script can ...
- 03 Feb 2022, 01:44
- Forum: Feature Requests and Bug Reports
- Topic: FileBot_4.9.5-portable-jdk8.tar.xz Doesn't Work with Java 8
- Replies: 4
- Views: 4634
FileBot_4.9.5-portable-jdk8.tar.xz Doesn't Work with Java 8
I have Java 8 installed and I just tried the beta version of FileBot using the file named FileBot_4.9.5-portable-jdk8.tar.xz, however, I got the following error:
Initialize UserHome folder: /config/filebot/data/0
Initialize Cache folder: /config/filebot/data/0/cache
Initialize Logs folder: /config ...
Initialize UserHome folder: /config/filebot/data/0
Initialize Cache folder: /config/filebot/data/0/cache
Initialize Logs folder: /config ...
- 02 Feb 2022, 23:20
- Forum: Feature Requests and Bug Reports
- Topic: Add getActors to SeriesInfo class
- Replies: 3
- Views: 3154
Re: Add getActors to SeriesInfo class
The {actors} binding should work for both Episode and Movie type objects. Both TheTVDB and TheMovieDB::TV should work.
e.g.
$ filebot -list --q MythBusters --db TheTVDB --filter "i == 1" --format "{actors}"
[Brian Louden, Robert Lee, Jonathan Lung, Jessi Combs, Scottie Chapman, Heather Joseph ...
- 02 Feb 2022, 19:23
- Forum: Feature Requests and Bug Reports
- Topic: Feature Request: Episode level NFO
- Replies: 15
- Views: 24075
Re: Feature Request: Episode level NFO
Not supported by the script in its current state :lol: that is, until someone actually has that use case and puts in a feature request. @HarryMuscle resurrected this request, but we haven't even confirmed if he's actually using Kodi, so let's see what we need first. Same for thumbnail naming and ...
- 02 Feb 2022, 18:20
- Forum: Scripting and Automation
- Topic: Database Settings for FileBot vs AMC
- Replies: 8
- Views: 7130
Database Settings for FileBot vs AMC
I'm trying to switch over to using TMDB for TV shows instead of the default TVDB and I just want to make sure I understand things correctly. First I tried to tell FileBot to use the TMDB for series by running
filebot -script fn:properties --def series.db=TheMovieDB::TV
but the AMC script was still ...
filebot -script fn:properties --def series.db=TheMovieDB::TV
but the AMC script was still ...
- 02 Feb 2022, 04:51
- Forum: Feature Requests and Bug Reports
- Topic: Add getActors to SeriesInfo class
- Replies: 3
- Views: 3154
Add getActors to SeriesInfo class
Both the TVDB and TMDB support actors at the series level. It can be useful to have access to that information however looking at the API documentation I noticed that the SeriesInfo class does not contain a getActors (or getCrew, getCadlstc getDirector, etc.) method. So I'd like to suggest adding ...
- 02 Feb 2022, 04:23
- Forum: Scripting and Automation
- Topic: Conditionally Using --q Option
- Replies: 3
- Views: 2969
Re: Conditionally using --q Option
The shell script that calls filebot with or without --q depending on the situation would have to take care of that.
:idea: You could --file-filter to select only file paths where the folder contains the ID ensuring that --q always works for the selected files:
--file-filter "folder.name.match ...
- 02 Feb 2022, 03:56
- Forum: Scripting and Automation
- Topic: Conditionally Using --q Option
- Replies: 3
- Views: 2969
Conditionally Using --q Option
I run a scheduled script that invokes FileBot and the AMC script to process new downloads and since I don't always get perfect matches (especially for TV shows) I'm thinking of making use of the --q option to specify a movie or series ID if that information is present in the folder that is being ...
- 02 Feb 2022, 01:16
- Forum: Episode / Movie Naming Scheme
- Topic: Helping FileBot/AMC Figure Out The Correct TV Show?
- Replies: 1
- Views: 2994
Helping FileBot/AMC Figure Out The Correct TV Show?
Is there any trick to helping FileBot/AMC figure out the correct TV show based on the name of the series folder? I run a scheduled FileBot/AMC script so specifying the show ID using the command line argument isn't ideal. I prefer to just rename the main series folder and wait until the next ...
- 01 Feb 2022, 03:58
- Forum: Ubuntu & Desktop Linux
- Topic: [docker] Command Line Flag to Store XAttrs in File
- Replies: 2
- Views: 4888
Re: Command Line Flag to Store XAttrs in File
:arrow: You can use the filebot command the generate the necessary configuration file in the appropriate location:
filebot -script fn:properties --def net.filebot.xattr.store=.xattr
:idea: The "appropriate location" would the the persistent data folder (i.e. docker mapped volume ) where ...
- 31 Jan 2022, 23:38
- Forum: Scripting and Automation
- Topic: Unofficial custom AMC script (intermediate users)
- Replies: 28
- Views: 84562
Re: Unofficial custom AMC script (intermediate users)
Any chance this modified script has a GitHub repo? Also does it still work?
Thanks,
Harry
Thanks,
Harry
- 31 Jan 2022, 23:18
- Forum: Feature Requests and Bug Reports
- Topic: Feature Request: Episode level NFO
- Replies: 15
- Views: 24075
Re: Feature Request: Episode level NFO
Wanted to bump this to see if there's any chance of this getting implemented. Some of us like to curate all information including episode descriptions. Using FileBot first and then having to use another tool to generate the episode nfo files makes one want to switch away from FileBot and just use ...
- 31 Jan 2022, 21:18
- Forum: Help and Support
- Topic: Generate Episode NFO Files via AMC Script?
- Replies: 1
- Views: 3563
Generate Episode NFO Files via AMC Script?
Does the AMC script only generate NFO files for the TV Show itself? Is it possible to also generate nfo files for each episode and possibly each season? Most of my search on this subject is turning up really old posts. Apparently about 5 years ago there was also a custom modified version of the AMC ...
- 31 Jan 2022, 19:42
- Forum: Ubuntu & Desktop Linux
- Topic: [docker] Command Line Flag to Store XAttrs in File
- Replies: 2
- Views: 4888
[docker] Command Line Flag to Store XAttrs in File
I'm running the jlesage FileBot Docker container which only allows adding command line flags when running the AMC script automatically and I need to tell it to use a file to store the extended attributes. I know there's a command line flag to disable storing extended attributes (-no-xattr), but I ...
- 08 Jan 2022, 00:02
- Forum: Scripting and Automation
- Topic: Move Completed Source Files
- Replies: 1
- Views: 1589
Move Completed Source Files
Wondering if anyone has a setup where after the AMC script runs, the source files that were processed successfully (including all supplementary files ... basically the whole directory containing the source files) are moved to another location? I'd like to be able to see at a glance by looking at the ...
- 07 Jan 2022, 21:56
- Forum: Ubuntu & Desktop Linux
- Topic: List of All Possible Parameters for AMC Script's exec Option?
- Replies: 3
- Views: 6817
Re: List of All Possible Parameters for AMC Script's exec Option?
1.
-exec expressions work the same way as --format expressions . The former generates a String value that is an argument value, the latter generates a String value that is a file path.
:idea: You can find a list of top-level bindings here, some of which are complex objects with dynamic ...
- 06 Jan 2022, 22:54
- Forum: Ubuntu & Desktop Linux
- Topic: List of All Possible Parameters for AMC Script's exec Option?
- Replies: 3
- Views: 6817
List of All Possible Parameters for AMC Script's exec Option?
Is there a list somewhere of all of the possible parameters that can be used in the AMC script's exec option which allows running code after an item has been processed? Here's what I'm trying to accomplish and I'm assuming using the exec option is the way to do it:
I have 4 folders:
input
output ...
I have 4 folders:
input
output ...