Appease flake8

This commit is contained in:
Rahul Ahuja 2019-09-01 18:13:19 -07:00
parent e8228d0305
commit 804397bb12

View file

@ -55,8 +55,8 @@ class DeezerPlugin(BeetsPlugin):
def _get_deezer_id(self, url_type, id_): def _get_deezer_id(self, url_type, id_):
"""Parse a Deezer ID from its URL if necessary. """Parse a Deezer ID from its URL if necessary.
:param url_type: Type of Deezer URL. Either 'album', 'artist', 'playlist', :param url_type: Type of Deezer URL. Either 'album', 'artist',
or 'track'. 'playlist', or 'track'.
:type url_type: str :type url_type: str
:param id_: Deezer ID or URL. :param id_: Deezer ID or URL.
:type id_: str :type id_: str
@ -199,9 +199,9 @@ class DeezerPlugin(BeetsPlugin):
"""Returns an artist string (all artists) and an artist_id (the main """Returns an artist string (all artists) and an artist_id (the main
artist) for a list of Deezer artist object dicts. artist) for a list of Deezer artist object dicts.
:param artists: Iterable of ``contributors`` or ``artist`` returned by the :param artists: Iterable of ``contributors`` or ``artist`` returned
Deezer Album (https://developers.deezer.com/api/album) or Deezer Track by the Deezer Album (https://developers.deezer.com/api/album) or
(https://developers.deezer.com/api/track) APIs. Deezer Track (https://developers.deezer.com/api/track) APIs.
:type artists: list[dict] :type artists: list[dict]
:return: Normalized artist string :return: Normalized artist string
:rtype: str :rtype: str
@ -291,7 +291,8 @@ class DeezerPlugin(BeetsPlugin):
@staticmethod @staticmethod
def _construct_search_query(filters=None, keywords=''): def _construct_search_query(filters=None, keywords=''):
"""Construct a query string with the specified filters and keywords to """Construct a query string with the specified filters and keywords to
be provided to the Deezer Search API (https://developers.deezer.com/api/search). be provided to the Deezer Search API
(https://developers.deezer.com/api/search).
:param filters: (Optional) Field filters to apply. :param filters: (Optional) Field filters to apply.
:type filters: dict :type filters: dict
@ -313,9 +314,9 @@ class DeezerPlugin(BeetsPlugin):
"""Query the Deezer Search API for the specified ``keywords``, applying """Query the Deezer Search API for the specified ``keywords``, applying
the provided ``filters``. the provided ``filters``.
:param query_type: The Deezer Search API method to use. Valid types are: :param query_type: The Deezer Search API method to use. Valid types
'album', 'artist', 'history', 'playlist', 'podcast', 'radio', 'track', are: 'album', 'artist', 'history', 'playlist', 'podcast',
'user', and 'track'. 'radio', 'track', 'user', and 'track'.
:type query_type: str :type query_type: str
:param filters: (Optional) Field filters to apply. :param filters: (Optional) Field filters to apply.
:type filters: dict :type filters: dict