File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments