File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,16 @@ def album_for_id(self, album_id):
77
77
"by {} API: '{}'" .format (self .data_source , release_date )
78
78
)
79
79
80
- tracks_data = requests .get (
80
+ tracks_obj = requests .get (
81
81
self .album_url + deezer_id + '/tracks'
82
- ).json ()['data' ]
82
+ ).json ()
83
+ tracks_data = tracks_obj ['data' ]
83
84
if not tracks_data :
84
85
return None
86
+ while "next" in tracks_obj :
87
+ tracks_obj = requests .get (tracks_obj ['next' ]).json ()
88
+ tracks_data .extend (tracks_obj ['data' ])
89
+
85
90
tracks = []
86
91
medium_totals = collections .defaultdict (int )
87
92
for i , track_data in enumerate (tracks_data , start = 1 ):
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ New features:
14
14
15
15
Bug fixes:
16
16
17
+ * :doc: `/plugins/deezer `: Fix auto tagger pagination issues (fetch beyond the
18
+ first 25 tracks of a release).
17
19
* :doc: `/plugins/spotify `: Fix auto tagger pagination issues (fetch beyond the
18
20
first 50 tracks of a release).
19
21
* :doc: `/plugins/lyrics `: Fix Genius search by using query params instead of body.
You can’t perform that action at this time.
0 commit comments