Posts: 17,631
Joined: Aug 2007
Reputation:
605
Hitcher
Team-Kodi Member
Posts: 17,631
I'm using <content target="video">videodb://movies/titles/</content> to fill a list but for some reason the order my movies are displayed in isn't the same as when you enter them using the same path <onclick>ActivateWindow(Videos,videodb://movies/titles/,return)</onclick>. It seems to list my kids movies first and then my main movies after because they were added separately.
Is this expected behaviour? If so, is there any way to order the list?
Thanks.
Posts: 768
Joined: Sep 2012
Reputation:
30
2014-11-14, 14:08
(This post was last modified: 2014-11-14, 14:10 by fastcolors.)
i think it is expected behavior or at least "not controlled" behavior.
first thing that comes to mind is create a playlist of every movie sorted by title (sort title)
and then use that to populate the content.
just a workaround though...
edit : i use this a lot, make playlist, move it to skin folder and fill content with special://skin/resources/foo.xsp
maybe i'm saying something obvious..but just thought i'll post it.
cheers.
BTW: nice work on ftv
Did I Help? Add to my reputation⬇
Posts: 17,631
Joined: Aug 2007
Reputation:
605
Hitcher
Team-Kodi Member
Posts: 17,631
Yeah, I've actually been testing nodes vs library vs playlists and library is the quickest way to fill a list but unfortunately it's not ordered correctly.
From the tests -
library > nodes > playlists
so I'd probably have to go with nodes.
Thanks.
Posts: 768
Joined: Sep 2012
Reputation:
30
what do you mean by nodes?
Did I Help? Add to my reputation⬇
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Yeah this is "expected" behaviour from a core code point of view. Using the same path as in an ActivateWindow() call does not mean that it goes through the same logic. It simply retrieves the same list of items but the ActivateWindow() call also routes those items through the media window logic which has additional info for every path (either default values or whatever the user has defined last time it was looking at that list) and is therefore capable of sorting it.
Maybe the <content> tag needs to be expanded to support sorting.
@Hitcher: Depending on the node definitions they are either "library" or "playlist" so in some cases they should be more or less identical to library paths and in others they should be more or less identical to playlists.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 17,631
Joined: Aug 2007
Reputation:
605
Hitcher
Team-Kodi Member
Posts: 17,631
Video showing the loading speeds (refreshed at the end to show it again) and also the loading of thumbs when entering the video library.
As you can see there's some delay in loading thumbs when entering the video library directly on my Windows PC but there's actually no delay on my Fire TV.
Posts: 17,631
Joined: Aug 2007
Reputation:
605
Hitcher
Team-Kodi Member
Posts: 17,631
Yes, smart playlists.
Which ever way I set the order in the playlist it's the opposite when used as content in a list.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
2014-12-06, 10:20
(This post was last modified: 2014-12-06, 10:29 by Montellese.)
Okay I think I found the problem for the reverse sorting. Could you verify for me that this only happens when sorting by playcount or rating (for videos)?
EDIT: Wow this sorting stuff is one big mess. Because we only keep one sort order for a view there's some logic that reverts the sort order for some sort methods (like playcount and rating) but this does not take into account that for smartplaylists we have already set the sort method and order exactly the way we want them.
This also leads to very odd behaviour in general i.e. when you e.g. sort by date added and change sorting direction to descending and then you move to sort by title the sort order will also be descending. But if you move to sort by rating the sort order will be ascending. Not sure if it's intuitive that the sort order stays the same between different sort methods or if it should be reset to the next sort methods default when switching sort methods (but remember those default when cycling through the sort methods and coming back to one the user already used before).
EDIT2: Just realized that your smartplaylist is working perfectly fine for me when using it as a home menu widget. The sorting is only screwed up (as described above) when I'm looking at the smartplaylist in the video library.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.