mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #410] A lot of attributes are not working for me #244
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#244
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 @RANKKY-YT on GitHub (Jan 8, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/410
Hey guys,
so I tried to get the
current_playback()do see what is playing right now. That doesnt work. Neither doescurrent_user_playing_track()norcurrently_playing(). It always troughts me the same error:Traceback (most recent call last):
File "spoti.py", line 27, in
track = spotifyObject.currently_playing()
AttributeError: 'Spotify' object has no attribute 'currently_playing'
Thats the important part of my code:
spotifyObject = spotipy.Spotify(auth=token)track = spotifyObject.currently_playing()artist = track['item']['artist'][0]['name']track = track['item']['name']Moreover, there are other things that doesnt seem to be working for me:
spotifyObject.devices()spotifyObject.start_playbackI got the device ID on the official Spotify developer page (https://developer.spotify.com/console/get-users-available-devices/), but its now hardcoded.
I hope someone can help me?!
Thanks
@ritiek commented on GitHub (Jan 8, 2020):
Might be related to #337.
@stephanebruckert commented on GitHub (Jan 11, 2020):
Most likely @ritiek is right. Please upgrade your version of spotipy and it should work: