Giter Site home page Giter Site logo

Comments (11)

aome510 avatar aome510 commented on June 11, 2024 1

Making sure to delete the Arch package and then I ran it form ~/.cargo/bin.

cargo build doesn't produce the binary in ~/.cargo/bin though, it should be inside the repo's target/debug

from spotify-player.

aome510 avatar aome510 commented on June 11, 2024

I think the issue may have to do with the fact that the application doesn't call the spotify api each time

This is intended to speed up the command's latency. The player should be able to infer its playback state most of the time. However, if you control the player's playback using external tool, e.g from other Spotify client, the state may not be up-to-date. I'm well aware of this drawback and will be working on a patch

from spotify-player.

DOD-101 avatar DOD-101 commented on June 11, 2024

Would it be possible to - perhaps simply in the interim - implement a flag / setting that tells it to always call the API?

from spotify-player.

aome510 avatar aome510 commented on June 11, 2024

yes, but it feels more like a hack than a proper fix

from spotify-player.

aome510 avatar aome510 commented on June 11, 2024

@DOD-101 should be fixed with #418. Can you try the latest main?

from spotify-player.

DOD-101 avatar DOD-101 commented on June 11, 2024

Sure thing.

from spotify-player.

DOD-101 avatar DOD-101 commented on June 11, 2024

Alrighty, so after a little bit of testing, I have found the following:

  1. If the song changes by itself, it now works as intended.
  2. If however one changes the song manually in any way it will take 1.5 to 2 min to update.

So it's kinda fixed, but at the same time it probably shouldn't take that long to "recognize" the change.

from spotify-player.

aome510 avatar aome510 commented on June 11, 2024

How did you test the change? WDYM by "one changes the song manually in any way"?

from spotify-player.

DOD-101 avatar DOD-101 commented on June 11, 2024

How did you test the change?

I cloned the git repo and then cargo build it with only the daemon feature flag added.
Making sure to delete the Arch package and then I ran it form ~/.cargo/bin.
Then I followed the steps outlined in the original post.

WDYM by "one changes the song manually in any way"?

I meant that if you either skip to the next song (via the shortcut) or by simply selecting some other song in the tui.
Should have been more clear here: This only applies to changing the song in another client. If one changes the song via the "spotify_player playback next" command it will update almost instantly, as if it just finished playing.

from spotify-player.

DOD-101 avatar DOD-101 commented on June 11, 2024

I'm sorry.
I accidentally ran cargo install instead of cargo build (not familiar with rust). My bad.

It works like a charm now. Thanks. Keep up the great work.

from spotify-player.

aome510 avatar aome510 commented on June 11, 2024

Great! Thanks for confirming

from spotify-player.

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.