Giter Club home page Giter Club logo

Comments (1)

robinfriedli avatar robinfriedli commented on May 27, 2024

I presume you're talking about Spotify to YouTube redirection? In that case see #137 and #216. Define "often", I don't think I can recall a single instance where it played a completely wrong track within the last few months but it does depend on the popularity of the artists you're listening to, although even with tracks that only have a few thousand views I haven't really noticed any serious issues since the last time I improved the algorithm back in September. What is fairly common is that a different version of the track is found (live version, different mix / cover etc.) but in my experience I'd say about 90% of results are solid.

No it does not ignore the artist, see https://github.com/robinfriedli/botify/blob/master/src/main/java/net/robinfriedli/botify/audio/youtube/YouTubeService.java#L781. In fact it tries several different combinations of applying the artists to the track name (no artists, only first artist before track name, only first artist after track name, all artists before track name, all artists after track name, fist artist before track name + remaining artists after track name) and picks the lowest levenshtein distance. It does not pick a random track, it picks the one with the highest score based on levenshtein distance, whether or not any artists appear in the channel title, the popularity and the index within the search result list.

If this really is just about searching tracks on Spotify, this doesn't really have anything to do with the bot, when entering play foo bar, "foo bar" is simply passed to the Spotify API as query string, see their API documentation. If you want to filter by artist simply write play foo artist:bar. This is mentioned by the help page for the play command and any command where it applies.

from aiode.

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.