diff --git a/beets/autotag/__init__.py b/beets/autotag/__init__.py index 0d538a72f..738ff4813 100644 --- a/beets/autotag/__init__.py +++ b/beets/autotag/__init__.py @@ -278,7 +278,8 @@ class APIAutotaggerPlugin(BeetsPlugin): :type artists: list[dict] :param id_key: Key corresponding to ``artist_id`` value. :type id_key: str - :param name_key: Keys corresponding to values to concatenate for ``artist``. + :param name_key: Keys corresponding to values to concatenate + for ``artist``. :type name_key: str :return: Normalized artist string. :rtype: str diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 0c9d1b397..47747420a 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -294,7 +294,9 @@ class DiscogsPlugin(BeetsPlugin): self._log.warning(u"Release does not contain the required fields") return None - artist, artist_id = APIAutotaggerPlugin.get_artist([a.data for a in result.artists]) + artist, artist_id = APIAutotaggerPlugin.get_artist( + [a.data for a in result.artists] + ) album = re.sub(r' +', ' ', result.title) album_id = result.data['id'] # Use `.data` to access the tracklist directly instead of the @@ -533,7 +535,9 @@ class DiscogsPlugin(BeetsPlugin): title = track['title'] track_id = None medium, medium_index, _ = self.get_track_index(track['position']) - artist, artist_id = APIAutotaggerPlugin.get_artist(track.get('artists', [])) + artist, artist_id = APIAutotaggerPlugin.get_artist( + track.get('artists', []) + ) length = self.get_track_length(track['duration']) return TrackInfo(title, track_id, artist=artist, artist_id=artist_id, length=length, index=index, diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 34ec4b7ee..66ee2a16d 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -306,8 +306,8 @@ class SpotifyPlugin(APIAutotaggerPlugin): """Query the Spotify Search API for the specified ``keywords``, applying the provided ``filters``. - :param query_type: Item type to search across. Valid types are: 'album', - 'artist', 'playlist', and 'track'. + :param query_type: Item type to search across. Valid types are: + 'album', 'artist', 'playlist', and 'track'. :type query_type: str :param filters: (Optional) Field filters to apply. :type filters: dict