Video file not renamed correctly

All your suggestions, requests and ideas for future development
Post Reply
JazzCarnival
Posts: 8
Joined: 18 Mar 2021, 18:18

Video file not renamed correctly

Post by JazzCarnival »

Dear all,

Normally I use the following expression for my movie collection:

{plex.derive{" [$lang]"}{" [$vf, $vc, $ac]"}}

But only the subtitle file adds the language, not the video file. Please see below the example:

Movie (2021) [1080p, x264, AAC].mp4
Movie (2021) [eng] [1080p, x264, AAC].eng.srt

Any ideas?

Thanks
User avatar
rednoah
The Source
Posts: 19916
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Video file not renamed correctly

Post by rednoah »

lang is the subtitle language extension, and thus defined only if the file at hand is a subtitle file, by design.



EDIT:

:!: Adding language tags to video files based on nearby subtitles files is probably possible via the {model} binding, but also probably out-of-reach for users without Groovy programming expertise.
:idea: Please read the FAQ and How to Request Help.
JazzCarnival
Posts: 8
Joined: 18 Mar 2021, 18:18

Re: Video file not renamed correctly

Post by JazzCarnival »

hi rednoah,

Could you please let me know which extension I should use to extract the audio language of the video file?

Thanks
User avatar
rednoah
The Source
Posts: 19916
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Video file not renamed correctly

Post by rednoah »

I see. In that case, {audioLanguages} is the binding you're looking for:

Code: Select all

{audioLanguages}
:idea: https://www.filebot.net/naming.html
:idea: Please read the FAQ and How to Request Help.
Post Reply