Comments (10)
Ok, first, I can't repro this against the latest Subsonic, but I'm not surprised by that.
In [4]: c.getRandomSongs(size=2)
Out[4]:
{'status': 'ok',
'version': '1.16.1',
'randomSongs': {'song': [{'id': '9285',
'parent': '9274',
'isDir': False,
'title': 'Mighty Love',
'album': 'Affection',
'artist': 'Lisa Stansfield',
'track': 2,
'genre': 'General R&B',
'coverArt': '9274',
'size': 7145759,
'contentType': 'audio/mpeg',
'suffix': 'mp3',
'duration': 312,
'bitRate': 182,
'path': 'Lisa Stansfield/Affection/Lisa Stansfield - Affection - 02 - Mighty Love.mp3',
'playCount': 0,
'created': '2005-01-17T03:46:36.000Z',
'albumId': '608',
'artistId': '292',
'type': 'music'},
{'id': '65591',
'parent': '65339',
'isDir': False,
'title': 'Wish',
'album': 'Slaughter in the Air',
'artist': 'Nine Inch Nails',
'genre': 'Industrial',
'coverArt': '65339',
'size': 3494681,
'contentType': 'audio/mpeg',
'suffix': 'mp3',
'duration': 218,
'bitRate': 128,
'path': 'Nine Inch Nails/Slaughter In The Air (Disc 1)/Nine Inch Nails_Slaughter In The Air (Disc 1)_Wish.mp3',
'playCount': 0,
'created': '2007-12-06T08:57:22.000Z',
'albumId': '4986',
'artistId': '2181',
'type': 'music'}]}}
I know people have had trouble with Airsonic compatibility and a fair amount of time that's due to API version incompatibility. Have you tried manually setting the apiVersion
argument of the Connection
class to match the API version that your Airsonic install supports? That generally fixes the issue for others. What version of Airsonic are you running, btw?
from py-sonic.
from py-sonic.
from py-sonic.
from py-sonic.
Ok, that eliminates that suspicion. If you're amenable to it, we can drastically speed up debugging if you setup a temporary account on your Airsonic server so I can connect and step through with a debugger. It would save me the time and effort of having to stand up Airsonic to test. If you're ok with that, you can send a user/pass to [email protected] with the info.
from py-sonic.
from py-sonic.
Ahhh, yes, I vaguely remember legacyAuth
coming up with Airsonic in the past. This also reminds me that I should update the wiki with a bunch Airsonic specific info for others. Thanks for closing the loop on this :-)
from py-sonic.
I've run into the same issue, but setting legacyAuth=True
doesn't seem to have resolved it. Running on Python 3.8.6, attempting to connect to an Airsonic 10.6.2 server. Any ideas what might be causing this?
EDIT: Some debugging later and it seems to be an SSL issue. This line is throwing an exception, and if I log it, it says that the SSL handshake failed. Maybe there's an SSL misconfiguration on the Airsonic side? I'll look into it further.
EDIT 2: I've found the issue, and I've opened a PR that fixes it (#28).
from py-sonic.
Thanks for digging into this @Sorixelle. I've merged in your pull request and pushed a new version (0.7.8) with your changes.
from 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
- Search artists and albums returns IDs that cannot be used for getArtist(), and getAlbum(). HOT 3
- 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
- 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.