Skip to content

Commit 1f15598

Browse files
committed
Moved constants back to top.
1 parent 6ab0f8d commit 1f15598

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

beetsplug/deezer.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ class DeezerPlugin(MetadataSourcePlugin[Response], BeetsPlugin):
4141
"deezer_track_id": types.INTEGER,
4242
"deezer_updated": types.DATE,
4343
}
44-
45-
def __init__(self):
46-
super().__init__()
44+
# Base URLs for the Deezer API
45+
# Documentation: https://developers.deezer.com/api/
46+
search_url = "https://api.deezer.com/search/"
47+
album_url = "https://api.deezer.com/album/"
48+
track_url = "https://api.deezer.com/track/"
4749

4850
def commands(self):
4951
"""Add beet UI commands to interact with Deezer."""
@@ -207,13 +209,6 @@ def _get_track(self, track_data: JSONDict) -> TrackInfo:
207209
deezer_updated=time.time(),
208210
)
209211

210-
# ------------------------------- Data fetching ------------------------------ #
211-
# Base URLs for the Deezer API
212-
# Documentation: https://developers.deezer.com/api/
213-
search_url = "https://api.deezer.com/search/"
214-
album_url = "https://api.deezer.com/album/"
215-
track_url = "https://api.deezer.com/track/"
216-
217212
@staticmethod
218213
def _construct_search_query(
219214
filters: dict[str, str], keywords: str = ""

0 commit comments

Comments
 (0)