[bash] Poor man's .plexmatch generator

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[bash] Poor man's .plexmatch generator

Post by rednoah »

e.g. use filebot -mediainfo to find files that have xattr metadata and then generate and execute commands that will write tmdbid: {id} to a .plexmatch file in the same folder:

Code: Select all

filebot -mediainfo -r /path/to/input --filter id --format "
echo 'tmdbid: {id}' > {quote folder/'.plexmatch'}
" | sh -x
:!: Remove | sh -x to print the commands line by line instead of executing them.
:idea: Please read the FAQ and How to Request Help.
Post Reply