adibaewa / pylast

Automatically exported from code.google.com/p/pylast
Apache License 2.0
0 stars 0 forks source link

problem with get_*_by_mbid #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please type example code that produces the issue:
>>  lfn = pylast.get_lastfm_network(API_KEY, API_SECRET)
>>  lfn.get_artist_by_mbid('f467181e-d5e0-4285-b47e-e853dcc89ee7')

What is the expected output? What do you see instead?

/usr/lib/python2.5/site-packages/pylast-0.4.9-py2.5.egg/pylast.pyc in
__init__(self, network, method_name, params)
    775                 self.network = network
    776 
--> 777                 (self.api_key, self.api_secret, self.session_key) =
network._get_ws_auth(False)
    778 
    779                 self.params["api_key"] = self.api_key

AttributeError: 'str' object has no attribute '_get_ws_auth'

What version of pyLast is this?
0.4

Original issue reported on code.google.com by kur...@gmail.com on 8 Sep 2009 at 2:49

GoogleCodeExporter commented 9 years ago
i've created a patch that fixes get_artist_by_mbid and get_track_by_mbid - 
however
get_album_by_mbid seems to throw a WSError now...  no time to look into this 
now...

hope this helps :-)

Original comment by kur...@gmail.com on 8 Sep 2009 at 2:55

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r208.

Original comment by amr.hassan on 8 Sep 2009 at 3:06