Sorting Movies by year

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
jaredc2
Posts: 8
Joined: 25 Jan 2020, 17:40

Sorting Movies by year

Post by jaredc2 »

hi, Im trying to write a script but not a programmer. Hoping for some help.

I would like to move every movie into a folder, and then sort it by decade.

like example, Flash 2023, i would like to be in, Movies3/Movies4k/2020-2029/' then a new folder called "Flash (2023)" and the movie to have the original name.

but some movies work and others do not.


i also would like any older, unlisted movies movies into another folder.

below is what i have found. Thanks

Format: Select all

{
 y > 
 
 2021 ? 2029 

 	  : y > 2029
	  ? '/Movies3/Movies4k/2020-2029/' 

	  : y > 2019 
	  ? '/Movies3/Movies4k/2020-2029/' 

	  : y > 2009 
	  ? '/Movies3/Movies4k/2010-2019/' 

	  : y > 1999 
	  ? '/Movies3/Movies4k/2000-2009/'
	    
	  : y > 1989 
	  ? '/Movies3/Movies4k/1990-1999' 

	  : y > 1979 
	  ? '/Movies3/Movies4k/1980-1989'
	  
	  : y > 1969 
}{ny}/{fn}
User avatar
rednoah
The Source
Posts: 22851
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sorting Movies by year

Post by rednoah »

e.g.

Format: Select all

{drive}/Movies/{decade}-{decade+9}/{~plex}

Code: Select all

X:/Movies/2000-2009/Avatar (2009)/Avatar (2009).mkv
:idea: Please read the FAQ and How to Request Help.
Post Reply