Giter Site home page Giter Site logo

Comments (10)

crustymonkey avatar crustymonkey commented on July 17, 2024

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.

DelphDes avatar DelphDes commented on July 17, 2024

from py-sonic.

crustymonkey avatar crustymonkey commented on July 17, 2024

from py-sonic.

DelphDes avatar DelphDes commented on July 17, 2024

from py-sonic.

crustymonkey avatar crustymonkey commented on July 17, 2024

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.

DelphDes avatar DelphDes commented on July 17, 2024

from py-sonic.

crustymonkey avatar crustymonkey commented on July 17, 2024

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.

Sorixelle avatar Sorixelle commented on July 17, 2024

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.

crustymonkey avatar crustymonkey commented on July 17, 2024

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.

DelphDes avatar DelphDes commented on July 17, 2024

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.