yutipy 1.7.0__tar.gz → 2.0.0__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.
- {yutipy-1.7.0 → yutipy-2.0.0}/PKG-INFO +1 -1
- yutipy-2.0.0/yutipy/__init__.py +21 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/spotify.py +4 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/utils/__init__.py +2 -6
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/PKG-INFO +1 -1
- yutipy-1.7.0/yutipy/__init__.py +0 -18
- {yutipy-1.7.0 → yutipy-2.0.0}/.gitattributes +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/.github/FUNDING.yml +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/.github/dependabot.yml +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/.github/workflows/pytest-unit-testing.yml +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/.github/workflows/release.yml +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/.gitignore +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/.readthedocs.yaml +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/LICENSE +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/MANIFEST.in +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/README.md +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/Makefile +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/_static/yutipy_header.png +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/_static/yutipy_logo.png +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/api_reference.rst +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/available_platforms.rst +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/cli.rst +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/conf.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/faq.rst +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/index.rst +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/installation.rst +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/make.bat +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/requirements.txt +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/docs/usage_examples.rst +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/pyproject.toml +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/requirements-dev.txt +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/requirements.txt +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/setup.cfg +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/tests/__init__.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_deezer.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_itunes.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_kkbox.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_models.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_musicyt.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_spotify.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_utils.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_yutipy_music.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/cli/__init__.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/cli/config.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/cli/search.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/deezer.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/exceptions.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/itunes.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/kkbox.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/logger.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/models.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/musicyt.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/utils/helpers.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/yutipy_music.py +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/SOURCES.txt +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/dependency_links.txt +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/entry_points.txt +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/requires.txt +0 -0
- {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from yutipy import (
|
|
2
|
+
deezer,
|
|
3
|
+
exceptions,
|
|
4
|
+
itunes,
|
|
5
|
+
kkbox,
|
|
6
|
+
logger,
|
|
7
|
+
musicyt,
|
|
8
|
+
spotify,
|
|
9
|
+
yutipy_music,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"deezer",
|
|
14
|
+
"exceptions",
|
|
15
|
+
"itunes",
|
|
16
|
+
"kkbox",
|
|
17
|
+
"logger",
|
|
18
|
+
"musicyt",
|
|
19
|
+
"spotify",
|
|
20
|
+
"yutipy_music",
|
|
21
|
+
]
|
|
@@ -876,10 +876,14 @@ class SpotifyAuth:
|
|
|
876
876
|
if state != expected_state:
|
|
877
877
|
raise SpotifyAuthException("state does not match!")
|
|
878
878
|
|
|
879
|
+
token_info = None
|
|
880
|
+
|
|
879
881
|
try:
|
|
880
882
|
token_info = self.load_access_token()
|
|
881
883
|
except NotImplementedError as e:
|
|
882
884
|
logger.warning(e)
|
|
885
|
+
|
|
886
|
+
if not token_info:
|
|
883
887
|
token_info = self.__get_access_token(authorization_code=code)
|
|
884
888
|
|
|
885
889
|
self.__access_token = token_info.get("access_token")
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
from .helpers import (
|
|
1
|
+
from yutipy.utils.helpers import (
|
|
2
2
|
are_strings_similar,
|
|
3
3
|
guess_album_type,
|
|
4
4
|
is_valid_string,
|
|
5
5
|
separate_artists,
|
|
6
6
|
)
|
|
7
|
-
from ..logger import disable_logging, enable_logging
|
|
8
|
-
|
|
9
7
|
__all__ = [
|
|
10
|
-
"guess_album_type",
|
|
11
8
|
"are_strings_similar",
|
|
9
|
+
"guess_album_type",
|
|
12
10
|
"is_valid_string",
|
|
13
11
|
"separate_artists",
|
|
14
|
-
"enable_logging",
|
|
15
|
-
"disable_logging"
|
|
16
12
|
]
|
yutipy-1.7.0/yutipy/__init__.py
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
from .deezer import Deezer
|
|
2
|
-
from .itunes import Itunes
|
|
3
|
-
from .kkbox import KKBox
|
|
4
|
-
from .musicyt import MusicYT
|
|
5
|
-
from .spotify import Spotify
|
|
6
|
-
from .utils import disable_logging, enable_logging
|
|
7
|
-
from .yutipy_music import YutipyMusic
|
|
8
|
-
|
|
9
|
-
__all__ = [
|
|
10
|
-
"Deezer",
|
|
11
|
-
"Itunes",
|
|
12
|
-
"KKBox",
|
|
13
|
-
"MusicYT",
|
|
14
|
-
"Spotify",
|
|
15
|
-
"YutipyMusic",
|
|
16
|
-
"enable_logging",
|
|
17
|
-
"disable_logging",
|
|
18
|
-
]
|
|
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
|
|
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
|