File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,11 @@ class DeezerPlugin(MetadataSourcePlugin[Response], BeetsPlugin):
41
41
"deezer_track_id" : types .INTEGER ,
42
42
"deezer_updated" : types .DATE ,
43
43
}
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/"
47
49
48
50
def commands (self ):
49
51
"""Add beet UI commands to interact with Deezer."""
@@ -207,13 +209,6 @@ def _get_track(self, track_data: JSONDict) -> TrackInfo:
207
209
deezer_updated = time .time (),
208
210
)
209
211
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
-
217
212
@staticmethod
218
213
def _construct_search_query (
219
214
filters : dict [str , str ], keywords : str = ""
You can’t perform that action at this time.
0 commit comments