Simple filtering

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
baza_dwa Offline
Posts: 97
Joined: Feb 2017
Reputation: 0
Post: #1
Say we have some movies displayed in MyVideoNav. If we want to filter by genre, we have to open screen menu, then select genre filter, dialog opens, then select genre, then accept.

I just want to have a button on MyVideoNav (that shows a custom Library Node), that clicked will show only Horror movies. How to do that? (Not my ultimate goal, but solves the problem).

I have two bad ideas for that: reopen MyVideoNav sourced from my addon and, even worse, automatically manipulate all these windows/controls hiding them in process.

How to do that in a more civilised way?
find quote
smitchell6879 Offline
Posting Freak
Posts: 816
Joined: Jan 2016
Reputation: 20
Post: #2
Will keep a eye on this thread ..
I have been askeing basically the same question and have yet to get a simple solution. At least u have a way of doing it in a add-on I haven't even thought to try figure out how to do that.

Windows 10/MySQL/Xiaomi Mi Box
Madnox Holiday Mod
find quote
jurialmunkey Offline
Skilled Skinner
Posts: 2,644
Joined: Feb 2013
Reputation: 231
Post: #3
I'm wondering if a number of different smart playlists might be the answer (each for different genre). It's a little clunky and static rather than dynamic, but at least for some standard genres it might achieve what you want?

e.g. for horror make a textfile genre-horror.xsp with
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>Horror Movies</name>
    <rule field="genre" operator="is">

You can put the smart playlists in a folder in your skin under extras/playlists/
Then use special://skin/extras/playlists/genre-horror.xsp to reference them

find quote
baza_dwa Offline
Posts: 97
Joined: Feb 2017
Reputation: 0
Post: #4
8 collections (I use my library nodes only, never all movies) x 6 values of the first criterion x 6 values of the second criterion x 3 values of the third criterion = 846 static files just for movies.

Nope. Nope. Nope.

I'll be extracting straight from database using filter values as SQL parameters and build by own dynamic list on the fly.

Thanks for saving my time on failed experimentation.
find quote