Drop unused pytrakt_extensions.get_liked_lists
MODIFY
plextraktsync/pytrakt_extensions.py
plextraktsync/pytrakt_extensions.py
from trakt.tv import TVEpisode
-@get
-def get_liked_lists():
- data = yield "users/likes/lists?limit=1000"
- retVal = []
- for lst in data:
- thisList = {}
- thisList["listname"] = lst["list"]["name"]
- thisList["username"] = lst["list"]["user"]["ids"]["slug"]
- retVal.append(thisList)
- yield retVal
-
-
@get
def lookup_table(show):
# returns all seasons and episodes with one single call
@@ -190,7 +178,3 @@ def add(self, trakt_id, season, episode):
self.shows[trakt_id].seasons[season] = SeasonProgress(**season_prog)
else:
self.shows[trakt_id] = ShowProgress(seasons=[season_prog])
-
-
-if __name__ == "__main__":
- print(get_liked_lists())

Drop unused pytrakt_extensions.get_liked_lists