Sort movies automaticaly into set folder

All your suggestions, requests and ideas for future development
Post Reply
anton
Posts: 2
Joined: 14 May 2019, 20:00

Sort movies automaticaly into set folder

Post by anton » 14 May 2019, 20:14

Create a funtion to sort movies in there sets. For example:

movies in one folder:
/Star Wars: Episode II - Attack of the Clones (2002).mkv
/Star Wars: The Force Awakens (2015).mkv

Get movie set infos from TMDB by movie. For example:
https://www.themoviedb.org/collection/10
Create movie set folder and put the movies into the set folder:

/Star Wars Collection (1977-2019)/Star Wars: Episode II - Attack of the Clones (2002).mkv
/Star Wars Collection (1977-2019)/Star Wars: The Force Awakens (2015).mkv

Is that feature possible to implement
thanks anton

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

Re: Sort movies automaticaly into set folder

Post by rednoah » 15 May 2019, 02:15

1.
If you don't care about the years, then it's easy:

Code: Select all

{collection}/{ny}

2.
If you do care about the years then it's probably still possible, but significantly more tricky, the {model} binding might help:
viewtopic.php?f=5&t=9814

e.g.

Code: Select all

{model.findAll{ it.collection == collection }.y.bounds()}
:idea: This one only considers the movies years currently being processed though, so you'll need to process the entire collection in one go for it to work the way you want.



EDIT:

r6317 introduces the {cy} collection years binding to make this particular use case easier in the future.
:idea: Please read the FAQ and How to Request Help.

anton
Posts: 2
Joined: 14 May 2019, 20:00

Re: Sort movies automaticaly into set folder

Post by anton » 15 May 2019, 16:04

Perfect, thank you so much

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests