aome510 / spotify-player

A Spotify player in the terminal with full feature parity
MIT License
3.39k stars 149 forks source link

I have a warning when I try to install package from cargo. #368

Closed alenba2 closed 7 months ago

alenba2 commented 7 months ago

So when I try to install a cargo package like image support, at the end of the download, I get this message.

240211_20h15m27s_screenshot

I am new to using rust, so I am not sure what to do with that message, so I tried to make a path to that cargo inside of spotify-player. However when I tried to start the program, I don't see any changes. I have used the example document the files has provided.

KUHLwasStolen commented 7 months ago

You basically already found the right thing to do, but you added it in the wrong place. add the line export PATH="$HOME/.cargo/bin:$PATH" at the very end of ~/.bashrc Save and reboot and now you should be able to type spotify_player in every directory.

This is what is meant with PATH https://en.wikipedia.org/wiki/PATH_(variable)

apprehensions commented 7 months ago

The warning tells you exactly what to do, which is already done for you. This does not look like a bug for spotify-player..

LucasFA commented 7 months ago

The rest of the post has been addressed, I think, but what do you mean by:

image support [...]. However when I tried to start the program, I don't see any changes.

I understand you are compiling with the image feature but still don't see a proper image in the player when running it? Do you see the image displayed as made of blocks? Also, what terminal are you on? Some have support for kitty's or iTerm's API (like, I think, wezterm) but I think Alacritty does not have support for neither nor for sixel

alenba2 commented 7 months ago

I use Kitty as my terminal, so I don't think that would be the issue. I'm still struggling with the Path though I think.

The current spotify_player 's version is 0.16.0

The rest of the post has been addressed, I think, but what do you mean by:

image support [...]. However when I tried to start the program, I don't see any changes.

I understand you are compiling with the image feature but still don't see a proper image in the player when running it? Do you see the image displayed as made of blocks? Also, what terminal are you on? Some have support for kitty's or iTerm's API (like, I think, wezterm) but I think Alacritty does not have support for neither nor for sixel

LucasFA commented 7 months ago

Ah, no the PATH variable is not a spotify-player thing, it's a system thing. It tells your shell where to look for executables. Before you read the rest of my comment, doesn't running spotify_player in your terminal open it up? If it does you don't need to do anything from the rest of this comment, and should delete the PATH line in the configuration file above. You would be set to go.

If that is not the case and there is some error about spotify_player not found then you can worry about your PATH variable:

You can set it in several files, depending on your preferences. Some options are, but are not limited to, ` ~/.bashrc`, `~/.profile`, `/etc/profile`. I personally currently put them all in `~/.profile`. HOWEVER, you don't want to override your entire PATH variable with `/.../.cargo/bin`, just add it. From the [arch wiki article](https://wiki.archlinux.org/title/environment_variables), try`export PATH="${PATH}:/the/path/to/add"`. What that does it take the current PATH variable and append `:/the/path/to/add` at the end of it
alenba2 commented 7 months ago

Ah, no the PATH variable is not a spotify-player thing, it's a system thing. It tells your shell where to look for executables. Before you read the rest of my comment, doesn't running spotify_player in your terminal open it up? If it does you don't need to do anything from the rest of this comment, and should delete the PATH line in the configuration file above. You would be set to go.

If that is not the case and there is some error about spotify_player not found then you can worry about your PATH variable: You can set it in several files, depending on your preferences. Some options are, but are not limited to, ~/.bashrc, ~/.profile, /etc/profile. I personally currently put them all in ~/.profile.

HOWEVER, you don't want to override your entire PATH variable with /.../.cargo/bin, just add it. From the arch wiki article, tryexport PATH="${PATH}:/the/path/to/add". What that does it take the current PATH variable and append :/the/path/to/add at the end of it

Ah ok, yeah it does run when I put spotify_player in the terminal. However, I don't see the image at all. I also installed the notify settings as well, but that also doesn't seem to work.

aome510 commented 7 months ago

which command did u use to install spotify_player? To install with image support, it should be cargo install spotify_player --features image.

alenba2 commented 7 months ago

which command did u use to install spotify_player? To install with image support, it should be cargo install spotify_player --features image.

Yep, I installed that command that was based on the Readme file. Does the playback_format need an image variable inside of it?

aome510 commented 7 months ago

Weird... Can you share a screenshot of how the app is looking when running now? In addition to that, any logs in .cache/spotify_player will also be helpful.

Does the playback_format need an image variable inside of it?

No.

alenba2 commented 7 months ago

240212_15h37m13s_screenshot

This is what it currently looks like.

I do have a bunch of logs though.

2024-02-12T23:32:35.970928Z INFO spotify_player::state::data: Loading Playlists data from /home/allenb/.cache/spotify-player/Playlists_cache.json... 2024-02-12T23:32:35.971834Z INFO spotify_player::state::data: Successfully loaded Playlists data! 2024-02-12T23:32:35.971855Z INFO spotify_player::state::data: Loading FollowedArtists data from /home/allenb/.cache/spotify-player/FollowedArtists_cache.json... 2024-02-12T23:32:35.971876Z INFO spotify_player::state::data: Successfully loaded FollowedArtists data! 2024-02-12T23:32:35.971885Z INFO spotify_player::state::data: Loading SavedAlbums data from /home/allenb/.cache/spotify-player/SavedAlbums_cache.json... 2024-02-12T23:32:35.972577Z INFO spotify_player::state::data: Successfully loaded SavedAlbums data! 2024-02-12T23:32:35.972614Z INFO spotify_player::state::data: Loading SavedTracks data from /home/allenb/.cache/spotify-player/SavedTracks_cache.json... 2024-02-12T23:32:35.974889Z INFO spotify_player::state::data: Successfully loaded SavedTracks data! 2024-02-12T23:32:36.449819Z INFO spotify_player::auth: Successfully used the cached credentials to create a new session! 2024-02-12T23:32:36.504090Z INFO spotify_player::token: Getting new authentication token... 2024-02-12T23:32:36.568783Z INFO spotify_player::token: Got new token: Token { access_token: "BQDvxijTyryk74vcj3rNCD8gArhvgQf3xHjyHF182hVXHFveCVWrCpXeMfNxueAyD4SIowm2rD4rFphcOMQTik_jlf6AC2XPsqeKoJZNCB4ukpa3JseOF23x0GcO6oSatcRwUzI7njn-fB1yD38_cziMqkbvMPd-RFc5vs39tYmK5bT_G157TfEzZbdPK4B0an55IE-Xo6lischglZ0EdSVOswbkLlU0JIIM7rCih9VXeJwxTibo2YDarb3Bdr9Evu1Jk48GAvcY3Di6LhGVCu2aTQJjCxkcf_bkh-8", expires_in: Duration { secs: 3600, nanos: 0 }, expires_at: Some(2024-02-13T00:32:36.568773347Z), refresh_token: None, scopes: {} } 2024-02-12T23:32:36.568892Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, initial_volume: Some(45875), has_volume_ctrl: true, autoplay: false } 2024-02-12T23:32:36.568971Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=198086fd-cfbf-4992-bdf7-0e30bbd87c60 2024-02-12T23:32:36.569161Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2024-02-12T23:32:36.713855Z INFO spotify_player: No playback found on startup, trying to connect to an available device... 2024-02-12T23:32:36.714188Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080 2024-02-12T23:32:36.868131Z INFO client_request{request=GetCurrentUser}: spotify_player::client: successfully handled the client request, took: 153ms 2024-02-12T23:32:36.885353Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: successfully handled the client request, took: 170ms 2024-02-12T23:32:36.962663Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: successfully handled the client request, took: 248ms 2024-02-12T23:32:36.971084Z INFO client_request{request=GetUserSavedTracks}: spotify_player::client: successfully handled the client request, took: 256ms 2024-02-12T23:32:36.988194Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: successfully handled the client request, took: 273ms 2024-02-12T23:32:37.789467Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Available devices: [Device { id: Some("bce956dab92e100e6913a4f5e8fa836778ff6b00"), is_active: false, is_private_session: false, is_restricted: false, name: "LinuxComputer", _type: Computer, volume_percent: Some(100) }, Device { id: Some("198086fd-cfbf-4992-bdf7-0e30bbd87c60"), is_active: false, is_private_session: false, is_restricted: false, name: "spotify-player", _type: Speaker, volume_percent: Some(70) }] 2024-02-12T23:32:37.789572Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Trying to connect to device (id=198086fd-cfbf-4992-bdf7-0e30bbd87c60) 2024-02-12T23:32:37.987887Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Connection succeeded (device_id=198086fd-cfbf-4992-bdf7-0e30bbd87c60)! 2024-02-12T23:32:37.987982Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: successfully handled the client request, took: 1273ms 2024-02-12T23:32:39.188829Z INFO spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/From Under The Cork Tree-Fall Out Boy-cover.jpg 2024-02-12T23:32:39.271163Z INFO spotify_player::streaming: Got a new player event: Paused { track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), position_ms: 1347, duration_ms: 180266 } 2024-02-12T23:32:39.408979Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 137ms 2024-02-12T23:32:40.697392Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), position_ms: 1347, duration_ms: 180266 } 2024-02-12T23:32:40.698222Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), position_ms: 1347, duration_ms: 180266 } 2024-02-12T23:32:40.700328Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: successfully handled the client request, took: 103ms 2024-02-12T23:32:40.835835Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 137ms 2024-02-12T23:32:40.841765Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 144ms 2024-02-12T23:32:47.260126Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: successfully handled the client request, took: 248ms 2024-02-12T23:32:47.282910Z INFO spotify_player::streaming: Got a new player event: Paused { track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), position_ms: 8183, duration_ms: 180266 } 2024-02-12T23:32:47.480822Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 197ms 2024-02-12T23:36:02.890031Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), position_ms: 8183, duration_ms: 180266 } 2024-02-12T23:36:02.890194Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), position_ms: 8186, duration_ms: 180266 } 2024-02-12T23:36:02.893643Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: successfully handled the client request, took: 175ms 2024-02-12T23:36:03.091944Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 201ms 2024-02-12T23:36:03.124562Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 234ms 2024-02-12T23:36:04.331707Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: successfully handled the client request, took: 106ms 2024-02-12T23:36:04.365654Z INFO spotify_player::streaming: Got a new player event: Paused { track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), position_ms: 9985, duration_ms: 180266 } 2024-02-12T23:36:04.613240Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 247ms 2024-02-12T23:44:29.896872Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: successfully handled the client request, took: 170ms 2024-02-12T23:44:29.897370Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), position_ms: 9985, duration_ms: 180266 } 2024-02-12T23:44:29.897792Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), position_ms: 9988, duration_ms: 180266 } 2024-02-12T23:44:30.136445Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 238ms 2024-02-12T23:44:30.551148Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 653ms 2024-02-12T23:44:30.953684Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: successfully handled the client request, took: 104ms 2024-02-12T23:44:30.995587Z INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("0a7BloCiNzLDD9qSQHh5m7"), new_track_id: TrackId("1qUHD9oPIMFHKpR12NY2KC") } 2024-02-12T23:44:31.308855Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("1qUHD9oPIMFHKpR12NY2KC"), position_ms: 0, duration_ms: 231665 } 2024-02-12T23:44:31.461731Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/The End Is Where We Begin-Thousand Foot Krutch-cover.jpg 2024-02-12T23:44:31.465893Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 156ms 2024-02-12T23:44:31.625257Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 629ms 2024-02-12T23:44:33.215399Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: successfully handled the client request, took: 120ms 2024-02-12T23:44:33.256484Z INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("1qUHD9oPIMFHKpR12NY2KC"), new_track_id: TrackId("0lP4HYLmvowOKdsQ7CVkuq") } 2024-02-12T23:44:33.442375Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/A Beautiful Lie-Thirty Seconds To Mars-cover.jpg 2024-02-12T23:44:33.442850Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 186ms 2024-02-12T23:44:33.564516Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lP4HYLmvowOKdsQ7CVkuq"), position_ms: 0, duration_ms: 231533 } 2024-02-12T23:44:34.261807Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 697ms 2024-02-12T23:44:37.819955Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: successfully handled the client request, took: 175ms 2024-02-12T23:44:37.825549Z INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("0lP4HYLmvowOKdsQ7CVkuq"), new_track_id: TrackId("1rzYrkxgRuLLJDqWdB32pK") } 2024-02-12T23:44:37.973336Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 147ms 2024-02-12T23:44:38.033288Z INFO spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/Lullabies To Paralyze-Queens of the Stone Age-cover.jpg 2024-02-12T23:44:38.227188Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("1rzYrkxgRuLLJDqWdB32pK"), position_ms: 0, duration_ms: 174026 } 2024-02-12T23:44:38.449233Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 221ms 2024-02-12T23:44:42.112762Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: successfully handled the client request, took: 103ms 2024-02-12T23:44:42.135511Z INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("1rzYrkxgRuLLJDqWdB32pK"), new_track_id: TrackId("3K4HG9evC7dg3N0R9cYqk4") } 2024-02-12T23:44:42.355060Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 219ms 2024-02-12T23:44:42.439474Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("3K4HG9evC7dg3N0R9cYqk4"), position_ms: 0, duration_ms: 157333 } 2024-02-12T23:44:42.588975Z INFO spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/Hybrid Theory (Bonus Edition)-Linkin Park-cover.jpg 2024-02-12T23:44:42.589176Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 149ms 2024-02-12T23:44:44.934605Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: successfully handled the client request, took: 99ms 2024-02-12T23:44:44.989601Z INFO spotify_player::streaming: Got a new player event: Paused { track_id: TrackId("3K4HG9evC7dg3N0R9cYqk4"), position_ms: 2940, duration_ms: 157333 } 2024-02-12T23:44:45.642832Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 653ms

I do see images in my cache folder.

aome510 commented 7 months ago

I do see images in my cache folder.

hmm, it can be confusing because notify feature also installs images into the cache folder. I suspect you may have only notify feature installed but not image. Logs look fine as there is no error. Can you try to remove the binary in .cargo/bin/spotify_player and try reinstall the app with

cargo install spotify_player --features image,notify
alenba2 commented 7 months ago

Still the same after deleting the file from bin, then reinstalling it from the command you gave me.

aome510 commented 7 months ago

Still the same after deleting the file from bin, then reinstalling it from the command you gave me.

😭. What is the result of which spotify_player?

alenba2 commented 7 months ago

240212_16h45m15s_screenshot

It is pointing to the bin

2024-02-13T00:41:23.133597Z INFO spotify_player::state::data: Loading Playlists data from /home/allenb/.cache/spotify-player/Playlists_cache.json... 2024-02-13T00:41:23.136156Z INFO spotify_player::state::data: Successfully loaded Playlists data! 2024-02-13T00:41:23.136236Z INFO spotify_player::state::data: Loading FollowedArtists data from /home/allenb/.cache/spotify-player/FollowedArtists_cache.json... 2024-02-13T00:41:23.136354Z INFO spotify_player::state::data: Successfully loaded FollowedArtists data! 2024-02-13T00:41:23.136409Z INFO spotify_player::state::data: Loading SavedAlbums data from /home/allenb/.cache/spotify-player/SavedAlbums_cache.json... 2024-02-13T00:41:23.138368Z INFO spotify_player::state::data: Successfully loaded SavedAlbums data! 2024-02-13T00:41:23.138428Z INFO spotify_player::state::data: Loading SavedTracks data from /home/allenb/.cache/spotify-player/SavedTracks_cache.json... 2024-02-13T00:41:23.143811Z INFO spotify_player::state::data: Successfully loaded SavedTracks data! 2024-02-13T00:41:23.558261Z INFO spotify_player::auth: Successfully used the cached credentials to create a new session! 2024-02-13T00:41:23.586247Z INFO spotify_player::token: Getting new authentication token... 2024-02-13T00:41:23.707520Z INFO spotify_player::token: Got new token: Token { access_token: "BQCr59ENQ0ZDQl_u-GiUcJVv6jmxm4CP93oC-OSClP9_EQhlSd8ytqHYmCJy7qd2FuV2GiJVzp7j9hMsLLXvGMhV-aByE48hQP-aCVLElCZgw79R3hxH8dffOKv8-3JcQj-qIyIQBpPK3Go_UtNXIO9_940Ei6zsV_ATMr3FlYMZ8ynd-C-Fp_-uK5I0UnCpA3JWJmW21EDkOKMmwT4mJ9VFGeIi9LTRTbPC5UUa9-AfNBwg5bjnrMfNwrSlL0cGaa44FE99reBOg8D-GebCpQTRrDVmUf3WzHSCDt4", expires_in: Duration { secs: 3600, nanos: 0 }, expires_at: Some(2024-02-13T01:41:23.707509808Z), refresh_token: None, scopes: {} } 2024-02-13T00:41:23.707679Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, initial_volume: Some(45875), has_volume_ctrl: true, autoplay: false } 2024-02-13T00:41:23.707764Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=80710148-1520-4de0-8352-e59d62ffccb5 2024-02-13T00:41:23.708011Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2024-02-13T00:41:23.846643Z INFO spotify_player: No playback found on startup, trying to connect to an available device... 2024-02-13T00:41:23.846991Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080 2024-02-13T00:41:23.992171Z INFO client_request{request=GetCurrentUser}: spotify_player::client: successfully handled the client request, took: 144ms 2024-02-13T00:41:24.014261Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: successfully handled the client request, took: 166ms 2024-02-13T00:41:24.127008Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: successfully handled the client request, took: 279ms 2024-02-13T00:41:24.128985Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: successfully handled the client request, took: 281ms 2024-02-13T00:41:24.171471Z INFO client_request{request=GetUserSavedTracks}: spotify_player::client: successfully handled the client request, took: 324ms 2024-02-13T00:41:24.925775Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Available devices: [Device { id: Some("2ba1f3c1dcae66237d15b3308860f003e80e32e4"), is_active: false, is_private_session: false, is_restricted: false, name: "Allen’s MacBook Pro", _type: Computer, volume_percent: Some(70) }, Device { id: Some("bce956dab92e100e6913a4f5e8fa836778ff6b00"), is_active: false, is_private_session: false, is_restricted: false, name: "LinuxComputer", _type: Computer, volume_percent: Some(100) }, Device { id: Some("80710148-1520-4de0-8352-e59d62ffccb5"), is_active: false, is_private_session: false, is_restricted: false, name: "spotify-player", _type: Speaker, volume_percent: Some(70) }] 2024-02-13T00:41:24.925946Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Trying to connect to device (id=80710148-1520-4de0-8352-e59d62ffccb5) 2024-02-13T00:41:25.119351Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Connection succeeded (device_id=80710148-1520-4de0-8352-e59d62ffccb5)! 2024-02-13T00:41:25.119389Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: successfully handled the client request, took: 1272ms 2024-02-13T00:41:26.269591Z INFO spotify_player::streaming: Got a new player event: Paused { track_id: TrackId("6zoNHckACUOGj2bERXgmnw"), position_ms: 1660, duration_ms: 201933 } 2024-02-13T00:41:26.315371Z INFO spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/極彩色-Reol-cover.jpg 2024-02-13T00:41:26.507443Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 237ms 2024-02-13T00:41:27.354718Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: successfully handled the client request, took: 90ms 2024-02-13T00:41:27.357919Z INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("6zoNHckACUOGj2bERXgmnw"), new_track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK") } 2024-02-13T00:41:27.722983Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 0, duration_ms: 188186 } 2024-02-13T00:41:27.893992Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/A Beautiful Lie-Thirty Seconds To Mars-cover.jpg 2024-02-13T00:41:27.894471Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 171ms 2024-02-13T00:41:27.988541Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/極彩色-Reol-cover.jpg 2024-02-13T00:41:27.988994Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 630ms 2024-02-13T00:41:28.584156Z INFO spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/A Beautiful Lie-Thirty Seconds To Mars-cover.jpg 2024-02-13T00:41:31.812924Z INFO client_request{request=Player(SeekTrack(Duration { secs: 8, nanos: 751740810 }))}: spotify_player::client: successfully handled the client request, took: 92ms 2024-02-13T00:41:32.044199Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 8751, duration_ms: 188186 } 2024-02-13T00:41:32.059395Z INFO client_request{request=Player(SeekTrack(Duration { secs: 8, nanos: 997274388 }))}: spotify_player::client: successfully handled the client request, took: 93ms 2024-02-13T00:41:32.129839Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 8997, duration_ms: 188186 } 2024-02-13T00:41:32.276384Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 231ms 2024-02-13T00:41:32.290661Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 160ms 2024-02-13T00:41:32.384945Z INFO client_request{request=Player(SeekTrack(Duration { secs: 14, nanos: 46022202 }))}: spotify_player::client: successfully handled the client request, took: 101ms 2024-02-13T00:41:32.425490Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 14046, duration_ms: 188186 } 2024-02-13T00:41:32.564941Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 139ms 2024-02-13T00:41:32.695285Z INFO client_request{request=Player(SeekTrack(Duration { secs: 14, nanos: 344409940 }))}: spotify_player::client: successfully handled the client request, took: 150ms 2024-02-13T00:41:32.720823Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 14344, duration_ms: 188186 } 2024-02-13T00:41:32.874513Z INFO client_request{request=Player(SeekTrack(Duration { secs: 14, nanos: 604750842 }))}: spotify_player::client: successfully handled the client request, took: 91ms 2024-02-13T00:41:32.895507Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 14604, duration_ms: 188186 } 2024-02-13T00:41:32.927139Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 206ms 2024-02-13T00:41:33.074933Z INFO client_request{request=Player(SeekTrack(Duration { secs: 19, nanos: 464773514 }))}: spotify_player::client: successfully handled the client request, took: 93ms 2024-02-13T00:41:33.110260Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 19464, duration_ms: 188186 } 2024-02-13T00:41:33.253642Z INFO client_request{request=Player(SeekTrack(Duration { secs: 19, nanos: 648024080 }))}: spotify_player::client: successfully handled the client request, took: 90ms 2024-02-13T00:41:33.258114Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 147ms 2024-02-13T00:41:33.325519Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 19648, duration_ms: 188186 } 2024-02-13T00:41:33.411484Z INFO client_request{request=Player(SeekTrack(Duration { secs: 19, nanos: 967373158 }))}: spotify_player::client: successfully handled the client request, took: 89ms 2024-02-13T00:41:33.449354Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 19967, duration_ms: 188186 } 2024-02-13T00:41:33.501936Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 176ms 2024-02-13T00:41:33.514577Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 618ms 2024-02-13T00:41:33.546088Z INFO client_request{request=Player(SeekTrack(Duration { secs: 24, nanos: 752881068 }))}: spotify_player::client: successfully handled the client request, took: 91ms 2024-02-13T00:41:33.576278Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 24752, duration_ms: 188186 } 2024-02-13T00:41:33.596907Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 147ms 2024-02-13T00:41:33.706613Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 130ms 2024-02-13T00:41:33.723169Z INFO client_request{request=Player(SeekTrack(Duration { secs: 24, nanos: 897441481 }))}: spotify_player::client: successfully handled the client request, took: 94ms 2024-02-13T00:41:33.791837Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 24897, duration_ms: 188186 } 2024-02-13T00:41:33.895926Z INFO client_request{request=Player(SeekTrack(Duration { secs: 25, nanos: 219400461 }))}: spotify_player::client: successfully handled the client request, took: 132ms 2024-02-13T00:41:33.923279Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 25219, duration_ms: 188186 } 2024-02-13T00:41:33.949565Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 157ms 2024-02-13T00:41:34.015837Z INFO client_request{request=Player(SeekTrack(Duration { secs: 25, nanos: 377500297 }))}: spotify_player::client: successfully handled the client request, took: 94ms 2024-02-13T00:41:34.044077Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 25377, duration_ms: 188186 } 2024-02-13T00:41:34.177982Z INFO client_request{request=Player(SeekTrack(Duration { secs: 24, nanos: 837801061 }))}: spotify_player::client: successfully handled the client request, took: 114ms 2024-02-13T00:41:34.203993Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 159ms 2024-02-13T00:41:34.220029Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 24837, duration_ms: 188186 } 2024-02-13T00:41:34.243797Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 320ms 2024-02-13T00:41:34.326802Z INFO client_request{request=Player(SeekTrack(Duration { secs: 30, nanos: 427134166 }))}: spotify_player::client: successfully handled the client request, took: 88ms 2024-02-13T00:41:34.350033Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 30427, duration_ms: 188186 } 2024-02-13T00:41:34.377295Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 157ms 2024-02-13T00:41:34.495651Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 145ms 2024-02-13T00:41:34.500755Z INFO client_request{request=Player(SeekTrack(Duration { secs: 30, nanos: 608794112 }))}: spotify_player::client: successfully handled the client request, took: 113ms 2024-02-13T00:41:34.520044Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 30608, duration_ms: 188186 } 2024-02-13T00:41:34.648821Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 128ms 2024-02-13T00:41:34.736248Z INFO client_request{request=Player(SeekTrack(Duration { secs: 35, nanos: 595329167 }))}: spotify_player::client: successfully handled the client request, took: 143ms 2024-02-13T00:41:34.777315Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 35595, duration_ms: 188186 } 2024-02-13T00:41:34.871902Z INFO client_request{request=Player(SeekTrack(Duration { secs: 35, nanos: 761800155 }))}: spotify_player::client: successfully handled the client request, took: 89ms 2024-02-13T00:41:34.904869Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 35761, duration_ms: 188186 } 2024-02-13T00:41:35.036274Z INFO client_request{request=Player(SeekTrack(Duration { secs: 35, nanos: 903629014 }))}: spotify_player::client: successfully handled the client request, took: 87ms 2024-02-13T00:41:35.076160Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 35903, duration_ms: 188186 } 2024-02-13T00:41:35.100935Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 195ms 2024-02-13T00:41:35.226830Z INFO client_request{request=Player(SeekTrack(Duration { secs: 40, nanos: 840270172 }))}: spotify_player::client: successfully handled the client request, took: 96ms 2024-02-13T00:41:35.238356Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 162ms 2024-02-13T00:41:35.287349Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 40840, duration_ms: 188186 } 2024-02-13T00:41:35.556393Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 268ms 2024-02-13T00:41:35.767371Z INFO client_request{request=Player(SeekTrack(Duration { secs: 46, nanos: 181603456 }))}: spotify_player::client: successfully handled the client request, took: 96ms 2024-02-13T00:41:35.834909Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 46181, duration_ms: 188186 } 2024-02-13T00:41:35.933798Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 1156ms 2024-02-13T00:41:35.978982Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 143ms 2024-02-13T00:41:35.980994Z INFO client_request{request=Player(SeekTrack(Duration { secs: 46, nanos: 405736302 }))}: spotify_player::client: successfully handled the client request, took: 87ms 2024-02-13T00:41:36.015119Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), position_ms: 46405, duration_ms: 188186 } 2024-02-13T00:41:36.171928Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 156ms 2024-02-13T00:41:37.564486Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: successfully handled the client request, took: 95ms 2024-02-13T00:41:37.589024Z INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("0lHSJ0ZP8uUPnJXhMdGjOK"), new_track_id: TrackId("3o7TMr6RmIusYH7Kkg7ujR") } 2024-02-13T00:41:37.735914Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 146ms 2024-02-13T00:41:37.899923Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("3o7TMr6RmIusYH7Kkg7ujR"), position_ms: 0, duration_ms: 199773 } 2024-02-13T00:41:37.963437Z ERROR client_request{request=GetCurrentPlayback}: spotify_player::client::handlers: Failed to handle client request: http error: status code 429 Too Many Requests 2024-02-13T00:41:37.994359Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.083615Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.092219Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.104987Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.143917Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.199471Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.237782Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.350094Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.383222Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.438919Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.614340Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.626677Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.627174Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.697266Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.704178Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.793580Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.801784Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.805435Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:38.810421Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.053575Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.133948Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.142110Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.153743Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.162772Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.202202Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.260839Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.296105Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.407397Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.444370Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.673676Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.688697Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.762808Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.854764Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.864247Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:39.876369Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:40.191859Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:40.211680Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:40.264968Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:40.319598Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:40.358287Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:40.468448Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:40.507055Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:40.751528Z ERROR spotify_player::client: Encountered an error when updating the playback state: http error: status code 429 Too Many Requests 2024-02-13T00:41:43.620214Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: successfully handled the client request, took: 94ms 2024-02-13T00:41:43.642135Z INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("3o7TMr6RmIusYH7Kkg7ujR"), new_track_id: TrackId("5G5vP38QuWBerw1FlA3c6O") } 2024-02-13T00:41:43.784332Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 142ms 2024-02-13T00:41:44.029096Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5G5vP38QuWBerw1FlA3c6O"), position_ms: 0, duration_ms: 154133 } 2024-02-13T00:41:44.391117Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/Flyleaf-Flyleaf-cover.jpg 2024-02-13T00:41:44.391529Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 362ms 2024-02-13T00:41:48.624476Z INFO client_request{request=Player(SeekTrack(Duration { secs: 9, nanos: 412794520 }))}: spotify_player::client: successfully handled the client request, took: 93ms 2024-02-13T00:41:48.735495Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5G5vP38QuWBerw1FlA3c6O"), position_ms: 9412, duration_ms: 154133 } 2024-02-13T00:41:48.817455Z INFO client_request{request=Player(SeekTrack(Duration { secs: 9, nanos: 578454977 }))}: spotify_player::client: successfully handled the client request, took: 120ms 2024-02-13T00:41:48.847735Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5G5vP38QuWBerw1FlA3c6O"), position_ms: 9578, duration_ms: 154133 } 2024-02-13T00:41:48.962584Z INFO client_request{request=Player(SeekTrack(Duration { secs: 9, nanos: 736280352 }))}: spotify_player::client: successfully handled the client request, took: 108ms 2024-02-13T00:41:49.018367Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5G5vP38QuWBerw1FlA3c6O"), position_ms: 9736, duration_ms: 154133 } 2024-02-13T00:41:49.027567Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 179ms 2024-02-13T00:41:49.168782Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 150ms 2024-02-13T00:41:49.316658Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 580ms 2024-02-13T00:41:50.370767Z INFO client_request{request=Player(SeekTrack(Duration { secs: 15, nanos: 833088972 }))}: spotify_player::client: successfully handled the client request, took: 198ms 2024-02-13T00:41:50.386942Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5G5vP38QuWBerw1FlA3c6O"), position_ms: 15833, duration_ms: 154133 } 2024-02-13T00:41:50.627235Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 240ms 2024-02-13T00:41:52.352509Z INFO client_request{request=Player(SeekTrack(Duration { secs: 22, nanos: 553944327 }))}: spotify_player::client: successfully handled the client request, took: 95ms 2024-02-13T00:41:52.394424Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5G5vP38QuWBerw1FlA3c6O"), position_ms: 22553, duration_ms: 154133 } 2024-02-13T00:41:52.636353Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 241ms 2024-02-13T00:41:54.104277Z INFO client_request{request=Player(SeekTrack(Duration { secs: 29, nanos: 16817566 }))}: spotify_player::client: successfully handled the client request, took: 151ms 2024-02-13T00:41:54.233424Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5G5vP38QuWBerw1FlA3c6O"), position_ms: 29016, duration_ms: 154133 } 2024-02-13T00:41:54.429058Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 195ms 2024-02-13T00:41:56.179994Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: successfully handled the client request, took: 108ms 2024-02-13T00:41:56.190267Z INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("5G5vP38QuWBerw1FlA3c6O"), new_track_id: TrackId("4urxRqBRiaH0i20OKBsgxc") } 2024-02-13T00:41:56.387213Z INFO spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/Life Starts Now-Three Days Grace-cover.jpg 2024-02-13T00:41:56.439102Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/Flyleaf-Flyleaf-cover.jpg 2024-02-13T00:41:56.439338Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 248ms 2024-02-13T00:41:56.469048Z INFO spotify_player::client: Retrieving an image from the file: /home/allenb/.cache/spotify-player/image/Life Starts Now-Three Days Grace-cover.jpg 2024-02-13T00:41:56.546858Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("4urxRqBRiaH0i20OKBsgxc"), position_ms: 0, duration_ms: 193106 } 2024-02-13T00:41:56.686672Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 139ms 2024-02-13T00:42:01.183476Z INFO client_request{request=Player(SeekTrack(Duration { secs: 9, nanos: 382604351 }))}: spotify_player::client: successfully handled the client request, took: 87ms 2024-02-13T00:42:01.346204Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("4urxRqBRiaH0i20OKBsgxc"), position_ms: 9382, duration_ms: 193106 } 2024-02-13T00:42:01.391434Z INFO client_request{request=Player(SeekTrack(Duration { secs: 9, nanos: 549177506 }))}: spotify_player::client: successfully handled the client request, took: 128ms 2024-02-13T00:42:01.499490Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 153ms 2024-02-13T00:42:01.563750Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("4urxRqBRiaH0i20OKBsgxc"), position_ms: 9549, duration_ms: 193106 } 2024-02-13T00:42:01.588469Z INFO client_request{request=Player(SeekTrack(Duration { secs: 9, nanos: 723178684 }))}: spotify_player::client: successfully handled the client request, took: 151ms 2024-02-13T00:42:01.707499Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 143ms 2024-02-13T00:42:01.740902Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("4urxRqBRiaH0i20OKBsgxc"), position_ms: 9723, duration_ms: 193106 } 2024-02-13T00:42:01.881157Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 140ms 2024-02-13T00:42:02.251076Z INFO client_request{request=Player(SeekTrack(Duration { secs: 15, nanos: 65305102 }))}: spotify_player::client: successfully handled the client request, took: 88ms 2024-02-13T00:42:02.340018Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("4urxRqBRiaH0i20OKBsgxc"), position_ms: 15065, duration_ms: 193106 } 2024-02-13T00:42:02.486220Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 146ms 2024-02-13T00:42:02.636201Z INFO client_request{request=Player(SeekTrack(Duration { secs: 20, nanos: 236833509 }))}: spotify_player::client: successfully handled the client request, took: 84ms 2024-02-13T00:42:02.677401Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("4urxRqBRiaH0i20OKBsgxc"), position_ms: 20236, duration_ms: 193106 } 2024-02-13T00:42:02.897912Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 220ms 2024-02-13T00:42:03.733126Z INFO client_request{request=Player(SeekTrack(Duration { secs: 26, nanos: 145307057 }))}: spotify_player::client: successfully handled the client request, took: 103ms 2024-02-13T00:42:03.748554Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("4urxRqBRiaH0i20OKBsgxc"), position_ms: 26145, duration_ms: 193106 } 2024-02-13T00:42:03.920728Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 172ms 2024-02-13T00:42:09.461615Z INFO spotify_player::streaming: Got a new player event: Paused { track_id: TrackId("4urxRqBRiaH0i20OKBsgxc"), position_ms: 31709, duration_ms: 193106 } 2024-02-13T00:42:09.464932Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: successfully handled the client request, took: 103ms 2024-02-13T00:42:09.612582Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 150ms

This is the logs from the latest one. Also been spamming the > key as well.

aome510 commented 7 months ago

So it points to the incorrect path. Can you remove the binary in /usr/bin/spotify_player and try again the which command to make sure the binary points to $home/.cargo/bin?

alenba2 commented 7 months ago

Deleting spotify_player and running which spotify_player shot me with this

Its not executing anymore

240212_17h05m36s_screenshot

aome510 commented 7 months ago

Ah, no the PATH variable is not a spotify-player thing, it's a system thing. It tells your shell where to look for executables. Before you read the rest of my comment, doesn't running spotify_player in your terminal open it up? If it does you don't need to do anything from the rest of this comment, and should delete the PATH line in the configuration file above. You would be set to go.

If that is not the case and there is some error about spotify_player not found then you can worry about your PATH variable:

You can set it in several files, depending on your preferences. Some options are, but are not limited to, ~/.bashrc, ~/.profile, /etc/profile. I personally currently put them all in ~/.profile. HOWEVER, you don't want to override your entire PATH variable with /.../.cargo/bin, just add it. From the arch wiki article, tryexport PATH="${PATH}:/the/path/to/add". What that does it take the current PATH variable and append :/the/path/to/add at the end of it

Did u follow @LucasFA instruction here? .cargo/bin should be included in the path

LucasFA commented 7 months ago

You might want to remove the package with your package manager (AUR helper? paru, yay, that kind of stuff), if you are going to keep it installed through cargo. Also notice that even with .cargo/bin in the path, having a binary installed in the system means that which binary is chosen is a matter of the position in the PATH - .cargo/bin:/usr/bin will prefer cargo binaries and /usr/bin:.cargo/bin will prefer system package installed binaries.

alenba2 commented 7 months ago

You might want to remove the package with your package manager (AUR helper? paru, yay, that kind of stuff), if you are going to keep it installed through cargo. Also notice that even with .cargo/bin in the path, having a binary installed in the system means that which binary is chosen is a matter of the position in the PATH - .cargo/bin:/usr/bin will prefer cargo binaries and /usr/bin:.cargo/bin will prefer system package installed binaries.

I've tried @LucasFA 's direction after, but it didn't seem to work. So I tried to remove the package using paru and reinstalling it.

240212_18h00m31s_screenshot

I installed the default packages from it, and after running which spotify_player it still points to the wrong directory /usr/bin/spotify_player

when I tried to run it. It also gave me an error because I tried to export to the bin file.

240212_18h01m03s_screenshot

This is what I have for exporting.

240212_18h01m51s_screenshot

LucasFA commented 7 months ago

Alright let's recap, some information has been lost the convo here.

The path variable is set for your system, not for spotify_player in the toml file. TOML is literally just JSON with fancy syntax, it doesn't execute things. Remove the export line from the toml file and only keep it in the ~/.bashrc (for zsh more like /.zshrc) or in ~/.profile or whatever file like those I mentioned earlier or are indicated in the arch wiki.

I installed the default packages from it, and after running which spotify_player it still points to the wrong directory /usr/bin/spotify_player

That is expected behaviour. Your system package manager will install to a system-wide directory such as /usr/bin. Only cargo installs to ~/.cargo/bin.

Now, you have the choice of using the AUR or the cargo version of spotify_player. Both are fine for the default settings, but if you want non-default settings, like the image feature, you need to use the cargo version and choose the features you want. That's done with the syntax of the command previously given by Aome510:

cargo install spotify_player --features image,notify

This will install spotify_player to .cargo/bin. However, you may still have the system wide installation, from installing the package in the AUR. You want to uninstall that package.

alenba2 commented 7 months ago

Alright let's recap, some information has been lost the convo here.

The path variable is set for your system, not for spotify_player in the toml file. TOML is literally just JSON with fancy syntax, it doesn't execute things. Remove the export line from the toml file and only keep it in the ~/.bashrc (for zsh more like /.zshrc) or in ~/.profile or whatever file like those I mentioned earlier or are indicated in the arch wiki.

I installed the default packages from it, and after running which spotify_player it still points to the wrong directory /usr/bin/spotify_player

That is expected behaviour. Your system package manager will install to a system-wide directory such as /usr/bin. Only cargo installs to ~/.cargo/bin.

Now, you have the choice of using the AUR or the cargo version of spotify_player. Both are fine for the default settings, but if you want non-default settings, like the image feature, you need to use the cargo version and choose the features you want. That's done with the syntax of the command previously given by Aome510:

cargo install spotify_player --features image,notify

This will install spotify_player to .cargo/bin. However, you may still have the system wide installation, from installing the package in the AUR. You want to uninstall that package.

Wow, okay I didn't know there was a difference between the AUR and the cargo version of it. Thank you for giving your time with me. I'll keep in mind with later projects. I'm still new to arch linux lol. 😭

LucasFA commented 7 months ago

Wow, okay I didn't know there was a difference between the AUR and the cargo version of it

Yeah that's the thing with binaries, they come with all the conditional compilation already done. It could arguably become a runtime setting but that's out of scope here.

I'm still new to arch linux lol.

This is the time you will learn most, then. Glad I was of help :)

aome510 commented 7 months ago

Alright let's recap, some information has been lost the convo here.

The path variable is set for your system, not for spotify_player in the toml file. TOML is literally just JSON with fancy syntax, it doesn't execute things. Remove the export line from the toml file and only keep it in the ~/.bashrc (for zsh more like /.zshrc) or in ~/.profile or whatever file like those I mentioned earlier or are indicated in the arch wiki.

I installed the default packages from it, and after running which spotify_player it still points to the wrong directory /usr/bin/spotify_player

That is expected behaviour. Your system package manager will install to a system-wide directory such as /usr/bin. Only cargo installs to ~/.cargo/bin.

Now, you have the choice of using the AUR or the cargo version of spotify_player. Both are fine for the default settings, but if you want non-default settings, like the image feature, you need to use the cargo version and choose the features you want. That's done with the syntax of the command previously given by Aome510:

cargo install spotify_player --features image,notify

This will install spotify_player to .cargo/bin. However, you may still have the system wide installation, from installing the package in the AUR. You want to uninstall that package.

Thanks @LucasFA. This was a very detailed and great way to explain everything.