Git Product home page Git Product logo

Comments (4)

s01ipsist avatar s01ipsist commented on May 28, 2024

This is to do with the code in master/src/js/collections/xbmc.js

arg3: {"sort": {"method": "dateadded", "order": "descending"}}, // doesn't appear to work? maybe lost in sorting elsewhere

This parameter should not have the 'sort' key, it should just be
``arg3: {"method": "track"},`

The two other parameters do not use the similar keys (params and filters). I noticed this by looking at https://github.com/xbmc/xbmc/blob/2228e7f209fbf244bb0f9da970903016395043f2/addons/webinterface.default/js/MediaLibrary.js

and have confirmed this working locally with

curl -v -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"AudioLibrary.GetSongs","id":"1412339052641","params":[["title","artist","albumartist","genre","year","rating","album","track","duration","playcount","fanart","thumbnail","file","albumid","lastplayed","disc","genreid","artistid","displayartist","albumartistid"],{"start":0,"end":500},{"method":"track"},{"albumid":60}]}' http://192.168.1.99:8080/jsonrpc

I'd do a PR but I haven't even got close to getting my head around the whole project and what else is using this code.

from chorus.

paulvt avatar paulvt commented on May 28, 2024

Is this related to the fact that if you use the Soundcloud plugin and click through to some channel, instead of getting the same listing as on the website, you get the first 40 items alphabetically sorted (and there is no way to get to recent stuff)?

from chorus.

s01ipsist avatar s01ipsist commented on May 28, 2024

@paulvt I don't think so. This issue is a bug in the Chorus implementation of the XBMC JSON-RPC API, in regard to one particular function call, getting the album song list with results with "no" sorting. Your issue sounds like it's with the Soundcloud plugin itself which doesn't appear to have been updated in many years.

from chorus.

paulvt avatar paulvt commented on May 28, 2024

I've just used the Soundcloud plugin using the normal interface on my media PC, there the listings are the same as on soundcloud (i.e. by descending order of publication date).

from chorus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.