simon-weber/Unofficial-Google-Music-API — pull request #131 by EnigmaCurry (2013-05-21 22:48:09+00:00)
Title: Adds multi-part streaming support to get_stream_url

All-Access tracks stream differently than tracks you've added yourself, they are segmented across multiple files. This patch makes get_stream_url return a list of urls in this case, and a string as in the standard as before. I'm not entirely happy that you have to check to see if it returns a string or a list, but I can't really think of something better.

As an FYI, the urls that google is returning have a *range* parameter and these ranges overlap. You can't just download each file and concatenate them together, you have to align them by skipping X bytes where X is the difference between the end range of the previous file and start range of the next file. I'll be implementing that logic into [GMusicFS](https://github.com/EnigmaCurry/GMusicFS) once this works from gmusicapi's end.

Thanks!