Closed jackkinsey closed 7 years ago
Does "Searching for $your_query_here..." ever appear above "Now playing"?
Can you checkout the search-hanging
branch, and then:
cd src
python pmcli.py
s Hello
# Wait ~10 seconds
Ctrl-C
And see what's in log.txt
?
Search works here but still blocks running help.
Should be fixed in master now. Can you guys confirm?
I pulled f8dff2825f1901146e04c45b17e8cd5a954fa290 (current master), and search does not work because the API endpoint responds with 403 Forbidden:
gmusicapi.exceptions.CallFailure: Search: 403 Client Error: Forbidden for url: https://mclients.googleapis.com/sj/v2.5/query?ct=1%2C2%2C3%2C4%2C6%2C7%2C8%2C9&q=fibra&max-results=14&hl=en_US&dv=0&tier=fr
(requests kwargs: {'method': 'GET', 'url': 'https://mclients.googleapis.com/sj/v2.5/query', 'params': {'ct': '1,2,3,4,6,7,8,9', 'q': 'fibra', 'max-results': 14, 'hl': 'en_US', 'dv': 0, 'tier': 'fr'}, 'headers': {'Authorization': '<omitted>'}})
(response was: '{error:{errors:[{domain:global,reason:forbidden,message:Forbidden}],code:403,message:Forbidden}}')
I think it's the same issue described here: https://github.com/simon-weber/gmusicapi/issues/474
@rubik The issue you mention is not related to the current issue, but it's definitely a problem. I'm testing out a free account and also having issues.
Also, can you still reproduce this? The issue in gmusicapi mentions that it's inconsistent.
I tried checking out search-hanging
like you suggested, but no log file was ever produced.
Search is still hanging for me, help
not displaying has been fixed. The Searching for $query...
text does appear when I run a search
command.
Is your Google account free or paid?
I'm going to assume free, because that explains what's happening perfectly. See #5, it looks like free accounts will only be able to play radio stations once I implement that :disappointed:
I've updated search-hanging
again (it has config format changes so you'll have to install again per the readme), if you do the same as last time, log.txt
will probably contain:
0 0 0
In which case #5 is definitely the problem.
Yeah, I saw #5 and just responded. Free account is definitely the issue.
It seems as though I've logged into pmcli correctly—it reports upon launch that it's logged in—and at first the
help
command is functional, but after I run asearch
command (which always fails to return anything, no matter what I search for—including things I've checked in Music proper to ensure exist) pmcli will display exclusively this:...and subsequent executions of the
help
command return nothing, though quitting withCTRL-C
will show the exit message, and trying to runexpand
andplay
commands will show the errorxterm, python 3.6.0.