chorus2
chorus2 copied to clipboard
Recently Played Albums chokes on unicode
The "Recently played albums" overview on the main Music page is full of stuff I haven't listened to recently. I don't think it's a coincidence that all of the albums begin with unicode characters:
Hey @kopf
Can you check the raw results that get returned from the API via the inspector (network tab > XHR) - No sorting happens post that request so my feeling is, this is the order that Kodi is returning
Click 'preview' to see the response from the API
Request: A POST against http://192.168.92.25:10000/jsonrpc?Collection
Request payload:
{"jsonrpc":"2.0","method":"AudioLibrary.GetAlbums","id":"1483989769856","params":{"properties":["thumbnail","playcount","artistid","artist","genre","albumlabel","year","dateadded","style","fanart"],"limits":{"start":0,"end":14},"sort":{"method":"lastplayed","order":"descending"}}}
Response:
{"id":"1483989769856","jsonrpc":"2.0","result":{"albums":[{"albumid":23653,"albumlabel":"","artist":["䨀䨀㜀"],"artistid":[19848],"dateadded":"2011-03-16 01:57:17","fanart":"","genre":["Rock","Alternative Rock","Indie Rock"],"label":"䨀䨀㜀","playcount":0,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fJJ72%2fJJ72%2fcover.jpg/","year":2000},{"albumid":25080,"albumlabel":"Sony Records International","artist":["David Bowie"],"artistid":[17686],"dateadded":"2016-01-11 22:10:38","fanart":"image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2f5441c29d-3602-4898-b1a1-b77fa23b8e50%2fartistbackground%2fbowie-david-51214e77eed12.jpg/","genre":["Jazz","Rock"],"label":"★","playcount":1,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fDavid%20Bowie%2f%e2%98%85%2fcover.jpg/","year":2016},{"albumid":18827,"albumlabel":"","artist":["Justice"],"artistid":[17588],"dateadded":"2009-09-04 20:25:22","fanart":"","genre":["Electronic","House","Techno","Electro"],"label":"†","playcount":1,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fJustice%2f%e2%80%a0%2ffolder.jpg/","year":2007},{"albumid":23674,"albumlabel":"[no label]","artist":["Chelsea Wolfe"],"artistid":[17279],"dateadded":"2011-03-26 20:22:15","fanart":"image://http%3a%2f%2fwww.theaudiodb.com%2fimages%2fmedia%2fartist%2ffanart%2frwrstx1384734853.jpg/","genre":["Folk","World","Rock","Noise","Experimental","Folk","Industrial"],"label":"Ἀποκάλυψις","playcount":0,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fChelsea%20Wolfe%2f%e1%bc%88%cf%80%ce%bf%ce%ba%ce%ac%ce%bb%cf%85%cf%88%ce%b9%cf%82%2fcover.jpg/","year":2011},{"albumid":25073,"albumlabel":"","artist":["Khruangbin"],"artistid":[30821],"dateadded":"2015-11-04 18:59:16","fanart":"","genre":["Rock","Funk / Soul","Folk","World","?"],"label":"เครื่องบิน","playcount":2,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fKhruangbin%2f%e0%b9%80%e0%b8%84%e0%b8%a3%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b8%9a%e0%b8%b4%e0%b8%99%2fcover.jpg/","year":2011},{"albumid":23616,"albumlabel":"","artist":["Clint Mansell"],"artistid":[17386],"dateadded":"2011-03-15 23:53:13","fanart":"image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2ffc015f11-be38-4b7d-b3e8-5d809242ecec%2fartistbackground%2fmansell-clint-50676af6383ea.jpg/","genre":["Electronic","Stage & Screen","Breakbeat","Soundtrack","Acid","Drum n Bass","Electro"],"label":"π - Music For The Motion Picture","playcount":0,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fClint%20Mansell%2f%cf%80%20-%20Music%20For%20The%20Motion%20Picture%2fCover.jpg/","year":1998},{"albumid":17066,"albumlabel":"Line","artist":["Asmus Tietchens"],"artistid":[16392],"dateadded":"2009-09-04 18:33:29","fanart":"image://http%3a%2f%2fwww.theaudiodb.com%2fimages%2fmedia%2fartist%2ffanart%2frwwvwv1384789581.jpg/","genre":["Electronic","Abstract","Experimental","Ambient"],"label":"η-Menge","playcount":0,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fAsmus%20Tietchens%2f%ce%b7-Menge%2ffolder.jpg/","year":2008},{"albumid":22418,"albumlabel":"EastWest Records America","artist":["Massive Töne"],"artistid":[20616],"dateadded":"2010-02-03 01:20:39","fanart":"image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2f1586106b-e8e6-422d-925f-74ff9504d546%2fartistbackground%2fmassive-tne-4ed266dc177af.jpg/","genre":["German Hip-Hop","Pop Rap"],"label":"Überfall","playcount":0,"style":["Urban/R&B"],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fMassive%20T%c3%b6ne%2f%c3%9cberfall%2ffolder.jpg/","year":1999},{"albumid":21713,"albumlabel":"Southern Lord","artist":["Sunn O)))"],"artistid":[22743],"dateadded":"2009-09-29 02:13:32","fanart":"image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2f1d3da898-4fb4-4445-b704-cd7315e01789%2fartistbackground%2fsunn-o-4fd999632dc52.jpg/","genre":["Electronic","Rock","Noise","Doom Metal","Ambient"],"label":"ØØ Void","playcount":0,"style":["Rock/Pop"],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fSunn%20O)))%2f00%20Void%2fcover.jpg/","year":2000},{"albumid":21106,"albumlabel":"","artist":["Various artists"],"artistid":[511],"dateadded":"2009-09-04 22:29:26","fanart":"image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2f89ad4ac3-39f7-470e-963a-56509c546377%2fartistbackground%2fvarious-artists-5075a5c07a2ac.jpg/","genre":["Funk / Soul","Rhythm & Blues","Soul"],"label":"Éthiopiques 13: Ethiopian Groove, The Golden Seventies","playcount":0,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fVarious%20Artists%2f%c3%89thiopiques%2013-%20Ethiopian%20Groove%2c%20The%20Golden%20Seventies%2ffolder.jpg/","year":1994},{"albumid":21108,"albumlabel":"Buda Musique","artist":["Various artists"],"artistid":[511],"dateadded":"2009-09-04 22:29:33","fanart":"image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2f89ad4ac3-39f7-470e-963a-56509c546377%2fartistbackground%2fvarious-artists-5075a5c07a2ac.jpg/","genre":["Funk / Soul","Jazz"],"label":"Éthiopiques 8: Swinging Addis","playcount":0,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fVarious%20Artists%2f%c3%89thiopiques%208-%20Swinging%20Addis%2ffolder.jpg/","year":1999},{"albumid":21107,"albumlabel":"Buda Musique","artist":["Various artists"],"artistid":[511],"dateadded":"2009-09-04 22:29:29","fanart":"image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2f89ad4ac3-39f7-470e-963a-56509c546377%2fartistbackground%2fvarious-artists-5075a5c07a2ac.jpg/","genre":["Folk","World","Folk"],"label":"Éthiopiques 5: Tigrigna Music 1970-1975","playcount":0,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fVarious%20Artists%2f%c3%89thiopiques%205-%20Tigrigna%20Music%201970-1975%2ffolder.jpg/","year":1999},{"albumid":20932,"albumlabel":"Buda Musique","artist":["DJ Hype"],"artistid":[16745],"dateadded":"2009-09-04 22:11:50","fanart":"image://http%3a%2f%2fwww.theaudiodb.com%2fimages%2fmedia%2fartist%2ffanart%2furusyp1361028737.jpg/","genre":["Funk / Soul","Jazz","Rhythm & Blues","Jazz-Funk"],"label":"Éthiopiques 3: Golden Years Of Modern Ethiopian Music 1969-1975","playcount":0,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fVarious%20Artists%2fEthiopiques%203-%20Golden%20Years%20of%20Modern%20Ethiopian%20Music%2c%201969-1975%2fcover.jpg/","year":2000},{"albumid":21105,"albumlabel":"","artist":["Various artists"],"artistid":[511],"dateadded":"2009-09-04 22:29:22","fanart":"image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2f89ad4ac3-39f7-470e-963a-56509c546377%2fartistbackground%2fvarious-artists-5075a5c07a2ac.jpg/","genre":["Folk","World","Funk","Soul","Jazz"],"label":"Éthiopiques 1: Golden Years Of Modern Ethiopian Music 1969-1975","playcount":0,"style":[],"thumbnail":"image://smb%3a%2f%2f192.168.92.20%2fMP3s%2fVarious%20Artists%2f%c3%89thiopiques%201-%20Golden%20Years%20Of%20Modern%20Ethiopian%20Music%201969-1975%2ffolder.jpg/","year":0}],"limits":{"end":14,"start":0,"total":8354}}}
If I can provide you with anything else, just let me know!
So the order of items in the response from Kodi (looking at the label for each) is incorrect. The response matches the order Chorus is displaying. Does the same thing happen via the UI?
Nope, the UI shows the correct "recently listened":
added to my ever growing list of API bugs :)