reformatted, changed the regex to only affect basename
updated grammar
made api key an arg, added readme content
You provide a search query, a regex pattern, and a url and this script will go through every video file in the search results and change the title and original title metadata values to what is captured in the regex.
Do not worry, you will be prompted with the old title and the new title and be asked to confirm every change.
example command:
python3 jellyfin-title.py -p "[sS]\d\d[Ee]\d\d" -u http://192.168.1.30:8096 -s "Some Show" -a xxxxxxxxxx-apikey-xxxxxxxxx