How do i modify Anime naming preset?

Any questions? Need some help?
Post Reply
User avatar
Yoange
Posts: 3
Joined: 11 Jun 2022, 22:17

How do i modify Anime naming preset?

Post by Yoange »

Hi, i would like to know how to modify this preset:
Image

The naming is really good, but wanna add some information

Default is this:

Code: Select all

[PuyaSubs!] One Piece - 1015 [ESP-ENG][1080p][8D2B6D5C].mkv
[PuyaSubs!] One Piece - 1016 [ESP-ENG][1080p][70368B62].mkv
[PuyaSubs!] One Piece - 1017 [ESP-ENG][1080p][26FFE5EE].mkv
[PuyaSubs!] One Piece - 1018 [ESP-ENG][1080p][C097EBFA].mkv
To this:

Code: Select all

One Piece - S21E124 - Straw Hat Luffy! The Man Who Will Become the King of the Pirates.mkv
One Piece - S21E125 - The Battle of the Monsters! The Three Stubborn Captains.mkv
One Piece - S21E126 - A Barrage of Powerful Techniques! The Fierce Attacks of the Worst Generation.mkv
One Piece - S21E127 - Kaido Laughs! The Emperors of the Sea vs. the New Generation.mkv
I wanna add this information to the name with the preset, but i don't know how, i can only do it with the below Scritp:

Code: Select all

One Piece - S21E124 - Straw Hat Luffy! The Man Who Will Become the King of the Pirates! - 1080p Webrip x264 (8.1 Mbps).mkv
One Piece - S21E125 - The Battle of the Monsters! The Three Stubborn Captains! - 1080p Webrip x264 (8.1 Mbps).mkv
One Piece - S21E126 - A Barrage of Powerful Techniques! The Fierce Attacks of the Worst Generation! - 1080p Webrip x264 (8.1 Mbps).mkv
One Piece - S21E127 - Kaido Laughs! The Emperors of the Sea vs. the New Generation! - 1080p Webrip x264 (8.1 Mbps).mkv
I use this Script, but i have to manually match every single episode with the correct name:

Code: Select all

{n} - {S00e00} - {t} - {
    (hd == 'SD') ? {any{text.size()}{0} > 0 ? 'SD':'SD'} :
    (hd == 'UHD') ? ( (gigabytes > 10 && mbps >= 26 ? '4K UHDremux' : {any{text.size()}{0} > 0 ? '4K Webrip':'4K Webrip'})) :
    (hd == 'HD' && vf == '720p') ? {any{text.size()}{0} > 0 ? '720p':'720p'} :
    (hd == 'HD' && vf == '1080p' ? 
            (gigabytes > 15 && mbps >= 18 ) ? '1080p Webremux' : 
            (mbps >= 8 ) ? {any{text.size()}{0} > 0 ? '1080p Webrip':'1080p Webrip'} : {any{text.size()}{0} > 0 ? '1080p WBrip':'1080p WBrip'} :
            {any{text.size()}{0} > 0 ? '1080p WBrip':'1080p WBrip'})}
{' (' + fn.matchAll(/extended|uncensored|open.matte|noir.edition|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'}
{fn =~ /3D|3d/ ? ' 3D' : ''}
{vc=~ /HEVC|x265/ ? ' x265' : vc =~ /AVC|x264/ ? ' x264' : ''}
{fps =~ /118|119|120/ ? ' 120 fps' : fps =~ /58|59|60|61/ ? ' 60 fps' : ''} 
({mbps}) {audiolanguages}
I use the above script for some series too, but never mind...
Please, can anyone help me to join this things?
Thank you so much
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How do i modify Anime naming preset?

Post by rednoah »

e.g.

Code: Select all

{ db.TheTVDB.plex.name } - { vf } { vs } { vc } ({ mbps })

:arrow: Your code (???) starts with {n} - {S00e00} - {t} so you can probably just replace that with { db.TheTVDB.plex.name } and then leave it at that.
:idea: Please read the FAQ and How to Request Help.
User avatar
Yoange
Posts: 3
Joined: 11 Jun 2022, 22:17

Re: How do i modify Anime naming preset?

Post by Yoange »

Hi, thanks for reply... i'm gonna try it, hope it works :3
Post Reply