Page 1 of 1

Alternative to {media.filename}

Posted: 10 Jun 2021, 00:42
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?

Re: Alternative to {media.filename}

Posted: 10 Jun 2021, 02:56
by rednoah
If {media.filename} works for you then, {mediaFile.name} should give you the same result except faster.

Re: Alternative to {media.filename}

Posted: 10 Jun 2021, 09:04
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

Re: Alternative to {media.filename}

Posted: 10 Jun 2021, 09:13
by rednoah
e.g.

Code: Select all

{mediaFile.nameWithoutExtension}

Re: Alternative to {media.filename}

Posted: 10 Jun 2021, 09:22
by Xazmah
rednoah wrote: 10 Jun 2021, 09:13 e.g.

Code: Select all

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