[bash] Poor man's .plexmatch generator
Posted: 31 May 2022, 22:35
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:
Remove | sh -x to print the commands line by line instead of executing them.
Code: Select all
filebot -mediainfo -r /path/to/input --filter id --format "
echo 'tmdbid: {id}' > {quote folder/'.plexmatch'}
" | sh -x
