tamland / python-tidal

Python API for TIDAL music streaming service
GNU Lesser General Public License v3.0
406 stars 110 forks source link

login failed - got key error 'picture' #129

Closed m0555 closed 1 year ago

m0555 commented 1 year ago

Hi, Today I can not login anymore and got a key error 'picture' on login could it be, that Tidal has removed picture_id from user account?

I tryed to comment out line 77 in user.py self.picture_id = json_obj['picture'] and that works.

Thanks Marc

frogleon commented 1 year ago

I'm also facing same issue, I had to make it

self.picture_id = json_obj['picture'] if 'picture' in json_obj else ''
ghost commented 1 year ago

Hi, Today I can not login anymore and got a key error 'picture' on login could it be, that Tidal has removed picture_id from user account?

I tryed to comment out line 77 in user.py self.picture_id = json_obj['picture'] and that works.

Thanks Marc

How did you comment this out when using the API?

m0555 commented 1 year ago

How did you comment this out when using the API?

For me (on windows 10) the path to tidalapi is: C:\Users\myusername\AppData\Local\Programs\Python\Python311\Lib\site-packages\tidalapi, but maybe there is another location depending of your installation Edit the file user.py comment out line 77 # self.picture_id = json_obj['picture'] and add the line: self.picture_id = json_obj.get('picture', '')

ghost commented 1 year ago

How did you comment this out when using the API?

For me (on windows 10) the path to tidalapi is: C:\Users\myusername\AppData\Local\Programs\Python\Python311\Lib\site-packages\tidalapi, but maybe there is another location depending of your installation Edit the file user.py comment out line 77 # self.picture_id = json_obj['picture'] and add the line: self.picture_id = json_obj.get('picture', '')

I'm using Google Colaboratory so I don't know where the file would be located. Any idea how to do this there?

m0555 commented 1 year ago

I'm using Google Colaboratory so I don't know where the file would be located. Any idea how to do this there?

I'm not familiar with Google Colab, but maybe you could fork/edit tidalapi at github and Google Colab let you install your own version until the original library is fixed?

ghost commented 1 year ago

I'm just going to run it locally now until it's fixed

LynxWall commented 1 year ago

same issue here on raspberry pi, commented out line 77 to get it working. Wish I would have seen this sooner :) Will wait for next release instead of using fork.

tehkillerbee commented 1 year ago

Fixed in #130 , will update PyPi package asap.