How to create a script that parse file name to add tags? - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Off Topic (https://forum.jellyfin.org/f-off-topic) +--- Forum: General Discussion (https://forum.jellyfin.org/f-general-discussion) +--- Thread: How to create a script that parse file name to add tags? (/t-how-to-create-a-script-that-parse-file-name-to-add-tags) |
How to create a script that parse file name to add tags? - rdash - 2024-01-26 Hello, After a few days of struggle, I come for your help. I have a simple job to do: I'd like to be able to add tags to my medias in Jellyfin based on their filename. The idea would be to be able to filter by HDR/Dolby Vision/Dolby Atmos in the library. I have setup radarr to rename the file as I want, it gives something like: Code: Avengers Endgame (2019) [imdbid-tt4154796] - Imax [WEBDL-2160p][DV HDR10][TrueHD Atmos 7.1][HEVC]-SiC Parsing this filename, I would like to add the DV, HDR10 and Atmos tag in Jellyfin. I tried to create a script in Python, then bash but I'm not a developer at all and this task that looks easy drives me crazy. I can't find my way around the API. Do you have an example of a script that could do what I want? Best, RE: How to create a script that parse file name to add tags? - TheDreadPirate - 2024-01-26 The dev for Finamp wrote a blog post with some information that may be helpful to your effort. https://jmshrv.com/posts/jellyfin-api/ RE: How to create a script that parse file name to add tags? - bitmap - 2024-05-28 Holy hell do I want to do this for my anime (dual, jp-only, en-only, etc...). For some odd reason it's not a feature in the Servarr apps, which you could do almost any of the rest of this with. |