mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #736] Seek_track is restarting the track instead of navigating to position_ms. #445
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#445
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@olsonap commented on GitHub (Oct 28, 2021):
Randomly working again after no change.