yutipy 2.2.7__tar.gz → 2.2.9__tar.gz

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.

Files changed (62) hide show
  1. {yutipy-2.2.7 → yutipy-2.2.9}/PKG-INFO +1 -1
  2. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/base_clients.py +2 -2
  3. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy.egg-info/PKG-INFO +1 -1
  4. {yutipy-2.2.7 → yutipy-2.2.9}/.gitattributes +0 -0
  5. {yutipy-2.2.7 → yutipy-2.2.9}/.github/FUNDING.yml +0 -0
  6. {yutipy-2.2.7 → yutipy-2.2.9}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  7. {yutipy-2.2.7 → yutipy-2.2.9}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  8. {yutipy-2.2.7 → yutipy-2.2.9}/.github/dependabot.yml +0 -0
  9. {yutipy-2.2.7 → yutipy-2.2.9}/.github/workflows/pytest-unit-testing.yml +0 -0
  10. {yutipy-2.2.7 → yutipy-2.2.9}/.github/workflows/release.yml +0 -0
  11. {yutipy-2.2.7 → yutipy-2.2.9}/.gitignore +0 -0
  12. {yutipy-2.2.7 → yutipy-2.2.9}/.readthedocs.yaml +0 -0
  13. {yutipy-2.2.7 → yutipy-2.2.9}/LICENSE +0 -0
  14. {yutipy-2.2.7 → yutipy-2.2.9}/MANIFEST.in +0 -0
  15. {yutipy-2.2.7 → yutipy-2.2.9}/README.md +0 -0
  16. {yutipy-2.2.7 → yutipy-2.2.9}/docs/Makefile +0 -0
  17. {yutipy-2.2.7 → yutipy-2.2.9}/docs/_static/yutipy_header.png +0 -0
  18. {yutipy-2.2.7 → yutipy-2.2.9}/docs/_static/yutipy_logo.png +0 -0
  19. {yutipy-2.2.7 → yutipy-2.2.9}/docs/api_reference.rst +0 -0
  20. {yutipy-2.2.7 → yutipy-2.2.9}/docs/available_platforms.rst +0 -0
  21. {yutipy-2.2.7 → yutipy-2.2.9}/docs/cli.rst +0 -0
  22. {yutipy-2.2.7 → yutipy-2.2.9}/docs/conf.py +0 -0
  23. {yutipy-2.2.7 → yutipy-2.2.9}/docs/faq.rst +0 -0
  24. {yutipy-2.2.7 → yutipy-2.2.9}/docs/index.rst +3 -3
  25. {yutipy-2.2.7 → yutipy-2.2.9}/docs/installation.rst +0 -0
  26. {yutipy-2.2.7 → yutipy-2.2.9}/docs/make.bat +0 -0
  27. {yutipy-2.2.7 → yutipy-2.2.9}/docs/requirements.txt +0 -0
  28. {yutipy-2.2.7 → yutipy-2.2.9}/docs/usage_examples.rst +0 -0
  29. {yutipy-2.2.7 → yutipy-2.2.9}/pyproject.toml +0 -0
  30. {yutipy-2.2.7 → yutipy-2.2.9}/requirements-dev.txt +0 -0
  31. {yutipy-2.2.7 → yutipy-2.2.9}/requirements.txt +0 -0
  32. {yutipy-2.2.7 → yutipy-2.2.9}/setup.cfg +0 -0
  33. {yutipy-2.2.7 → yutipy-2.2.9}/tests/__init__.py +0 -0
  34. {yutipy-2.2.7 → yutipy-2.2.9}/tests/test_deezer.py +0 -0
  35. {yutipy-2.2.7 → yutipy-2.2.9}/tests/test_itunes.py +0 -0
  36. {yutipy-2.2.7 → yutipy-2.2.9}/tests/test_kkbox.py +0 -0
  37. {yutipy-2.2.7 → yutipy-2.2.9}/tests/test_lastfm.py +0 -0
  38. {yutipy-2.2.7 → yutipy-2.2.9}/tests/test_models.py +0 -0
  39. {yutipy-2.2.7 → yutipy-2.2.9}/tests/test_musicyt.py +0 -0
  40. {yutipy-2.2.7 → yutipy-2.2.9}/tests/test_spotify.py +0 -0
  41. {yutipy-2.2.7 → yutipy-2.2.9}/tests/test_utils.py +0 -0
  42. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/__init__.py +0 -0
  43. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/cli/__init__.py +0 -0
  44. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/cli/config.py +0 -0
  45. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/cli/search.py +0 -0
  46. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/deezer.py +0 -0
  47. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/exceptions.py +0 -0
  48. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/itunes.py +0 -0
  49. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/kkbox.py +0 -0
  50. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/lastfm.py +0 -0
  51. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/logger.py +0 -0
  52. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/models.py +0 -0
  53. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/musicyt.py +0 -0
  54. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/spotify.py +0 -0
  55. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/utils/__init__.py +0 -0
  56. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/utils/helpers.py +0 -0
  57. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy/yutipy_music.py +0 -0
  58. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy.egg-info/SOURCES.txt +0 -0
  59. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy.egg-info/dependency_links.txt +0 -0
  60. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy.egg-info/entry_points.txt +0 -0
  61. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy.egg-info/requires.txt +0 -0
  62. {yutipy-2.2.7 → yutipy-2.2.9}/yutipy.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yutipy
3
- Version: 2.2.7
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>
@@ -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.7
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>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -12,12 +12,12 @@ This documentation will help you get started with yutipy and provide detailed in
12
12
  <a href="https://github.com/CheapNightbot/yutipy/actions/workflows/tests.yml">
13
13
  <img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/cheapnightbot/yutipy/pytest-unit-testing.yml?style=for-the-badge&label=Pytest">
14
14
  </a>
15
- <a href="https://pypi.org/project/yutipy/">
16
- <img src="https://img.shields.io/pypi/v/yutipy?style=for-the-badge" alt="PyPI" />
17
- </a>
18
15
  <a href="https://yutipy.readthedocs.io/en/latest/">
19
16
  <img src="https://img.shields.io/readthedocs/yutipy?style=for-the-badge" alt="Documentation Status" />
20
17
  </a>
18
+ <a href="https://pypi.org/project/yutipy/">
19
+ <img src="https://img.shields.io/pypi/v/yutipy?style=for-the-badge" alt="PyPI" />
20
+ </a>
21
21
  <a href="https://github.com/CheapNightbot/yutipy/blob/master/LICENSE">
22
22
  <img src="https://img.shields.io/github/license/CheapNightbot/yutipy?style=for-the-badge" alt="License" />
23
23
  </a>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes