Page 1 of 1

[bash] Poor man's .plexmatch generator

Posted: 31 May 2022, 22:35
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.