def lists_trakt_movies_collection(raw=False): results = sorted(Trakt.get_collection('movies'), key=lambda k: k['collected_at'], reverse=True) if raw: return results movies = [meta_info.get_trakt_movie_metadata(item['movie']) for item in results] items = [make_movie_item(movie) for movie in movies] return items
def lists_trakt_tv_collection(raw=False): results = sorted(Trakt.get_collection('shows'), key=lambda k: k['last_collected_at'], reverse=True) if raw: return results shows = [meta_info.get_tvshow_metadata_trakt(item['show']) for item in results] items = [make_tvshow_item(show) for show in shows if show.get('tvdb_id')] return items
def lists_trakt_tv_collection_to_library(): tv_add_all_to_library(Trakt.get_collection('shows'))
def lists_trakt_movies_collection_to_library(): movies_add_all_to_library(Trakt.get_collection('movies'))