yutipy 2.2.8__py3-none-any.whl → 2.2.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of yutipy might be problematic. Click here for more details.

yutipy/base_clients.py CHANGED
@@ -96,7 +96,7 @@ class BaseClient:
96
96
  "`load_access_token` is not implemented. Falling back to in-memory storage and requesting new access token."
97
97
  )
98
98
  finally:
99
- if not token_info:
99
+ if not token_info or not token_info.get("access_token"):
100
100
  token_info = self._get_access_token()
101
101
  self._access_token = token_info.get("access_token")
102
102
  self._token_expires_in = token_info.get("expires_in")
@@ -325,7 +325,7 @@ class BaseAuthClient:
325
325
  "`load_access_token` is not implemented. Falling back to in-memory storage."
326
326
  )
327
327
  finally:
328
- if token_info:
328
+ if token_info and token_info.get("access_token"):
329
329
  self._access_token = token_info.get("access_token")
330
330
  self._refresh_token = token_info.get("refresh_token")
331
331
  self._token_expires_in = token_info.get("expires_in")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yutipy
3
- Version: 2.2.8
3
+ Version: 2.2.9
4
4
  Summary: A simple package for retrieving music information from various music platforms APIs.
5
5
  Author: Cheap Nightbot
6
6
  Author-email: Cheap Nightbot <hi@cheapnightbot.slmail.me>
@@ -1,5 +1,5 @@
1
1
  yutipy/__init__.py,sha256=Zrw3cr_6khXp1IgQdZxGcUM9A64GYgPs-6rlqSukW5Q,294
2
- yutipy/base_clients.py,sha256=lZ-bAYoURBup6Vdg_UFYT7QbzO7pw6DzxkHoIU0DYo4,21582
2
+ yutipy/base_clients.py,sha256=AnBE4JG--tet7rqiB59tKqFWo3H01wJo4nGvvqdF7dM,21655
3
3
  yutipy/deezer.py,sha256=egsaR-4fQP1V8eOPi1UcxvnLB5495FjbtNs8si6XZbE,10491
4
4
  yutipy/exceptions.py,sha256=zz0XyyZr5xRcmRyw3hdTGaVRcwRn_RSYZdmwmuO0sEM,1379
5
5
  yutipy/itunes.py,sha256=pGAAQ0nlyIx5Ustbp4T27GMsH5C9VIQ8tTTEOMQViQc,7535
@@ -15,9 +15,9 @@ yutipy/cli/config.py,sha256=e5RIq6RxVxxzx30nKVMa06gwyQ258s7U0WA1xvJuR_0,4543
15
15
  yutipy/cli/search.py,sha256=8SQw0bjRzRqAg-FuVz9aWjB2KBZqmCf38SyKAQ3rx5E,3025
16
16
  yutipy/utils/__init__.py,sha256=AZaqvs6AJwnqwJuodbGnHu702WSUqc8plVC16SppOcU,239
17
17
  yutipy/utils/helpers.py,sha256=W3g9iqoSygcFFCKCp2sk0NQrZOEG26wI2XuNi9pgAXE,5207
18
- yutipy-2.2.8.dist-info/licenses/LICENSE,sha256=_89JsS2QnBG8tAb5-VWbJDj_uJ002zPJAYBJJdh3DPY,1071
19
- yutipy-2.2.8.dist-info/METADATA,sha256=r4FYvK0TnwdkYkLoSsQTQgVuYgH1gf_dNXBSf_dcZmw,6522
20
- yutipy-2.2.8.dist-info/WHEEL,sha256=7ciDxtlje1X8OhobNuGgi1t-ACdFSelPnSmDPrtlobY,91
21
- yutipy-2.2.8.dist-info/entry_points.txt,sha256=BrgmanaPjQqKQ3Ip76JLcsPgGANtrBSURf5CNIxl1HA,106
22
- yutipy-2.2.8.dist-info/top_level.txt,sha256=t2A5V2_mUcfnHkbCy6tAQlb3909jDYU5GQgXtA4756I,7
23
- yutipy-2.2.8.dist-info/RECORD,,
18
+ yutipy-2.2.9.dist-info/licenses/LICENSE,sha256=_89JsS2QnBG8tAb5-VWbJDj_uJ002zPJAYBJJdh3DPY,1071
19
+ yutipy-2.2.9.dist-info/METADATA,sha256=bdAJFSuIQJGegJI1bMpnqyg0w_eDMeJV4wqdUgUlRNg,6522
20
+ yutipy-2.2.9.dist-info/WHEEL,sha256=7ciDxtlje1X8OhobNuGgi1t-ACdFSelPnSmDPrtlobY,91
21
+ yutipy-2.2.9.dist-info/entry_points.txt,sha256=BrgmanaPjQqKQ3Ip76JLcsPgGANtrBSURf5CNIxl1HA,106
22
+ yutipy-2.2.9.dist-info/top_level.txt,sha256=t2A5V2_mUcfnHkbCy6tAQlb3909jDYU5GQgXtA4756I,7
23
+ yutipy-2.2.9.dist-info/RECORD,,
File without changes