Giter VIP home page Giter VIP logo

Comments (7)

mental32 avatar mental32 commented on August 23, 2024

Thanks for reporting this :)

  • What version of spotify.py are you running?
    • the identifier can be found as the attribute spotify.__version__
  • Are you using the sync module or the pure async interface?

from spotify.py.

ymyke avatar ymyke commented on August 23, 2024

Got it. According to https://spotifypy.readthedocs.io/en/latest/quickstart.html:
"Encode spaces with the hex code %20 or +."

So this works as expected:

client.search("Adventure%20Club", types=["artist"])

{'artists': [<spotify.Artist: "Adventure Club">,
  <spotify.Artist: "Adventure Club">,
  <spotify.Artist: "Ragtime Adventure Club">,
  <spotify.Artist: "Super Adventure Club">,
  <spotify.Artist: "Adventure Bathtub Club">,
  <spotify.Artist: "Super Adventure Club">,
  <spotify.Artist: "Admiral Spooks Aerial Adventure Club">]}

So my original issue is resolved.

Still, I'd suggest to mention this -- as well as the link to the readthedocs -- more prominently. The projects readme has very minimal info only and does not link to the readthedocs.

from spotify.py.

ymyke avatar ymyke commented on August 23, 2024

(I'm using v0.4.8, async.)

from spotify.py.

ymyke avatar ymyke commented on August 23, 2024

Adding to the above, encoding space with + did not work:

client.search("Adventure+Club", types=["artist"])

{'artists': []}

from spotify.py.

mental32 avatar mental32 commented on August 23, 2024

Got it. According to https://spotifypy.readthedocs.io/en/latest/quickstart.html:
"Encode spaces with the hex code %20 or +."

The library handles encoding the search query for you.

Still, I'd suggest to mention this -- as well as the link to the readthedocs -- more prominently. The projects readme has very minimal info only and does not link to the readthedocs.

I agree the readme is a little bare, I'll work on making it more informative.

I am unable to reproduce the issue testing with sync on v0.5.0

In [1]: from spotify import sync, __version__                                                                                                                                                                                                                                  

In [2]: print(__version__)                                                                                                                                                                                                                                                     
0.5.0

In [3]: client = sync.Client('foo', 'bar')

In [4]: client.search('Adventure Club', types=['artist'])        
                                                                                                       
Out[4]: 
{'artists': [<spotify.Artist: 'Adventure Club'>,
  <spotify.Artist: 'Adventure Club'>,
  <spotify.Artist: 'Ragtime Adventure Club'>,
  <spotify.Artist: 'Super Adventure Club'>,
  <spotify.Artist: 'Adventure Bathtub Club'>,
  <spotify.Artist: 'Super Adventure Club'>,
  <spotify.Artist: 'Admiral Spooks Aerial Adventure Club'>]}

I suggest updating the library to resolve your issue.

from spotify.py.

ymyke avatar ymyke commented on August 23, 2024

Yep, that did the job. Thanks for helping!

from spotify.py.

mental32 avatar mental32 commented on August 23, 2024

No problem!

from spotify.py.

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.