Can AMC or any other script organize movies by country of origin?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
obi
Posts: 8
Joined: 16 Jan 2015, 06:19

Can AMC or any other script organize movies by country of origin?

Post by obi »

I'd like to organize my movies by country as I like to watch a lot of foreign films. Both TMDB and Imdb have this info (as country of origin or language), but I haven't seen any opton in AMC script etc to use this. I am quite happy to write my own groovy script or extend something if that helps, would just like some quick guidance.

It would also be nice to normalize the country/language name, eg have it always be Korean or Korea, not both.
User avatar
rednoah
The Source
Posts: 23990
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can AMC or any other script organize movies by country of origin?

Post by rednoah »

You can add {country} to your custom movie format. See Format Expressions for details.

Format: Select all

Movies/{ country }/{ ~plex.id }
Screenshot


You can use Replace Characters, Words or Patterns to replace KR with Korean:

Format: Select all

{ country.replace('KR':'Korea') }
:idea: Please read the FAQ and How to Request Help.
obi
Posts: 8
Joined: 16 Jan 2015, 06:19

Re: Can AMC or any other script organize movies by country of origin?

Post by obi »

rednoah wrote: 10 May 2025, 09:06 You can add {country} to your custom movie format. See Format Expressions for details.

Format: Select all

Movies/{ country }/{ ~plex.id }
Screenshot


You can use Replace Characters, Words or Patterns to replace KR with Korean:

Format: Select all

{ country.replace('KR':'Korea') }
Thank you very much, and sorry for missing that in the docs, my mistake was not looking at the basic docs first and only in the AMC script.
User avatar
rednoah
The Source
Posts: 23990
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can AMC or any other script organize movies by country of origin?

Post by rednoah »

obi wrote: 10 May 2025, 23:17 Thank you very much, and sorry for missing that in the docs, my mistake was not looking at the basic docs first and only in the AMC script.
No worries. Please post the final command-line string when you have got a working solution. Might be useful for the next guy.
:idea: Please read the FAQ and How to Request Help.
Post Reply