mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #77] "get_song(self, videoId: str) -> Dict: " returns empty dict #56
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#56
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 @maigag on GitHub (Sep 11, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/77
Hi,
Since Latest commit "get_song(self, videoId: str) -> Dict:" in browsing.py returns only empty dictionary to me.
Maybe it is me not doing something correctly - but i wanted to be sure to highlight this.
Best,
Guido
ytmusicapi version v0.9.2
@sigma67 commented on GitHub (Sep 11, 2020):
Works fine for me. What videoId are you using?
@maigag commented on GitHub (Sep 11, 2020):
Hi,
thanks for the quick answer.
Even smth simple like this
from ytmusicapi import YTMusic
ytmusic = YTMusic()
video = ytmusic.get_song('N2DglZjKvBU')
print(video)
returns me {}.
Is this not the case for you?
It was not the case a couple of days ago.
Best,
Guido
@sigma67 commented on GitHub (Sep 11, 2020):
No, it should work fine. Both on 0.9.2 and latest master.
Running the above code prints the video Dict as it should. What's your OS/Python version?
@maigag commented on GitHub (Sep 11, 2020):
Thanks for the answer.
I am running this on python 3.6 - from VSCode. Windows 10.
Best,
Guido
@sigma67 commented on GitHub (Sep 12, 2020):
It must be related to your setup. I also tried with Python 3.6.9 and it works fine. Did you install using pip3? Or are you using the source code?