Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Mobileclient.create_station() with genre_id returns invalid station_id. #529

Open
PostsDesert opened this issue Feb 5, 2017 · 3 comments

Comments

@PostsDesert
Copy link
Contributor

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
@simon-weber
Copy link
Owner

Huh, that's odd. Does the same thing happen for other genres too?

@PostsDesert
Copy link
Contributor Author

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.

@simon-weber
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants