We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is my code ytmusicsearch.py:
ytmusicsearch.py
#!/usr/bin/env python3 from ytmusicapi import YTMusic import json import sys ytmusic = YTMusic('headers_auth.json') search_results = ytmusic.search(sys.argv[1]) print(json.dumps(search_results[0]))
I execute it like this: ./ytmusicsearch.py "eminem - we made you" | jq
./ytmusicsearch.py "eminem - we made you" | jq
But all I get in response is:
{ "resultType": "top resul", "title": "We Made You", "thumbnails": [ { "url": "https://lh3.googleusercontent.com/IA6sdmqe3uXwtYgNNbi8WDD6LmFcsSRccmHErKlNWh-WvWoyIHcnLrmVlPbdLMT5SDqo2DRHjUbQLU9m=w60-h60-l90-rj", "width": 60, "height": 60 }, { "url": "https://lh3.googleusercontent.com/IA6sdmqe3uXwtYgNNbi8WDD6LmFcsSRccmHErKlNWh-WvWoyIHcnLrmVlPbdLMT5SDqo2DRHjUbQLU9m=w120-h120-l90-rj", "width": 120, "height": 120 } ] }
There is no videoId in the first result. For other search_results the videoId is present, it is missing only from the top result
search_results
The text was updated successfully, but these errors were encountered:
35ad412
No branches or pull requests
This is my code
ytmusicsearch.py
:I execute it like this:
./ytmusicsearch.py "eminem - we made you" | jq
But all I get in response is:
There is no videoId in the first result. For other
search_results
the videoId is present, it is missing only from the top resultThe text was updated successfully, but these errors were encountered: