From 891203117c985720a7c4f50ac383a8d7e5028304 Mon Sep 17 00:00:00 2001 From: rouggy Date: Wed, 8 Dec 2021 16:47:05 +0100 Subject: [PATCH] update --- plexAutoCollectionUpdater.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plexAutoCollectionUpdater.py b/plexAutoCollectionUpdater.py index df1c77b..487bccf 100644 --- a/plexAutoCollectionUpdater.py +++ b/plexAutoCollectionUpdater.py @@ -21,12 +21,10 @@ token = Config.plexToken plex = PlexServer(baseurl, token) # Create empty lists -AvailablePlexCollectionsMovies = [] PlexMovieList = [] MatchingList = [] TMDbCollection = [] MovieCollectionFinal = [] -print(":: CollectionUpdater :: Creating Empty lists") # Retrieve the library Movies from Plex print(f":: {dt.now().strftime('%d-%m-%Y %H:%M:%S')} :: CollectionUpdater :: Retrieving Movies section from Plex") @@ -35,9 +33,6 @@ print(f":: {dt.now().strftime('%d-%m-%Y %H:%M:%S')} :: CollectionUpdater :: Movi print(f":: {dt.now().strftime('%d-%m-%Y %H:%M:%S')} :: CollectionUpdater :: Creating Movies list and Collection Available in Plex") for movie in plexMoviesLibrary.search(): - for collection in movie.collections: - if collection.tag and collection.tag not in AvailablePlexCollectionsMovies: - AvailablePlexCollectionsMovies.append(collection.tag) PlexMovieList.append(movie.title) print(f":: {dt.now().strftime('%d-%m-%Y %H:%M:%S')} :: CollectionUpdater :: Lists created") @@ -53,7 +48,7 @@ while i < length: MatchingList.append(PlexMovieList[i]) i += 1 -print(f":: {dt.now().strftime('%d-%m-%Y %H:%M:%S')} :: CollectionUpdater :: Comparison is finished...") +print(f":: {dt.now().strftime('%d-%m-%Y %H:%M:%S')} :: CollectionUpdater :: Comparison is finished...found {len(MatchingList)} similar movies") print(f":: {dt.now().strftime('%d-%m-%Y %H:%M:%S')} :: CollectionUpdater :: Searching TMDb for movies in the Matching List") for movie in MatchingList: