m3uGoogleMusicSync icon indicating copy to clipboard operation
m3uGoogleMusicSync copied to clipboard

Backtrace : no attribute 'create_playlist' with last unofficial google music api

Open matclab opened this issue 12 years ago • 3 comments

Trying to add a playlist with :

ms.sync_playlist("/var/lib/mpd/playlists/s13.m3u")

and the today head of the git repo for unofficial google music api, I get the following backtrace :

Traceback (most recent call last):
  File "example.py", line 7, in <module>
    ms.sync_playlist("/var/lib/mpd/playlists/s13.m3u")
  File "/home/clabaut/contrib/m3uGoogleMusicSync/musicsync.py", line 101, in sync_playlist
    self.playlists['user'][title] = [self.wc.create_playlist(title)]
AttributeError: 'Webclient' object has no attribute 'create_playlist'

matclab avatar Oct 02 '13 12:10 matclab

I'll have a look as soon as I'm able. I'm about to head overseas though so might be a little while.

Tyris avatar Oct 02 '13 12:10 Tyris

Did you try using gmusicapi==2013.02.27 (from the requirements.txt: pip install -r requirements.txt) I don't know if that version of gmusicapi still works (Google change their end quite a lot and gmusicapi gets updated to reflect that often) but its worth a try. Once I get some time I'll migrate the library over to gmusicapi's new MobileClient.

Tyris avatar Oct 02 '13 22:10 Tyris

In fact I tried with an old version of gmusicapi (but I didn't note exactly which one) and get a lot of exceptions. So I updated to the last one (which worked well with gmusicproxy application).

I'll see if I can manage some time to work out a patch for using Mobileclient.

2013/10/3 Tom Graham [email protected]

Did you try using gmusicapi==2013.02.27 (from the requirements.txt: pip install -r requirements.txt) I don't know if that version of gmusicapi still works (Google change their end quite a lot and gmusicapi gets updated to reflect that often) but its worth a try. Once I get some time I'll migrate the library over to gmusicapi's new MobileClient.

— Reply to this email directly or view it on GitHubhttps://github.com/Tyris/m3uGoogleMusicSync/issues/7#issuecomment-25581653 .

matclab avatar Oct 03 '13 06:10 matclab