FUMR / tidal-async

Python Tidal streaming service unofficial API in async fashion supporting OAuth2 authentication
GNU Lesser General Public License v2.1
21 stars 4 forks source link

Fix caching of Objects when created with __init__ #47

Open FUMR-bot opened 4 years ago

FUMR-bot commented 4 years ago

_This issue has been automatically created by todo-actions based on a TODO comment found in tidal_async/api.py:17. It will automatically be closed when the TODO comment is removed from master._

JuniorJPDJ commented 3 years ago

Now albums loaded from obj props are not cached, any search result is not cached too.

I tried recreating every object based on id but sometimes playlists and probably other collections can contain unreachable track (region locked) and result in 404 exception when loading collection - this is unacceptable.

Probably some custom caching impl is needed.