Can't use escape characters in filenames
I'm trying to format my file name to include the {key} inside two {} brackets - so it would be something along the lines of "Title Name {SoMeUnIqUID}.mkv"
If I set the Media format to be "{title_full} {{key}}.{ext}" the result is "Title Name {{key}}.mkv"
If I try to do "{title_full} \{{key}\}.{ext}", I get an error "Invalid media format, the media format contains errors or is empty. Check the table at the end of this page for valid media name variables".
You should either be able to use escape characters to format your file names however you want, or using {{key}} should format the key with two {} surrounding it.
https://support.plex.tv/articles/naming-and-organizing-your-movie-media-files/
Using {} brackets for movie IDs (albeit not the exact same scenario as a YouTube video), is the recommended standard for naming your files in Plex.
The filename format is just Python string formatting. For a { or } to actually represent you just need three of them:
>>> '{{{key}}}'.format(key='test')
'{test}'
First set are for the value, second two represent a literal character.
Awesome - I guess slightly related to filenames so I'll just toss this in here...
{flag_hdr} doesn't seem to work whatsoever, every time I try and put that the file name it throws an Invalid media format error.
Also, if I ended up getting {flag_hdr} to work, I don't know if I could even get it to work how I'd want. Most videos aren't going to be HDR, and to follow the file naming conventions of my Movies you're able to do something like this within Radarr
{[MediaInfo VideoDynamicRangeType]}
This makes it so when your video isn't HDR, you don't have empty [] brackets in the file name. If there isn't a way to do that currently, is that something you could add?
Ah the flag_hdr flag looks like it might need some tweaks to work. Thanks for reporting it.