Re: [google-appengine] Re: Google App Engine & Google Play Music... making apps that manage playlists on GAE

2015-11-13 Thread Paul Canning
If you want to use the API so badly, why not use a non GAE server setup?

On Friday, November 13, 2015 at 3:52:56 PM UTC, Cliff Hill wrote:
>
> I did, it won't work because Google is blocking the url s for Google Play 
> Music from being accessed by Google App Engine.
>
> People wanting "smart playlist" capabilities are not measured "in tens", 
> it is something a lot of people I have seen online ask for. This, to me, is 
> a way it can be accomplished. They already have the api built, just not 
> published or available in various languages (the interface is REST, and is 
> how the unofficial api accesses everything). Google just needs someone to 
> write a thin wrapper over it and make it available, or at the very least, 
> remove the blocking so the existing unofficial api can work.
>
> On Fri, Nov 13, 2015, 10:44 AM Paul Canning  > wrote:
>
>> The thing is, it IS asking a lot. It's not like it'll take one guy an 
>> afternoon of work.
>>
>> I highly doubt they'll make any form of API for Google Music, as you can 
>> create playlists etc on the website already. People wanting an API for 
>> their own personal projects are going to be numbered in the tens.
>>
>> If there is an unofficial Python API, have you looked into why it doesn't 
>> work on GAE? I think you'd be able to get that working much sooner then 
>> Google making a GM API (ie never)
>>
>>
>> On Friday, November 13, 2015 at 3:09:16 PM UTC, Cliff Hill wrote:
>>>
>>> Before I start, I want to make it very clear -- I am not talking about 
>>> having a google app engine app that controls streaming music in any way, 
>>> just having the ability to manage/manipulate playlists, as well as the 
>>> metadata for tracks/songs I have in google play music.  I want to propose 
>>> Google make an API available for their music service to accomplish this. 
>>> There already is an unofficial API in Python that allows this, but it is 
>>> unofficial, and it doesn't seem to work in google app engine.
>>>
>>> A little backstory:
>>>
>>> I have a scheme for automatically manipulating a playlist that changes 
>>> each day, cycling through my music library, which now exists on Google Play 
>>> Music. I had started from iTunes, which gave me the ability to construct 
>>> "smart playlists", which essentially allowed me to apply set theory 
>>> concepts to music -- setting up relationships between songs, and using that 
>>> to structure sets of playlists that all automatically update as my music 
>>> was being played -- all for free. I used it to automatically load my phone 
>>> with a bunch of songs each day, which then I could play, and when I 
>>> re-synchronized my iPhone with iTunes, it would remove my played songs, and 
>>> add new songs to my phone automatically.
>>>
>>> However, I'm not an avid Apple user... in fact, I generally prefer 
>>> avoiding it. I am a Linux user (and I had to make a VM instance to install 
>>> Windows just to get iTunes to work correctly back then). So, when my Gen 1 
>>> iPhone's 2-year contract was ended, I switched to another phone... and 
>>> stopped using iTunes. However, I found another way to continue my "smart 
>>> playlist", through the streaming server called Firefly, I just set up my 
>>> own server, installed, firefly, had all my music available on it, and could 
>>> get it to do what I did in iTunes, all without me needing my phone. 
>>> Eventually, I migrated to Squeezebox Server and did a similar trick on that 
>>> (because Firefly was... unstable). This worked (mostly) fine, until my 
>>> server died. As I went to rebuild my playlist, I gave up on squeezebox 
>>> server, because I didn't like managing it through SQL.  I then switched to 
>>> mpd (music player daemon), and figured out how to manage the playlists 
>>> through my own hand in Python, and got it functional again, only after a 
>>> few years having my new server die as well.
>>>
>>> Google offers the Play Music service, which allowed me to upload my 
>>> music library to it, this solves the problem of my personal server failing 
>>> on me. Google also offers Google App Engine for Python.  Essentially, these 
>>> two services would be a perfect fit for me -- I could build my playlist 
>>> generator in Google App Engine, and have it manage my playlist in Google 
>>> Play Music, and simply then use my playlist in Google Play Music, returning 
>>> back to being able to play my music from my (Google Nexus) phone.  Except: 
>>> There is no official Google Play Music API available to use in Google App 
>>> Engine, and using the unofficial Python API doesn't work because Google 
>>> blocks this access. I could write my code to make it work from my own 
>>> server without using Google App Engine, but I would rather a solution that 
>>> is cloud-based. Since it is Google talking to Google, I would think it 
>>> shouldn't be too hard to do.
>>>
>>> I don't have an All Access account, I just want to be able to play my 
>>> own music, streamed 

Re: [google-appengine] Re: Google App Engine & Google Play Music... making apps that manage playlists on GAE

2015-11-13 Thread Cliff Hill
I did, it won't work because Google is blocking the url s for Google Play
Music from being accessed by Google App Engine.

People wanting "smart playlist" capabilities are not measured "in tens", it
is something a lot of people I have seen online ask for. This, to me, is a
way it can be accomplished. They already have the api built, just not
published or available in various languages (the interface is REST, and is
how the unofficial api accesses everything). Google just needs someone to
write a thin wrapper over it and make it available, or at the very least,
remove the blocking so the existing unofficial api can work.

On Fri, Nov 13, 2015, 10:44 AM Paul Canning  wrote:

> The thing is, it IS asking a lot. It's not like it'll take one guy an
> afternoon of work.
>
> I highly doubt they'll make any form of API for Google Music, as you can
> create playlists etc on the website already. People wanting an API for
> their own personal projects are going to be numbered in the tens.
>
> If there is an unofficial Python API, have you looked into why it doesn't
> work on GAE? I think you'd be able to get that working much sooner then
> Google making a GM API (ie never)
>
>
> On Friday, November 13, 2015 at 3:09:16 PM UTC, Cliff Hill wrote:
>>
>> Before I start, I want to make it very clear -- I am not talking about
>> having a google app engine app that controls streaming music in any way,
>> just having the ability to manage/manipulate playlists, as well as the
>> metadata for tracks/songs I have in google play music.  I want to propose
>> Google make an API available for their music service to accomplish this.
>> There already is an unofficial API in Python that allows this, but it is
>> unofficial, and it doesn't seem to work in google app engine.
>>
>> A little backstory:
>>
>> I have a scheme for automatically manipulating a playlist that changes
>> each day, cycling through my music library, which now exists on Google Play
>> Music. I had started from iTunes, which gave me the ability to construct
>> "smart playlists", which essentially allowed me to apply set theory
>> concepts to music -- setting up relationships between songs, and using that
>> to structure sets of playlists that all automatically update as my music
>> was being played -- all for free. I used it to automatically load my phone
>> with a bunch of songs each day, which then I could play, and when I
>> re-synchronized my iPhone with iTunes, it would remove my played songs, and
>> add new songs to my phone automatically.
>>
>> However, I'm not an avid Apple user... in fact, I generally prefer
>> avoiding it. I am a Linux user (and I had to make a VM instance to install
>> Windows just to get iTunes to work correctly back then). So, when my Gen 1
>> iPhone's 2-year contract was ended, I switched to another phone... and
>> stopped using iTunes. However, I found another way to continue my "smart
>> playlist", through the streaming server called Firefly, I just set up my
>> own server, installed, firefly, had all my music available on it, and could
>> get it to do what I did in iTunes, all without me needing my phone.
>> Eventually, I migrated to Squeezebox Server and did a similar trick on that
>> (because Firefly was... unstable). This worked (mostly) fine, until my
>> server died. As I went to rebuild my playlist, I gave up on squeezebox
>> server, because I didn't like managing it through SQL.  I then switched to
>> mpd (music player daemon), and figured out how to manage the playlists
>> through my own hand in Python, and got it functional again, only after a
>> few years having my new server die as well.
>>
>> Google offers the Play Music service, which allowed me to upload my music
>> library to it, this solves the problem of my personal server failing on me.
>> Google also offers Google App Engine for Python.  Essentially, these two
>> services would be a perfect fit for me -- I could build my playlist
>> generator in Google App Engine, and have it manage my playlist in Google
>> Play Music, and simply then use my playlist in Google Play Music, returning
>> back to being able to play my music from my (Google Nexus) phone.  Except:
>> There is no official Google Play Music API available to use in Google App
>> Engine, and using the unofficial Python API doesn't work because Google
>> blocks this access. I could write my code to make it work from my own
>> server without using Google App Engine, but I would rather a solution that
>> is cloud-based. Since it is Google talking to Google, I would think it
>> shouldn't be too hard to do.
>>
>> I don't have an All Access account, I just want to be able to play my own
>> music, streamed through Google Play Music, and have a way to manage my
>> playlist, preferably through Google App Engine. The API doesn't need to be
>> all that advanced: Just playlist management (CRUD) controls (listing
>> playlists, creating/deleting/updating a playlist), and the ability to see
>> all my 

Re: [google-appengine] Re: Google App Engine & Google Play Music... making apps that manage playlists on GAE

2015-11-13 Thread Cliff Hill
I am going to be forced to do so. I was hoping for a full Google
implementation, where I don't have to go outside of Google to use Google
services with Google services.

*"I'm not responcabel fer my comuter's spleling errnors"** - Xlorep
DarkHelm*
Website: http://darkhelm.org

On Fri, Nov 13, 2015 at 11:02 AM, Paul Canning  wrote:

> If you want to use the API so badly, why not use a non GAE server setup?
>
> On Friday, November 13, 2015 at 3:52:56 PM UTC, Cliff Hill wrote:
>>
>> I did, it won't work because Google is blocking the url s for Google Play
>> Music from being accessed by Google App Engine.
>>
>> People wanting "smart playlist" capabilities are not measured "in tens",
>> it is something a lot of people I have seen online ask for. This, to me, is
>> a way it can be accomplished. They already have the api built, just not
>> published or available in various languages (the interface is REST, and is
>> how the unofficial api accesses everything). Google just needs someone to
>> write a thin wrapper over it and make it available, or at the very least,
>> remove the blocking so the existing unofficial api can work.
>>
>> On Fri, Nov 13, 2015, 10:44 AM Paul Canning 
>> wrote:
>>
>>> The thing is, it IS asking a lot. It's not like it'll take one guy an
>>> afternoon of work.
>>>
>>> I highly doubt they'll make any form of API for Google Music, as you can
>>> create playlists etc on the website already. People wanting an API for
>>> their own personal projects are going to be numbered in the tens.
>>>
>>> If there is an unofficial Python API, have you looked into why it
>>> doesn't work on GAE? I think you'd be able to get that working much sooner
>>> then Google making a GM API (ie never)
>>>
>>>
>>> On Friday, November 13, 2015 at 3:09:16 PM UTC, Cliff Hill wrote:

 Before I start, I want to make it very clear -- I am not talking about
 having a google app engine app that controls streaming music in any way,
 just having the ability to manage/manipulate playlists, as well as the
 metadata for tracks/songs I have in google play music.  I want to propose
 Google make an API available for their music service to accomplish this.
 There already is an unofficial API in Python that allows this, but it is
 unofficial, and it doesn't seem to work in google app engine.

 A little backstory:

 I have a scheme for automatically manipulating a playlist that changes
 each day, cycling through my music library, which now exists on Google Play
 Music. I had started from iTunes, which gave me the ability to construct
 "smart playlists", which essentially allowed me to apply set theory
 concepts to music -- setting up relationships between songs, and using that
 to structure sets of playlists that all automatically update as my music
 was being played -- all for free. I used it to automatically load my phone
 with a bunch of songs each day, which then I could play, and when I
 re-synchronized my iPhone with iTunes, it would remove my played songs, and
 add new songs to my phone automatically.

 However, I'm not an avid Apple user... in fact, I generally prefer
 avoiding it. I am a Linux user (and I had to make a VM instance to install
 Windows just to get iTunes to work correctly back then). So, when my Gen 1
 iPhone's 2-year contract was ended, I switched to another phone... and
 stopped using iTunes. However, I found another way to continue my "smart
 playlist", through the streaming server called Firefly, I just set up my
 own server, installed, firefly, had all my music available on it, and could
 get it to do what I did in iTunes, all without me needing my phone.
 Eventually, I migrated to Squeezebox Server and did a similar trick on that
 (because Firefly was... unstable). This worked (mostly) fine, until my
 server died. As I went to rebuild my playlist, I gave up on squeezebox
 server, because I didn't like managing it through SQL.  I then switched to
 mpd (music player daemon), and figured out how to manage the playlists
 through my own hand in Python, and got it functional again, only after a
 few years having my new server die as well.

 Google offers the Play Music service, which allowed me to upload my
 music library to it, this solves the problem of my personal server failing
 on me. Google also offers Google App Engine for Python.  Essentially, these
 two services would be a perfect fit for me -- I could build my playlist
 generator in Google App Engine, and have it manage my playlist in Google
 Play Music, and simply then use my playlist in Google Play Music, returning
 back to being able to play my music from my (Google Nexus) phone.  Except:
 There is no official Google Play Music API available to use in Google App
 Engine, and using the unofficial Python API doesn't work 

Re: [google-appengine] Re: Google App Engine & Google Play Music... making apps that manage playlists on GAE

2015-11-13 Thread Cliff Hill
Looks like my issue was with python's requests library. I ended up getting 
it working with the Unofficial Python API, so I can continue. Would be nice 
to have an official API, but the Unofficial one works.

On Friday, November 13, 2015 at 1:29:42 PM UTC-5, Cliff Hill wrote:
>
> I am going to be forced to do so. I was hoping for a full Google 
> implementation, where I don't have to go outside of Google to use Google 
> services with Google services.
>
> *"I'm not responcabel fer my comuter's spleling errnors"** - Xlorep 
> DarkHelm*
> Website: http://darkhelm.org
>
> On Fri, Nov 13, 2015 at 11:02 AM, Paul Canning  
> wrote:
>
>> If you want to use the API so badly, why not use a non GAE server setup?
>>
>> On Friday, November 13, 2015 at 3:52:56 PM UTC, Cliff Hill wrote:
>>>
>>> I did, it won't work because Google is blocking the url s for Google 
>>> Play Music from being accessed by Google App Engine.
>>>
>>> People wanting "smart playlist" capabilities are not measured "in tens", 
>>> it is something a lot of people I have seen online ask for. This, to me, is 
>>> a way it can be accomplished. They already have the api built, just not 
>>> published or available in various languages (the interface is REST, and is 
>>> how the unofficial api accesses everything). Google just needs someone to 
>>> write a thin wrapper over it and make it available, or at the very least, 
>>> remove the blocking so the existing unofficial api can work.
>>>
>>> On Fri, Nov 13, 2015, 10:44 AM Paul Canning  
>>> wrote:
>>>
 The thing is, it IS asking a lot. It's not like it'll take one guy an 
 afternoon of work.

 I highly doubt they'll make any form of API for Google Music, as you 
 can create playlists etc on the website already. People wanting an API for 
 their own personal projects are going to be numbered in the tens.

 If there is an unofficial Python API, have you looked into why it 
 doesn't work on GAE? I think you'd be able to get that working much sooner 
 then Google making a GM API (ie never)


 On Friday, November 13, 2015 at 3:09:16 PM UTC, Cliff Hill wrote:
>
> Before I start, I want to make it very clear -- I am not talking about 
> having a google app engine app that controls streaming music in any way, 
> just having the ability to manage/manipulate playlists, as well as the 
> metadata for tracks/songs I have in google play music.  I want to propose 
> Google make an API available for their music service to accomplish this. 
> There already is an unofficial API in Python that allows this, but it is 
> unofficial, and it doesn't seem to work in google app engine.
>
> A little backstory:
>
> I have a scheme for automatically manipulating a playlist that changes 
> each day, cycling through my music library, which now exists on Google 
> Play 
> Music. I had started from iTunes, which gave me the ability to construct 
> "smart playlists", which essentially allowed me to apply set theory 
> concepts to music -- setting up relationships between songs, and using 
> that 
> to structure sets of playlists that all automatically update as my music 
> was being played -- all for free. I used it to automatically load my 
> phone 
> with a bunch of songs each day, which then I could play, and when I 
> re-synchronized my iPhone with iTunes, it would remove my played songs, 
> and 
> add new songs to my phone automatically.
>
> However, I'm not an avid Apple user... in fact, I generally prefer 
> avoiding it. I am a Linux user (and I had to make a VM instance to 
> install 
> Windows just to get iTunes to work correctly back then). So, when my Gen 
> 1 
> iPhone's 2-year contract was ended, I switched to another phone... and 
> stopped using iTunes. However, I found another way to continue my "smart 
> playlist", through the streaming server called Firefly, I just set up my 
> own server, installed, firefly, had all my music available on it, and 
> could 
> get it to do what I did in iTunes, all without me needing my phone. 
> Eventually, I migrated to Squeezebox Server and did a similar trick on 
> that 
> (because Firefly was... unstable). This worked (mostly) fine, until my 
> server died. As I went to rebuild my playlist, I gave up on squeezebox 
> server, because I didn't like managing it through SQL.  I then switched 
> to 
> mpd (music player daemon), and figured out how to manage the playlists 
> through my own hand in Python, and got it functional again, only after a 
> few years having my new server die as well.
>
> Google offers the Play Music service, which allowed me to upload my 
> music library to it, this solves the problem of my personal server 
> failing 
> on me. Google also offers Google App Engine