gmusicapi
gmusicapi copied to clipboard
Mobileclient.create_station() with genre_id returns invalid station_id.
trafficstars
When I try to create a station using `Mobileclient.create_station() it returns an invalid station_id. Am I doing it wrong? Thanks, Griffith.
Python 3.6.0 (default, Jan 31 2017, 17:19:53)
[GCC 6.2.0 20161005] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from gmusicapi import Mobileclient
>>> api = Mobileclient()
>>> api.login('PLACEHOLDER', 'PLACEHOLDER', Mobileclient.FROM_MAC_ADDRESS)
/home/griffith/.pyenv/versions/3.6.0/lib/python3.6/site-packages/Cryptodome/Math/_Numbers_gmp.py:230: UserWarning: implicit cast to 'char *' from a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct)
_gmp.gmp_snprintf(buf, c_size_t(buf_len), b("%Zd"), self._mpz_p)
True
>>> station_id = api.create_station(name="Test", genre_id=api.get_genres()[6]['id'])
>>> api.get_station_tracks(station_id)
[]
>>> print(station_id)
6ddc09dc-4560-31d9-854e-9fe670374eb2
Huh, that's odd. Does the same thing happen for other genres too?
It seems to work for every one but country. Oddly enough if I pass in [name] instead of [id] it is able to get station tracks.
Huh, that's really odd. Can you try again in a little while to see if it resolves? This sounds like something weird on Google's end.