From 279c828369c7f351c9185d301646ba5f5c42d8ed Mon Sep 17 00:00:00 2001 From: Sebastian Mohr Date: Fri, 22 Aug 2025 12:13:42 +0200 Subject: [PATCH] run docstrfmt --- beets/metadata_plugins.py | 2 +- docs/changelog.rst | 5 ++--- docs/plugins/deezer.rst | 20 +++++++++++--------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/beets/metadata_plugins.py b/beets/metadata_plugins.py index 455828191..1cdba5fe2 100644 --- a/beets/metadata_plugins.py +++ b/beets/metadata_plugins.py @@ -13,8 +13,8 @@ import re import warnings from typing import TYPE_CHECKING, Generic, Literal, Sequence, TypedDict, TypeVar -from typing_extensions import NotRequired import unidecode +from typing_extensions import NotRequired from beets.util import cached_classproperty from beets.util.id_extractors import extract_release_id diff --git a/docs/changelog.rst b/docs/changelog.rst index a9e85f9e0..e12050fdc 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -59,9 +59,8 @@ Bug fixes: 10 seconds, rather than hanging the entire import process. - :doc:`/plugins/deezer`: Fix the issue with that every query to deezer was ascii encoded. This resulted in bad matches for queries that contained special - e.g. non latin characters as 盗作. If you want to keep the legacy behavior - set the config option ``deezer.search_query_ascii: yes``. - :bug:`5860` + e.g. non latin characters as 盗作. If you want to keep the legacy behavior set + the config option ``deezer.search_query_ascii: yes``. :bug:`5860` For packagers: diff --git a/docs/plugins/deezer.rst b/docs/plugins/deezer.rst index ec44a530f..2d0bd7009 100644 --- a/docs/plugins/deezer.rst +++ b/docs/plugins/deezer.rst @@ -29,14 +29,16 @@ Configuration This plugin can be configured like other metadata source plugins as described in :ref:`metadata-source-plugin-configuration`. -The default options should work as-is, but there are some options you can put -in config.yaml under the ``deezer:`` section: +The default options should work as-is, but there are some options you can put in +config.yaml under the ``deezer:`` section: -- **search_query_ascii**: If set to ``yes``, the search query will be converted to - ASCII before being sent to Deezer. Converting searches to ASCII can - enhance search results in some cases, but in general, it is not recommended. - For instance `artist:deadmau5 album:4×4` will be converted to - `artist:deadmau5 album:4x4` (notice `×!=x`). - Default: ``no``. +- **search_query_ascii**: If set to ``yes``, the search query will be converted + to ASCII before being sent to Deezer. Converting searches to ASCII can enhance + search results in some cases, but in general, it is not recommended. For + instance ``artist:deadmau5 album:4×4`` will be converted to ``artist:deadmau5 + album:4x4`` (notice ``×!=x``). Default: ``no``. -The ``deezer`` plugin provides an additional command ``deezerupdate`` to update the ``rank`` information from Deezer. The ``rank`` (ranges from 0 to 1M) is a global indicator of a song's popularity on Deezer that is updated daily based on streams. The higher the ``rank``, the more popular the track is. +The ``deezer`` plugin provides an additional command ``deezerupdate`` to update +the ``rank`` information from Deezer. The ``rank`` (ranges from 0 to 1M) is a +global indicator of a song's popularity on Deezer that is updated daily based on +streams. The higher the ``rank``, the more popular the track is.