update
This commit is contained in:
parent
abe2c84747
commit
e63b86e567
@ -99,10 +99,10 @@ def UpdateYAML(configFile, MovieListFinal):
|
|||||||
for collection in MovieListFinal:
|
for collection in MovieListFinal:
|
||||||
if collection.MovieTMDbCollectionName not in currentYamlCollections:
|
if collection.MovieTMDbCollectionName not in currentYamlCollections:
|
||||||
with open(configFile, 'r') as f:
|
with open(configFile, 'r') as f:
|
||||||
new_coll = {f'{collection.MovieTMDbCollectionName}': {'template: name': 'Movie',
|
new_col1 = {f'{collection.MovieTMDbCollectionName}':{'template':{'name': 'Movie',
|
||||||
'collection': collection.MovieTMDbCollectionTMDbId,
|
'collection': collection.MovieTMDbCollectionTMDbId,
|
||||||
'summary': collection.MovieTMDbCollectionTMDbId}}
|
'summary': collection.MovieTMDbCollectionTMDbId}}}
|
||||||
currentYaml['collections'].update(new_coll)
|
currentYaml['collections'].update(new_col1)
|
||||||
|
|
||||||
if currentYaml:
|
if currentYaml:
|
||||||
logger.info(f"Adding new collection: {collection.MovieTMDbCollectionName} to {configFile} file...")
|
logger.info(f"Adding new collection: {collection.MovieTMDbCollectionName} to {configFile} file...")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user