Giter Site home page Giter Site logo

Comments (3)

crustymonkey avatar crustymonkey commented on August 15, 2024

After taking a look at this again, I remember what the issue is here. The subsonic API version 1.8.0 introduced a number of new methods that operate on the ID3 tags vs. the old way of a simple directory structure. If you used the id number with the getMusicDirectory() method, you should end up getting the results you want. So, this would work:

c = Connection('https://music.example.com' , 'user' , 'password')
s = c.search2('tribe called quest' , 1 , 0 , 0 , 0 , 0)
json.dumps(c.getMusicDirectory(ret['searchResult2']['artist']['id']) , 
    sort_keys=True , indent=2)

I'm currently updating the documentation at https://stuffivelearned.org/doku.php?id=programming:python:py-sonic with all the 1.8.0 API version items, but until I'm done a pydoc libsonic.connection will show you basically the same thing. Anything that has a reference to "using ID3 tags" will not be compatible with the older methods of using the simple directory structure. I'm going to make a note of that on the aforementioned documentation page as well as even I had completely forgotten about that.

To use the getArtist(), getAlbum(), etc. You would probably want to start with a getArtists() call and manually search for what you want to display.

from py-sonic.

crustymonkey avatar crustymonkey commented on August 15, 2024

Oh, I should have also mentioned that search3() will return results by ID3 tag.

from py-sonic.

crustymonkey avatar crustymonkey commented on August 15, 2024

I've update the documentation at https://stuffivelearned.org/doku.php?id=programming:python:py-sonic with the API 1.8.0 docs as well as a specific warning about mixing methods: https://stuffivelearned.org/doku.php?id=programming:python:py-sonic

from py-sonic.

Related Issues (18)

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.