Git Product home page Git Product logo

Comments (5)

x528491x avatar x528491x commented on September 27, 2024

The audiofiles are available for the alternative track listed in the response.

Is this a general thing for Spotify - having to query alternative tracks?

It must also be noted that when the alternative track is queried, it does not list the original queried track as an alternative.

So what must be done in case Spotify had not grouped alternative tracks? How does one get the audiofiles then?

from librespot.

kingosticks avatar kingosticks commented on September 27, 2024

They will always provide alternate tracks if required. Why would you need a way to access the "original" track that you can't play?

Have you read https://developer.spotify.com/documentation/web-api/concepts/track-relinking ?

The general Spotify principles explained in their officla docs are often relevant to working with librespot.

from librespot.

x528491x avatar x528491x commented on September 27, 2024

I'll close this issue, but "always provide alternative tracks if required".

Does that mean that if the track is found to be playable, the alternative track would automatically be empty,

Or does the developer need to check if the track is unplayable and then loop over the alternative tracks listed if any.

from librespot.

kingosticks avatar kingosticks commented on September 27, 2024

Does that mean that if the track is found to be playable, the alternative track would automatically be empty,

I don't remember. But I recall they provide some field to describe the availability.

Look how this is done at

async fn find_available_alternative(&self, audio_item: AudioItem) -> Option<AudioItem> {
?

from librespot.

x528491x avatar x528491x commented on September 27, 2024

Does that mean that if the track is found to be playable, the alternative track would automatically be empty,

I don't remember. But I recall they provide some field to describe the availability.

Look how this is done at

async fn find_available_alternative(&self, audio_item: AudioItem) -> Option<AudioItem> {
?

Thanks. That helped. Closing now.

from librespot.

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.