Rename subs with lang codes to {vs}{vf} without causing problems
Posted: 05 Nov 2023, 04:51
Hello, recently I started using Radarr to manage my movies, and by some shallow research it looks like some times the quality guesses are not accurate enough if some infos are not available at the file name, like if it's Blu-ray and/or 1080p, I could do it manually, but it would be nice to have it be automatically detected.
So we come to the problem, the following format works great with video files: "{drive}/Media/{plex.id} [{vf}-{vs}]", but if I have a subtitle that is name seriessub.eng.srt, naturally it would remove the .srt and use only the seriessub.eng, causing a big problem (even overwriting some language codes along the way), resulting on something like this at the end: "seriessub.eng [1080p-BluRay].srt".
I did thinker with conditional statements, but couldn't get it to work properly without causing extra problems.
Thanks.
So we come to the problem, the following format works great with video files: "{drive}/Media/{plex.id} [{vf}-{vs}]", but if I have a subtitle that is name seriessub.eng.srt, naturally it would remove the .srt and use only the seriessub.eng, causing a big problem (even overwriting some language codes along the way), resulting on something like this at the end: "seriessub.eng [1080p-BluRay].srt".
I did thinker with conditional statements, but couldn't get it to work properly without causing extra problems.
Thanks.