Comments (3)
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.
Oh, I should have also mentioned that search3() will return results by ID3 tag.
from py-sonic.
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)
- Failure to install via pip - No module named 'connection' HOT 5
- Inconsistent use of seconds and milliseconds HOT 4
- pip install crashes HOT 1
- Unable to connect to subsonic install behind nginx proxy/redirect HOT 1
- Fallback to pre-1.13.0 authentication when not supported HOT 13
- 'size' arguments doesn't work in getAlbumList2() HOT 5
- Have library handle server api version mismatch
- res.info().getheader('Content-Type') gives error "'HTTPMessage' object has no attribute 'getheader'" HOT 2
- req: merge in python3 support + new release HOT 3
- Pip install fails HOT 1
- Compatibility with Airsonic HOT 3
- getSong() returns list instead of dict HOT 1
- Issues returning anything from Airsonic server HOT 10
- has_data does not exist HOT 1
- Scrobble does not support 'time' HOT 3
- Misleading parameter baseurl HOT 3
- Support for registered subsonic addresses HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-sonic.