(2020-04-28, 18:52)roidy Wrote: (2020-04-28, 18:43)mardukL Wrote: code:
ActivateWindow(music,musicdb://albums/?xsp=%7B%22order%22%3A%7B%22direction%22%3A%22ascending%22%2C%22ignorefolders%22%3A0%2C%22method%22%3A%22sortyear%22%7D%2C%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22albumartist%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22faith%22%5D%7D%5D%7D%2C%22type%22%3A%22albums%22%7D,return)
Replacing "faith" in your example with ListItem.Artist does indeed return the correct albums, however they are still sorted by title and not year And as you said this method will likely break if the Artist name contains a character that needs escaping. It also fails to list albums where the artist only appears on one track like compilations and soundtracks.
than the only way i can think of is using an additional onckilick action
like
container.setsortmethod()
some posibilitys
txt:
video)files : name, size , date , file
(video)addons : name , lastused
movies: title , year , rating , userrating , mpaa , duration , dateadded , playcount
actors/ directors: name , appearences
sets : name
tvshow : title , episode , lastplayed , dateadded , year , userrating
episode: episode , rating , userrating , mpaa , production code=status?, date , playcount , name
artist: artist , dateadded
album : album , artist , artistthenyear / , year , dateadded , playcount , lastplayed , rating , userrating
song : track , title , album , artist , artistthenyear , name , duration , rating , userrating , year , dateadded , playcount , lastplayed
source
https://kodi.wiki/view/List_of_built-in_...rt_methods
txt:
https://github.com/xbmc/xbmc/blob/master...#L529-L577
1 Name
2 Date
3 Size
4 File
5 Path
6 DriveType
7 Title
8 TrackNumber
9 Time
10 Artist
11 ArtistThenYear
12 Album
13 AlbumType
14 Genre
15 Country
16 Year
17 Rating
18 UserRating
19 Votes
20 Top250
21 ProgramCount
22 PlaylistOrder
23 EpisodeNumber
24 Season
25 NumberOfEpisodes
26 NumberOfWatchedEpisodes
27 TvShowStatus
28 TvShowTitle
29 SortTitle
30 ProductionCode
31 MPAA
32 VideoResolution
33 VideoCodec
34 VideoAspectRatio
35 AudioChannels
36 AudioCodec
37 AudioLanguage
38 SubtitleLanguage
39 Studio
40 DateAdded
41 LastPlayed
42 Playcount
43 Listeners
44 Bitrate
45 Random
46 Channel
47 ChannelNumber
48 DateTaken
49 Relevance
50 InstallDate
51 LastUpdated
52 LastUsed