Skip to content

Commit

Permalink
Fixed tidalapi due to TIDAL API change (temporary fix) (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
orenskl authored Jul 29, 2023
1 parent 1ba52ca commit 60879de
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/python/tidalapi/patches/tidalapi-00001-gender.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -ruN tidalapi-0.7.1/tidalapi/user.py tidalapi-0.7.1.new/tidalapi/user.py
--- tidalapi-0.7.1/tidalapi/user.py 2023-05-22 22:46:49.000000000 +0300
+++ tidalapi-0.7.1.new/tidalapi/user.py 2023-07-25 15:47:37.237847929 +0300
@@ -111,7 +111,7 @@
self.created = dateutil.parser.isoparse(json_obj["created"])
self.newsletter = json_obj["newsletter"]
self.accepted_eula = json_obj["acceptedEULA"]
- self.gender = json_obj["gender"]
+ self.gender = json_obj.get("gender", "not specified")
self.date_of_birth = json_obj["dateOfBirth"]
self.facebook_uid = json_obj["facebookUid"]
self.apple_uid = json_obj["appleUid"]

0 comments on commit 60879de

Please sign in to comment.