Skip to content

Commit e9a65ce

Browse files
committed
Removed deprecated function(s)
1 parent c6c5e57 commit e9a65ce

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

tidalapi/request.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -258,24 +258,3 @@ def map_json(
258258
if parse is None:
259259
raise ValueError("A parser must be supplied")
260260
return list(map(parse, items))
261-
262-
def get_items(self, url: str, parse: Callable[..., Any]) -> List[Any]:
263-
"""Returns a list of items, used when there are over a 100 items, but TIDAL
264-
doesn't always allow more specifying a higher limit.
265-
266-
Not meant for use outside of this library.
267-
268-
:param url: TIDAL api endpoint where you get the objects.
269-
:param parse: The method that parses the data in the url
270-
item_List: List[Any] = []
271-
"""
272-
273-
params = {"offset": 0, "limit": 100}
274-
remaining = 100
275-
item_list: List[Any] = []
276-
while remaining == 100:
277-
items = self.map_request(url, params=params, parse=parse)
278-
remaining = len(items)
279-
params["offset"] += 100
280-
item_list.extend(items or [])
281-
return item_list

0 commit comments

Comments
 (0)