Indeed, I still have some difficulty optimizing the code, :oops: but congratulations, you managed to optimize it by 75%! 8-)
It's exactly what I needed.
I tested it on a few films and it works perfectly!
{
any
{ if ( genre =~ /Animation/
|| info.productionCompanies =~ /Toei Animation|Ghibli ...
Search found 12 matches
- 06 Jan 2025, 15:23
- Forum: Episode / Movie Naming Scheme
- Topic: Binding "genre": undefined
- Replies: 4
- Views: 2098
- 06 Jan 2025, 13:05
- Forum: Episode / Movie Naming Scheme
- Topic: Binding "genre": undefined
- Replies: 4
- Views: 2098
Re: Binding "genre": undefined
I use a list of conditions to define folder of ANIMATIONS:
def anime = null
if (info.productionCompanies =~ /Toei Animation/) anime = 'R:/_MOVIES_ANIMATION/'+plex.id+' ['+vf+' '+channels+']'
else if (info.productionCompanies =~ /Ghibli/) anime = 'R:/_MOVIES_ANIMATION/'+plex.id+' ['+vf ...
def anime = null
if (info.productionCompanies =~ /Toei Animation/) anime = 'R:/_MOVIES_ANIMATION/'+plex.id+' ['+vf+' '+channels+']'
else if (info.productionCompanies =~ /Ghibli/) anime = 'R:/_MOVIES_ANIMATION/'+plex.id+' ['+vf ...
- 06 Jan 2025, 11:49
- Forum: Episode / Movie Naming Scheme
- Topic: Binding "genre": undefined
- Replies: 4
- Views: 2098
Binding "genre": undefined
Hi,
For organize my movies animations I use this code:
else if (genre =~ /Animation/) anime = 'R:/_MOVIES_ANIMATION/'+plex.id+' ['+vf+' '+channels+']'
else if (genres =~ /Animation/) anime = 'R:/_MOVIES_ANIMATION/'+plex.id+' ['+vf+' '+channels+']'
But some movies dont have "genre" and return ...
For organize my movies animations I use this code:
else if (genre =~ /Animation/) anime = 'R:/_MOVIES_ANIMATION/'+plex.id+' ['+vf+' '+channels+']'
else if (genres =~ /Animation/) anime = 'R:/_MOVIES_ANIMATION/'+plex.id+' ['+vf+' '+channels+']'
But some movies dont have "genre" and return ...
- 14 Dec 2023, 20:04
- Forum: Windows
- Topic: Use {episodelist} binding to count episodes per season and check if a season is complete via the {model} binding
- Replies: 5
- Views: 5103
Re: Use {episodelist} binding to count episodes per season and check if a season is complete via the {model} binding
Perfect !
Thank you, this work well !
Thank you, this work well !
- 18 Jul 2023, 00:19
- Forum: Episode / Movie Naming Scheme
- Topic: Movie Renaming Expression for "Studio" ?
- Replies: 17
- Views: 11538
Re: Movie Renaming Expression for "Studio" ?
et voila :
{file.path[0]}:/_MOVIES/
{any
{def anime = null
if (info.productionCompanies =~ /Toei Animation/) anime = 'ANIMATION'
else if (info.keywords =~ /live action and animation/) anime = 'ANIMATION'
else if (info.keywords =~ /cartoon/) anime = 'ANIMATION'
else if (genre =~ /Animation ...
{file.path[0]}:/_MOVIES/
{any
{def anime = null
if (info.productionCompanies =~ /Toei Animation/) anime = 'ANIMATION'
else if (info.keywords =~ /live action and animation/) anime = 'ANIMATION'
else if (info.keywords =~ /cartoon/) anime = 'ANIMATION'
else if (genre =~ /Animation ...
- 17 Jul 2023, 19:24
- Forum: Episode / Movie Naming Scheme
- Topic: Movie Renaming Expression for "Studio" ?
- Replies: 17
- Views: 11538
Re: Movie Renaming Expression for "Studio" ?
Great news !
You reduced 200 lines of code to 15 lines! Thanks, that will make my job easier.
I didn't know, it will be easier to use an external file.
You reduced 200 lines of code to 15 lines! Thanks, that will make my job easier.
I didn't know, it will be easier to use an external file.
- 17 Jul 2023, 15:53
- Forum: Episode / Movie Naming Scheme
- Topic: Movie Renaming Expression for "Studio" ?
- Replies: 17
- Views: 11538
Re: Movie Renaming Expression for "Studio" ?
Yep, I think use that {
if (info.productionCompanies =~ /DC Films|DC Comics|DC Entertainment/)
return '/STUDIO/DC─COMICS/'+
{collection
.replaceAll(/[*\s]+/, " ")
.replaceAll(/[`´‘’ʻ""“”.]/, "")
.replaceAll(/[:*?"<()>|?]/)
.replaceAll(/-/, "")
.replaceAll(/(animation)/, "")
.replaceAll ...
if (info.productionCompanies =~ /DC Films|DC Comics|DC Entertainment/)
return '/STUDIO/DC─COMICS/'+
{collection
.replaceAll(/[*\s]+/, " ")
.replaceAll(/[`´‘’ʻ""“”.]/, "")
.replaceAll(/[:*?"<()>|?]/)
.replaceAll(/-/, "")
.replaceAll(/(animation)/, "")
.replaceAll ...
- 17 Jul 2023, 13:18
- Forum: Episode / Movie Naming Scheme
- Topic: Movie Renaming Expression for "Studio" ?
- Replies: 17
- Views: 11538
Re: Movie Renaming Expression for "Studio" ?
I found another solution. I put priority studios first with any function:
{// Classement des films par STUDIO, COLLECTION ou GENRE
any
{//Ranking by priority studios
info.productionCompanies*.match(/DC Films/ : '/STUDIO/DC─COMICS/').find()}
{//Ranking by others studios
info ...
{// Classement des films par STUDIO, COLLECTION ou GENRE
any
{//Ranking by priority studios
info.productionCompanies*.match(/DC Films/ : '/STUDIO/DC─COMICS/').find()}
{//Ranking by others studios
info ...
- 17 Jul 2023, 12:53
- Forum: Episode / Movie Naming Scheme
- Topic: Movie Renaming Expression for "Studio" ?
- Replies: 17
- Views: 11538
Re: Movie Renaming Expression for "Studio" ?
Thanx rednoah, it's work for prioritize, but expression if word in need have exactly same word. Can I use more than one by request or I need one by one ?
if ('DC Films, DC Entertainment' in info.productionCompanies) return '/STUDIO/DC─COMICS/' if ('DC Films' in info.productionCompanies) return ...
if ('DC Films, DC Entertainment' in info.productionCompanies) return '/STUDIO/DC─COMICS/' if ('DC Films' in info.productionCompanies) return ...
- 17 Jul 2023, 11:12
- Forum: Episode / Movie Naming Scheme
- Topic: Movie Renaming Expression for "Studio" ?
- Replies: 17
- Views: 11538
Re: Movie Renaming Expression for "Studio" ?
I try to classify my movies by 'STUDIO' like this :
{info.productionCompanies*.match(
/DC Films/ : '/STUDIO/DC─COMICS/',
/Warner Bros. Pictures/ : '/STUDIO/WARNER BROS/'
).find()
}
Example of Aquaman
{info.productionCompanies } [ Warner Bros. Pictures , The Safran Company, DC Films ]
The ...
{info.productionCompanies*.match(
/DC Films/ : '/STUDIO/DC─COMICS/',
/Warner Bros. Pictures/ : '/STUDIO/WARNER BROS/'
).find()
}
Example of Aquaman
{info.productionCompanies } [ Warner Bros. Pictures , The Safran Company, DC Films ]
The ...
- 23 Jan 2022, 16:07
- Forum: Episode / Movie Naming Scheme
- Topic: How about sharing our format expressions?
- Replies: 37
- Views: 718183
Re: How about sharing our format expressions?
Hi,
For my first message, I would like to thank the FileBot developers for this application, as well as all members of this forum for their sharing of examples. ;)
I spent a lot of time in this forum, because there are many ideas to find a solution for each way to rename media files. :idea:
Here ...
For my first message, I would like to thank the FileBot developers for this application, as well as all members of this forum for their sharing of examples. ;)
I spent a lot of time in this forum, because there are many ideas to find a solution for each way to rename media files. :idea:
Here ...
