Skip to content

Commit

Permalink
Add TraktLikedList typing
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 13, 2024
1 parent f302dbe commit c4868ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plextraktsync/trakt/TraktApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ def me(self):
@flatten_list
def liked_lists(self) -> list[TraktLikedList]:
for item in self.me.get_liked_lists("lists", limit=1000):
yield {
tll: TraktLikedList = {
'listname': item['list']['name'],
'listid': item['list']['ids']['trakt'],
}
yield tll

@cached_property
@rate_limit()
Expand Down

0 comments on commit c4868ca

Please sign in to comment.