[GH-ISSUE #77] "get_song(self, videoId: str) -> Dict: " returns empty dict #56

Closed
opened 2026-02-27 22:07:47 +03:00 by kerem · 5 comments
Owner

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

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
kerem closed this issue 2026-02-27 22:07:47 +03:00
Author
Owner

@sigma67 commented on GitHub (Sep 11, 2020):

Works fine for me. What videoId are you using?

<!-- gh-comment-id:690995882 --> @sigma67 commented on GitHub (Sep 11, 2020): Works fine for me. What videoId are you using?
Author
Owner

@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

<!-- gh-comment-id:691002592 --> @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
Author
Owner

@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?

<!-- gh-comment-id:691027949 --> @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?
Author
Owner

@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

<!-- gh-comment-id:691029444 --> @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
Author
Owner

@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?

<!-- gh-comment-id:691532671 --> @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?
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/ytmusicapi#56
No description provided.