Skip to content

Commit 998df78

Browse files
authored
Merge pull request #358 from EbbLabs/feature/v0.8.5-prep
Feature/v0.8.5 prep
2 parents bb1c5df + 243127c commit 998df78

File tree

7 files changed

+15
-26
lines changed

7 files changed

+15
-26
lines changed

HISTORY.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
33
History
44
=======
5+
v0.8.5
6+
------
7+
* Cleanup: Removed deprecated function(s). - tehkillerbee_
8+
* Feature: MixV2: Add support for parsing mixes originating from PageCategoryV2. - tehkillerbee_
9+
* Feature: Add support for PageCategoryV2 as used on Home page. - tehkillerbee_, Nokse22_
10+
* Feature: Add pagination workers from mopidy-tidal - tehkillerbee_, BlackLight_
11+
* Fix(playlist): Improve v2 endpoint usage. - tehkillerbee_
12+
* fix(playlist): More robust handling of the passed objects. - BlackLight_
13+
514
v0.8.4
615
------
716
* Album: Add UPC barcode, genre URL for tidal tracks - tehkillerbee_

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
author = "The tidalapi Developers"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "0.8.4"
26+
release = "0.8.5"
2727

2828

2929
# -- General configuration ---------------------------------------------------

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tidalapi"
3-
version = "0.8.4"
3+
version = "0.8.5"
44
description = "Unofficial API for TIDAL music streaming service."
55
authors = ["Thomas Amland <[email protected]>"]
66
maintainers = ["tehkillerbee <[email protected]>"]

tidalapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
User,
1818
)
1919

20-
__version__ = "0.8.4"
20+
__version__ = "0.8.5"

tidalapi/page.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
Iterator,
2828
List,
2929
Optional,
30+
Type,
3031
Union,
3132
cast,
3233
)
@@ -310,7 +311,7 @@ def _parse_base(self, list_item: Dict):
310311
self.module_id = list_item.get("moduleId")
311312
self.title = list_item.get("title")
312313
self.subtitle = list_item.get("subtitle")
313-
self.description = list_item.get("description")
314+
self.description = list_item.get("description", self.title)
314315
self._more = More.parse(list_item)
315316

316317
def parse(self, json_obj: JsonObj):

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

tidalapi/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ def home(self) -> page.Page:
10961096
base_url=self.config.api_v2_location,
10971097
params=params,
10981098
).json()
1099-
return self.page.parseV2(json_obj)
1099+
return self.page.parse(json_obj)
11001100

11011101
def explore(self) -> page.Page:
11021102
"""

0 commit comments

Comments
 (0)