damienhaynes / moving-pictures

Moving Pictures is a movies plug-in for the MediaPortal media center application. The goal of the plug-in is to create a very focused and refined experience that requires minimal user interaction. The plug-in emphasizes usability and ease of use in managing a movie collection consisting of ripped DVDs, and movies reencoded in common video formats supported by MediaPortal.
12 stars 6 forks source link

Generate dynamic lists when entering the list rather than the category menu #1122

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enter the category menu
2.
3.

What is the expected output? What do you see instead?
Output is as expected but parsing multiple lists on 1000+ movie entries causes 
a delay. I would like it if the list is generated when entering it directly. 
For instance actors and directors lists take a long time to compile but maybe 
used infrequently. This way the delay would only occur on those occasions when 
the list is required rather than every time entering the plugin.

What version of Moving Pictures are you using? What version of MediaPortal? 1.3 
RC
What Skin? Titan

Please attach a screenshot and logs if possible. When submitting log files
please submit DEBUG logs. See here for details:
http://tinyurl.com/aj65su

Original issue reported on code.google.com by thebatf...@gmail.com on 12 Mar 2013 at 3:47

GoogleCodeExporter commented 8 years ago
It's done at the root node so it can cleanup categories that have no movies in 
it. There is certainly room for improvement though. A simple check at each node 
level to determine if there is atleast a single movie or a movie count would 
suffice.

Original comment by damien.haynes@gmail.com on 21 Jan 2014 at 6:01

GoogleCodeExporter commented 8 years ago
Would it not be possible to make it a setting, since I have so many movies it 
takes a while to refresh that category list. And I don't mind if some 
catergories are empty. Also since I have a lot of movies most categories are 
used.

Original comment by bernar...@gmail.com on 21 Jan 2014 at 6:42

GoogleCodeExporter commented 8 years ago
Maybe I am not understanding. Are you saying that if I define a category for 
'Actors', that if that category list resulted in 0 movies - the category would 
not appear for selection in the category list and that's why it's generating 
the lists when entering the category menu so it can do that removal?

Just there is a default category for 'Recently Added' I frequently enter this 
category and find 0 films as the date range is small - but it always appears as 
a menu item and is not cleaned up?

Original comment by thebatf...@gmail.com on 21 Jan 2014 at 4:25

GoogleCodeExporter commented 8 years ago
Yes, it should not appear if there is no movies in a dynamic category (but I 
believe it has to be 100% dynamic i.e. no custom filters).

If that is not working for you then I suggest you raise a seperate issue..it 
works for me, an easy one to test on is the 'Title' dynamic category as it 
creates filter nodes for each 'Letter'.

Original comment by damien.haynes@gmail.com on 21 Jan 2014 at 10:09

GoogleCodeExporter commented 8 years ago
I made some improvements to speed on Actors a couple builds back but saw that 
things could be improved even more (the thing I mentioned above would be very 
fast as its not a deep check).

Original comment by damien.haynes@gmail.com on 21 Jan 2014 at 10:10