PDA

View Full Version : New sorting method for Actors/Directors


Patilan
2009-01-13, 06:35
Greetings!

In Library mode, I have wished many times that I could sort the Directors by the number of their movies I have in my library. For example, if 23 of my movies are directed by John Smith, and 17 are directed by Finka Yatova, I want to see a list like this:

1. John Smith .........(23)
2. Finka Yatova ......(17)
3. Jane Something ...(9)
4. etc....

Of course the same idea applies for the sorting of the Actors.

I would also like to be able to filter out from this list all actora who appear in less that N of my movies. (or show only directors who have directed more than N movies in my collection).

I hope you'll find this idea useful.

Thank you.

Patilan

jmarshall
2009-01-13, 07:03
Hi there, and welcome to the community.

This seems like a good task for someone wanting to do some development for XBMC. Steps to do this would be:

1. Alter CVideoDatabase::GetPeopleNav() to store the total number of movies that the person appears in. This is easy in the case of no profiles or masteruser, which to be honest is the only one worth doing - you've already got the counts in the query, so just add these to the fileitem object - I suggest using the same fields as we do for tvshows (see GetTVShowsByWhere()).

2. Add a sort mode to sort on this field. See SSortFileItem.

3. You can probably just use label2 to actually display the information.

Good luck!
Jonathan

Gamester17
2009-01-13, 13:05
Please submit a new feature request ticket on trac for tracking purposes => http://xbmc.org/trac

:;):

Patilan
2009-01-13, 23:30
Steps to do this would be:
1. Alter CVideoDatabase::GetPeopleNav() to store... ...

Jonathan, I wish I knew what you're talking about! That's all Chinese to me :)
Regretfully, I have no programing knowledge of any kind.

Please submit a new feature request ticket on trac for tracking purposes => http://xbmc.org/trac

:;):

Done. That wold be: http://xbmc.org/trac/ticket/5676

Thanks!

stacked
2009-01-13, 23:41
sounds like a great idea!

Patilan
2009-01-15, 08:02
In Library mode, I have wished many times that I could sort the Directors by the number of their movies I have in my library. For example, if 23 of my movies are directed by John Smith, and 17 are directed by Finka Yatova, I want to see a list like this:

1. John Smith .........(23)
2. Finka Yatova ......(17)
3. Jane Something ...(9)
4. etc....

Of course the same idea applies for the sorting of the Actors.

Actually, it just occured to me that such sorting would be useful not just for Actors/Directors, but also for Genres, Year, Studios...

Comedy ......(314)
Drama ........(275)
Animation ....(63)
Action ........(3)
etc...

Patilan