Posts: 104
Joined: Jun 2009
Reputation:
0
Instead of only sorting by name, year etc. It very hard to keep track of my 300 movies, when i just get "Thrown in" to my movie library.
Could it be possible to add "Recently added" as Sort order!? So you get all new movies, when ex. selecting Action movies, through genre.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
What do you want? You already know its not a valid sort option at Titles view. Use Recently Added.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
This piqued my interest so I toyed around this weekend. This seems like a relatively simple change. I'm going to work up a patch that will add a sort entry which will sort by the database id which is how Xbmc determines the recently added items. The only complication may be movie sets.
To me, this sort option would only be useful at the Movies Titles and Music Video Titles lists, but it could be at the Episode listing as well. I need a string for it; I'm thinking "by added". Thoughts?
Posts: 1,736
Joined: Oct 2008
Reputation:
14
"by added" actually sounds pretty good. Also "by most recent"
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
Sorry for delay. I haven't had a chance to reply due to family commitments. I hacked this up rather quickly using the same method that "recently added" uses. Every movie has a movie id, which is really just the row number in the database. The library view actually encodes the movie id into the virtual path, so this was really was easy to do. Unfortunately, movie sets screw it up, as I figured they would.
Just like each movie gets a unique movie id, each set also gets a unique set id number but its unrelated to any of the movie id's contained within. The individual movies are sorted in database order, the sets are sorted in database order, but those two sorted lists are simply interleaved together by their id numbers.
There's no real simple way to overcome this. Moreover, I'm not even sure what the "correct" placement for a set should be. Should it be based off the oldest or newest movie contained within? The other option is to sort the sets at either the top or bottom of the list like how folders are typically sorted separately from files.