yutipy 2.2.1__tar.gz → 2.2.2__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.1 → yutipy-2.2.2}/PKG-INFO +1 -1
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/logger.py +5 -2
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy.egg-info/PKG-INFO +1 -1
- {yutipy-2.2.1 → yutipy-2.2.2}/.gitattributes +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/.github/FUNDING.yml +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/.github/dependabot.yml +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/.github/workflows/pytest-unit-testing.yml +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/.github/workflows/release.yml +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/.gitignore +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/.readthedocs.yaml +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/LICENSE +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/MANIFEST.in +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/README.md +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/Makefile +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/_static/yutipy_header.png +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/_static/yutipy_logo.png +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/api_reference.rst +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/available_platforms.rst +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/cli.rst +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/conf.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/faq.rst +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/index.rst +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/installation.rst +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/make.bat +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/requirements.txt +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/docs/usage_examples.rst +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/pyproject.toml +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/requirements-dev.txt +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/requirements.txt +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/setup.cfg +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/tests/__init__.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/tests/test_deezer.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/tests/test_itunes.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/tests/test_kkbox.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/tests/test_lastfm.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/tests/test_models.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/tests/test_musicyt.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/tests/test_spotify.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/tests/test_utils.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/__init__.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/cli/__init__.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/cli/config.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/cli/search.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/deezer.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/exceptions.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/itunes.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/kkbox.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/lastfm.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/models.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/musicyt.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/spotify.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/utils/__init__.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/utils/helpers.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy/yutipy_music.py +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy.egg-info/SOURCES.txt +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy.egg-info/dependency_links.txt +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy.egg-info/entry_points.txt +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy.egg-info/requires.txt +0 -0
- {yutipy-2.2.1 → yutipy-2.2.2}/yutipy.egg-info/top_level.txt +0 -0
|
@@ -27,10 +27,13 @@ def enable_logging(level=logging.INFO, handler=None):
|
|
|
27
27
|
console_handler.setFormatter(formatter)
|
|
28
28
|
handler = console_handler
|
|
29
29
|
|
|
30
|
-
# Add the handler if not already added
|
|
31
|
-
if
|
|
30
|
+
# Add the handler if it is not already added
|
|
31
|
+
if handler not in logger.handlers:
|
|
32
32
|
logger.addHandler(handler)
|
|
33
33
|
|
|
34
|
+
# Disable propagation to avoid duplicate logs
|
|
35
|
+
logger.propagate = False
|
|
36
|
+
|
|
34
37
|
|
|
35
38
|
def disable_logging():
|
|
36
39
|
"""Disable logging for the library."""
|
|
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
|