Comments (9)
Off the top of my head, I think it's just a single call. I don't remember what exactly, though. Pull requests are always welcome!
from gmusicapi.
I too would love this call if you can find it! This is the one piece that im missing.
from gmusicapi.
Sure thing; I'll look into it.
from gmusicapi.
Sorry for the delay!
The call is made to services/getmixentries
and looks like:
[["<newstyle session id>",1],[[["<song id>",null,1,[],[]]]]]
the response is totally gross, and seems to include song dictionary information, eg:
[[0]
,[[[["<requested song id>",["","",,,,,,,,,,,,0,,,,,,,,1,0,-1,0,0]
,1,[]
,[]
]
,[["55e3f0ab-5bac-33c4-8b97-e249cc34f68c","Empty","//lh4.googleusercontent.com/K010mLNMkp5O_nPFYFlOfZ4vj5qTbK-WgpqVdxchGM58xDrMNl2KV0MMZhzzVA","Anathema","Alternative 4","","empty","anathema","alternative 4","","","Metal","metal",178984,3,14,1,1,1998,0,,,0,0,1361551889038581,1361999919506480,,,"Tzdwbkhcuvxx4kiiwrpsbcftctm",6,"",,,"A2bajq3munahcdk3imjx3ozow64",256,1361551927496000]
,["00816850-42dc-32ca-b1d2-e628f246edb6","Destiny","//lh4.googleusercontent.com/K010mLNMkp5O_nPFYFlOfZ4vj5qTbK-WgpqVdxchGM58xDrMNl2KV0MMZhzzVA","Anathema","Alternative 4","","destiny","anathema","alternative 4","","","Metal","metal",131950,10,14,1,1,1998,0,,,0,0,1361550760940101,1361678466297239,,,"Tvnrtx54rw62ttivl6wwchg2p2y",6,"",,,"A2bajq3munahcdk3imjx3ozow64",321,1361550760939000]
,["45f4551a-151d-311d-8ef8-4a118c7c26ec","Shroud of False","//lh3.googleusercontent.com/ybp5z7Ij3QK4keTXpT-wqeV17yBdCZHDFwhuP-zGTERyxamga3Z911qcFzsp","Anathema","Alternative 4","Anathema","shroud of false","anathema","alternative 4","anathema","","Metal","metal",96803,1,14,1,1,1998,0,,,0,0,1361574609659231,1361678822612695,,,"Tiv7yqfjda6at7gwn3rvd2rxzpy",2,"",,,"A2bajq3munahcdk3imjx3ozow64",256,1361574665145000]
]
]
]
]
]
I've seen a lot of requests/responses that look like this recently. It seems like a trend away from user-readable json objects and towards structs; this could makes things a lot more annoying for us.
I'll probably expose this with something like api.get_related_songs(song_id)
and return a list of song ids.
from gmusicapi.
Thanks Simon! Your awesome! I am anxious to see the implementation! Confused however, what is "newstyle session id"? Will this be included in the doumentation somewhere?
from gmusicapi.
It pops up in most of the calls now, but doesn't seem to be required (yet).
I haven't figured out how it's generated, but it doesn't seem to come from the server.
from gmusicapi.
Correct me if I'm wrong, but a quick test seemed to show that create_station creates an instant mix based on the seed track/album/artist. I just tried it without and AA subscription and it returned songs only in my library.
from gmusicapi.
Oh, cool; thanks for bringing it to my attention.
As a heads up, I don't have a lot of time this week, but I can probably dig into this over the weekend.
from gmusicapi.
Whew, this is an old issue! This will be handled by #263 when it lands.
from gmusicapi.
Related Issues (20)
- UnicodeEncodeError on Mobileclient.search() HOT 2
- Searching for youtube video hits and info requires a GPM subscription HOT 1
- Mobileclient remove_entries_from_playlist() always returns the input parameters HOT 5
- Gmusicapi install error HOT 10
- ValidationException for GetArtists HOT 1
- get filesize of audiofile HOT 1
- Mac address error HOT 2
- Info about a track in a playlist HOT 3
- Using dynamic oauth_filepath in Mobileclient HOT 8
- Mobileclient.get_all_songs() not returning all tracks HOT 2
- No Donation Button HOT 2
- Invalid Device id with id's returned from returned valid id's HOT 18
- gmusicapi.exceptions.CallFailure: GetStreamUrl: 403 Client Error: Forbidden for url: https://mclients.googleapis.com/music/mplay ... HOT 4
- Could not retrieve credentials from ... Simon Weber\\gmusicapi\\mobileclient.cred HOT 4
- Invalid artist and album ids on search HOT 3
- UnicodeEncodeError with logging when using Mobileclient Search HOT 1
- TypeError when running Musicmanager.get_uploaded_songs() HOT 4
- Value Error :( HOT 3
- Error while performing local test HOT 3
- Looks like Google Play Music is going away HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmusicapi.