This commit is contained in:
Gregory Salaun 2021-12-08 11:24:29 +01:00
parent 4b3c714261
commit c140fb851d
3 changed files with 7 additions and 4 deletions

View File

@ -39,12 +39,10 @@ i = 0
length = len(PlexMovieList)
while i < length:
for movie in PlexMovieList:
if fuzz.ratio(PlexMovieList[i], movie) > 85 and fuzz.ratio(PlexMovieList[i], movie) < 100:
if 85 < fuzz.ratio(PlexMovieList[i], movie) < 100:
if PlexMovieList[i] not in MatchingList:
MatchingList.append(PlexMovieList[i])
i += 1
for movie in MatchingList:
@ -61,4 +59,5 @@ for movie in MatchingList:
for id in TMDbCollection:
MovieCollectionFinal.append(tmdbCollection.details(id))
print("")
print(MovieCollectionFinal)
print(AvailablePlexCollectionsMovies)

View File

@ -5,3 +5,4 @@ class Config(object):
tmdbImgUrl = 'https://image.tmdb.org/t/p/w500'
plexBaseUrl = 'https://plex.rouggy.ovh'
plexToken = 'VeQQwtf-sNtWWLwzCEih'
PlexAutoCollectionConfigFilePath = '/opt/Plex-Auto-Collections/config/config.yml'

View File

@ -2,3 +2,6 @@ class MovieCollection:
def __init__(self, id, title):
self.collectionTitle = title
self.collectionId = id
def get_existing_collections(self):
pass