[GH-ISSUE #736] Seek_track is restarting the track instead of navigating to position_ms. #445

Closed
opened 2026-02-27 23:22:41 +03:00 by kerem · 1 comment
Owner

Originally created by @olsonap on GitHub (Oct 28, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/736

As of earlier today, seek_track was working fine. Now, it's restarting whatever track is playing instead of seeking the correct location.

`import spotipy
from spotipy.oauth2 import SpotifyOAuth
from pprint import pprint
from time import sleep

scope = "user-read-playback-state,user-modify-playback-state"
auth_manager=SpotifyOAuth(scope=scope)
sp = spotipy.Spotify(auth_manager=auth_manager)

Shows playing devices

res = sp.devices()
pprint(res)

Change track

sp.start_playback(uris=['spotify:track:6gdLoMygLsgktydTQ71b15'])
sleep(5)

New track position

newProgressMS = 10000
sp.seek_track(position_ms=10000)
`

Using PyCharm IDE on Windows.

Originally created by @olsonap on GitHub (Oct 28, 2021). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/736 As of earlier today, seek_track was working fine. Now, it's restarting whatever track is playing instead of seeking the correct location. `import spotipy from spotipy.oauth2 import SpotifyOAuth from pprint import pprint from time import sleep scope = "user-read-playback-state,user-modify-playback-state" auth_manager=SpotifyOAuth(scope=scope) sp = spotipy.Spotify(auth_manager=auth_manager) # Shows playing devices res = sp.devices() pprint(res) # Change track sp.start_playback(uris=['spotify:track:6gdLoMygLsgktydTQ71b15']) sleep(5) # New track position newProgressMS = 10000 sp.seek_track(position_ms=10000) ` Using PyCharm IDE on Windows.
kerem 2026-02-27 23:22:41 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@olsonap commented on GitHub (Oct 28, 2021):

Randomly working again after no change.

<!-- gh-comment-id:954076030 --> @olsonap commented on GitHub (Oct 28, 2021): Randomly working again after no change.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#445
No description provided.