diff --git a/PlexAutoCollectionUpdater.py b/PlexAutoCollectionUpdater.py index b3f4cd1..56badac 100644 --- a/PlexAutoCollectionUpdater.py +++ b/PlexAutoCollectionUpdater.py @@ -99,9 +99,9 @@ def UpdateYAML(configFile, MovieListFinal): for collection in MovieListFinal: if collection.MovieTMDbCollectionName not in currentYamlCollections: with open(configFile, 'r') as f: - new_coll = {f'{collection.MovieTMDbCollectionName}': {'sync_mode': 'sync', - 'tmdb_collection': collection.MovieTMDbCollectionTMDbId, - 'tmdb_summary': collection.MovieTMDbCollectionTMDbId}} + new_coll = {f'{collection.MovieTMDbCollectionName}': {'template: name': 'Movie', + 'collection': collection.MovieTMDbCollectionTMDbId, + 'summary': collection.MovieTMDbCollectionTMDbId}} currentYaml['collections'].update(new_coll) if currentYaml: diff --git a/config/config.py b/config/config.py index 6037daf..4f3a581 100644 --- a/config/config.py +++ b/config/config.py @@ -3,8 +3,8 @@ class Config(object): tmdbLanguage = 'fr-FR' tmdbApiUrl = 'https://api.themoviedb.org/3/search/' tmdbImgUrl = 'https://image.tmdb.org/t/p/w500' - plexBaseUrl = 'https://plex.rouggy.ovh' + plexBaseUrl = 'https://plex.rouggy.com' plexToken = 'VeQQwtf-sNtWWLwzCEih' - PlexAutoCollectionConfigFilePath = '/opt/Plex-Auto-Collections/config/config.yml' - PlexAutoCollectionConfigFilePath4K = '/opt/Plex-Auto-Collections/config/config-4k.yml' - PlexAutoCollectionConfigFileImagesPath = '/opt/Plex-Auto-Collections/config/images' + PlexAutoCollectionConfigFilePath = '/opt/Plex-Meta-Manager/config/Movies.yml' + PlexAutoCollectionConfigFilePath4K = '/opt/Plex-Meta-Manager/config/4K-Movies.yml' + PlexAutoCollectionConfigFileImagesPath = '/opt/Plex-Meta-Manager/config/assets'