Lowercase season and episode under Linux?

Support for Ubuntu and other Desktop Linux distributions
Post Reply
PriamX
Posts: 7
Joined: 12 Jan 2021, 01:25

Lowercase season and episode under Linux?

Post by PriamX »

Hi all.

Using the {plex} renaming format is there a property or method to change the "S01E01" string to use lowercase, like "s01e01"?

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

Re: Lowercase season and episode under Linux?

Post by rednoah »

Sorry, no built-in helper for this particular use case.


:idea: You can however use generic code to rewrite the file path that {plex} gives you:

Code: Select all

{ plex.path.replaceAll(/S\d+|E\d+/){ it.lower() } }
:idea: Please read the FAQ and How to Request Help.
PriamX
Posts: 7
Joined: 12 Jan 2021, 01:25

Re: Lowercase season and episode under Linux?

Post by PriamX »

Excellent, that'll be just fine, thank you!
Post Reply