Alternative to {media.filename}

All about user-defined episode / movie format expressions
Post Reply
Xazmah
Posts: 15
Joined: 29 May 2018, 19:12

Alternative to {media.filename}

Post by Xazmah »

Hi,

So I know that to make subtitle filenames take the name of the nearby video file {media.filename} is used, it work great with local files but in case of a mounted storage like Google Drive it's slow because the usage of mediainfo, the bigger the files the process become more slow and use a lot of bandwidth, is it possible to achieve the same thing with a different scheme maybe?
User avatar
rednoah
The Source
Posts: 19914
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Alternative to {media.filename}

Post by rednoah »

If {media.filename} works for you then, {mediaFile.name} should give you the same result except faster.
:idea: Please read the FAQ and How to Request Help.
Xazmah
Posts: 15
Joined: 29 May 2018, 19:12

Re: Alternative to {media.filename}

Post by Xazmah »

rednoah wrote: 10 Jun 2021, 02:56 If {media.filename} works for you then, {mediaFile.name} should give you the same result except faster.
mediaFile.name does work but it keep the file extension at the end, any way to remove it?

For example

Mare.of.Easttown.S01E01.Miss.Lady.Hawk.Herself.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv.mkv
Mare.of.Easttown.S01E01.Miss.Lady.Hawk.Herself.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv.eng.srt
Last edited by Xazmah on 10 Jun 2021, 09:20, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 19914
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Alternative to {media.filename}

Post by rednoah »

e.g.

Code: Select all

{mediaFile.nameWithoutExtension}
:idea: Please read the FAQ and How to Request Help.
Xazmah
Posts: 15
Joined: 29 May 2018, 19:12

Re: Alternative to {media.filename}

Post by Xazmah »

rednoah wrote: 10 Jun 2021, 09:13 e.g.

Code: Select all

{mediaFile.nameWithoutExtension}
Worked like a charm, thanks a bunch
Post Reply