Compare commits

...

2 Commits

2 changed files with 9 additions and 2 deletions

View File

@ -4,7 +4,7 @@ Here lies several scripts, mostly in python, for doing some simple but useful th
## Folders
In each folder there should be a file named `apiconfig-default.py`. This file __must__ be renamed to `apiconfig.py` and the values inside the file must be edited to reflect your environment.
In each folder there should be a file named `apiconfig-default.py`. This file __must__ be copied to `apiconfig.py` and the values inside the file must be edited to reflect your environment.
Settings to be edited for all projects/folders:
@ -23,7 +23,8 @@ Settings unique to this project/folder:
This is the top level repository folder and contains scripts meant to be used on the PlexAPI.
* __updatecoll.py__ : This program creates collections for each top level movie folder and ensures each movie is a member of a collection named based on the main folder in which it resides (i.e. movies in the Scary/ folder are added to the "Scary" collection). This value __must__ have a trailing slash.
* __updatecoll.py__ : This program creates collections for each top level movie folder and ensures each movie is a member of a collection named based on the main folder in which it resides (i.e. movies in the Scary/ folder are added to the "Scary" collection). This value __must__ have a trailing slash.
* __findmissing.py__ : This program iterates through all movies and TV shows in plex and lists any entries which are missing an associated file on disk.
### PlexDev/radarr

View File

@ -13,6 +13,12 @@ except:
print()
sys.exit()
if apiconfig.mediafolder[-1] != "/":
print("Error!")
print(" mediafolder value in apiconfig.py does not have a trailing slash")
print()
sys.exit()
colcontents = {}
for col in apiconfig.colmap.values():
colcontents[col] = []