Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

History
=======
v0.8.5
------
* Cleanup: Removed deprecated function(s). - tehkillerbee_
* Feature: MixV2: Add support for parsing mixes originating from PageCategoryV2. - tehkillerbee_
* Feature: Add support for PageCategoryV2 as used on Home page. - tehkillerbee_, Nokse22_
* Feature: Add pagination workers from mopidy-tidal - tehkillerbee_, BlackLight_
* Fix(playlist): Improve v2 endpoint usage. - tehkillerbee_
* fix(playlist): More robust handling of the passed objects. - BlackLight_

v0.8.4
------
* Album: Add UPC barcode, genre URL for tidal tracks - tehkillerbee_
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
author = "The tidalapi Developers"

# The full version, including alpha/beta/rc tags
release = "0.8.4"
release = "0.8.5"


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tidalapi"
version = "0.8.4"
version = "0.8.5"
description = "Unofficial API for TIDAL music streaming service."
authors = ["Thomas Amland <[email protected]>"]
maintainers = ["tehkillerbee <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion tidalapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
User,
)

__version__ = "0.8.4"
__version__ = "0.8.5"
3 changes: 2 additions & 1 deletion tidalapi/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
Iterator,
List,
Optional,
Type,
Union,
cast,
)
Expand Down Expand Up @@ -310,7 +311,7 @@ def _parse_base(self, list_item: Dict):
self.module_id = list_item.get("moduleId")
self.title = list_item.get("title")
self.subtitle = list_item.get("subtitle")
self.description = list_item.get("description")
self.description = list_item.get("description", self.title)
self._more = More.parse(list_item)

def parse(self, json_obj: JsonObj):
Expand Down
21 changes: 0 additions & 21 deletions tidalapi/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,24 +258,3 @@ def map_json(
if parse is None:
raise ValueError("A parser must be supplied")
return list(map(parse, items))

def get_items(self, url: str, parse: Callable[..., Any]) -> List[Any]:
"""Returns a list of items, used when there are over a 100 items, but TIDAL
doesn't always allow more specifying a higher limit.

Not meant for use outside of this library.

:param url: TIDAL api endpoint where you get the objects.
:param parse: The method that parses the data in the url
item_List: List[Any] = []
"""

params = {"offset": 0, "limit": 100}
remaining = 100
item_list: List[Any] = []
while remaining == 100:
items = self.map_request(url, params=params, parse=parse)
remaining = len(items)
params["offset"] += 100
item_list.extend(items or [])
return item_list
2 changes: 1 addition & 1 deletion tidalapi/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ def home(self) -> page.Page:
base_url=self.config.api_v2_location,
params=params,
).json()
return self.page.parseV2(json_obj)
return self.page.parse(json_obj)

def explore(self) -> page.Page:
"""
Expand Down