Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
def lists_trakt_tv_collection_to_library():
    tv_add_all_to_library(Trakt.get_collection('shows'))
Esempio n. 4
0
def lists_trakt_movies_collection_to_library():
	movies_add_all_to_library(Trakt.get_collection('movies'))