yutipy 2.2.11__tar.gz → 2.2.12__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-2.2.11 → yutipy-2.2.12}/PKG-INFO +1 -1
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/itunes.py +8 -11
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/lastfm.py +1 -1
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy.egg-info/PKG-INFO +1 -1
- {yutipy-2.2.11 → yutipy-2.2.12}/.gitattributes +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/.github/FUNDING.yml +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/.github/dependabot.yml +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/.github/workflows/pytest-unit-testing.yml +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/.github/workflows/release.yml +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/.gitignore +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/.readthedocs.yaml +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/LICENSE +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/MANIFEST.in +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/README.md +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/Makefile +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/_static/yutipy_header.png +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/_static/yutipy_logo.png +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/api_reference.rst +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/available_platforms.rst +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/cli.rst +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/conf.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/faq.rst +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/index.rst +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/installation.rst +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/make.bat +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/requirements.txt +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/docs/usage_examples.rst +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/pyproject.toml +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/requirements-dev.txt +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/requirements.txt +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/setup.cfg +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/tests/__init__.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/tests/test_deezer.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/tests/test_itunes.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/tests/test_kkbox.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/tests/test_lastfm.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/tests/test_models.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/tests/test_musicyt.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/tests/test_spotify.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/tests/test_utils.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/__init__.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/base_clients.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/cli/__init__.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/cli/config.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/cli/search.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/deezer.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/exceptions.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/kkbox.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/logger.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/models.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/musicyt.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/spotify.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/utils/__init__.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/utils/helpers.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy/yutipy_music.py +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy.egg-info/SOURCES.txt +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy.egg-info/dependency_links.txt +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy.egg-info/entry_points.txt +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy.egg-info/requires.txt +0 -0
- {yutipy-2.2.11 → yutipy-2.2.12}/yutipy.egg-info/top_level.txt +0 -0
|
@@ -183,17 +183,14 @@ class Itunes:
|
|
|
183
183
|
tuple
|
|
184
184
|
The extracted album title and type.
|
|
185
185
|
"""
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
return result["collectionName"], (
|
|
195
|
-
result["wrapperType"] if guessed_right else guess
|
|
196
|
-
)
|
|
186
|
+
|
|
187
|
+
guess = guess_album_type(result.get("trackCount", 1))
|
|
188
|
+
guessed_right = are_strings_similar(
|
|
189
|
+
result.get("wrapperType", "x"), guess, use_translation=False
|
|
190
|
+
)
|
|
191
|
+
return result["collectionName"], (
|
|
192
|
+
result["wrapperType"] if guessed_right else guess
|
|
193
|
+
)
|
|
197
194
|
|
|
198
195
|
def _format_release_date(self, release_date: str) -> str:
|
|
199
196
|
"""
|
|
@@ -154,7 +154,7 @@ class LastFm:
|
|
|
154
154
|
artists=", ".join(
|
|
155
155
|
separate_artists(result.get("artist", {}).get("#text"))
|
|
156
156
|
),
|
|
157
|
-
id=result.get("mbid"),
|
|
157
|
+
id=result.get("mbid") if result.get("mbid") else None,
|
|
158
158
|
timestamp=result.get("date", {}).get("uts") or time(),
|
|
159
159
|
title=result.get("name"),
|
|
160
160
|
url=result.get("url"),
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|