-
Notifications
You must be signed in to change notification settings - Fork 257
MAC address is not reliable on some devices (eg VPS) #60
Comments
I'm planning to expose a way for users to set this: https://github.com/simon-weber/Unofficial-Google-Music-API/blob/protocol-fixes/gmusicapi/api.py#L126. |
Progress: https://github.com/simon-weber/Unofficial-Google-Music-API/blob/develop/gmusicapi/api.py#L71! Users have complete control over this process now: they can give their own id/name, or decline to register an upload device. The defaults are much more sane now, too: there's no chance of colliding with a Music Manager, and random ids will not be created in the case a MAC can't be found. @fruel or @damariei, can you try this out and let me know what you think? |
Works. I uploaded 2 albums a few minutes ago from my VPS to Google Music using the latest developement version. Login call: I uploaded each album separately but only one device was registered in Google Music. Perfect. |
Awesome. Can you quickly try doing |
Traceback (most recent call last): File "google_music.py", line 45, in Yeah, it works. |
Perfect; that's exactly what I wanted to see (I meant to say OSError, not CallFailure). Again, thanks for trying it for me! |
In #51, @fruel and @damariei both upload from a VPS, where the MAC address will change; this registers a device for each upload.
A more static id needs to be used. @damariei suggested the hostid, though I think this will also break if the vm migrates physical machines. Using the public-facing IP may be a better option.
A way to set a user-defined MAC might need to be used as well.
The text was updated successfully, but these errors were encountered: