mirror of
https://github.com/mza921/Plex-Auto-Collections
synced 2024-11-14 16:27:22 +00:00
fixed more prints
This commit is contained in:
parent
853b0c395c
commit
9723505a27
2 changed files with 10 additions and 13 deletions
|
@ -434,12 +434,13 @@ def update_from_config(config_path, plex, headless=False, no_meta=False, no_imag
|
|||
print("| Config Error: {} attribute not supported".format(method_name))
|
||||
else:
|
||||
print("| Config Error: {} attribute is blank".format(m))
|
||||
print("| ")
|
||||
|
||||
#TODO: Display Filters Better
|
||||
for filter in filters:
|
||||
print("| Collection Filter {}: {}".format(filter[0], filter[1]))
|
||||
print("| ")
|
||||
first_filter = True
|
||||
for f in filters:
|
||||
if first_filter == True:
|
||||
print("| ")
|
||||
first_filter = False
|
||||
print("| Collection Filter {}: {}".format(f[0], f[1]))
|
||||
|
||||
# Loops though and actually processes the methods
|
||||
for m, values in methods:
|
||||
|
|
|
@ -279,10 +279,8 @@ def add_to_collection(config_path, plex, method, value, c, map, filters=None):
|
|||
map[current_m.ratingKey] = None
|
||||
else:
|
||||
current_m.addCollection(c)
|
||||
display_match = "| {} Collection | {} | {}".format(c, "=" if current_m in fs else "+", current_m.title)
|
||||
print(adjust_space(current_length, display_match))
|
||||
displey_final = "| Processed {} Movies".format(movie_max)
|
||||
print(adjust_space(current_length, displey_final))
|
||||
print(adjust_space(current_length, "| {} Collection | {} | {}".format(c, "=" if current_m in fs else "+", current_m.title)))
|
||||
print(adjust_space(current_length, "| Processed {} Movies".format(movie_max)))
|
||||
elif plex.library_type == "movie":
|
||||
print("| No movies found")
|
||||
|
||||
|
@ -353,10 +351,8 @@ def add_to_collection(config_path, plex, method, value, c, map, filters=None):
|
|||
map[current_s.ratingKey] = None
|
||||
else:
|
||||
current_s.addCollection(c)
|
||||
display_match = "| {} Collection | {} | {}".format(c, "=" if current_s in fs else "+", current_s.title)
|
||||
print(adjust_space(current_length, display_match))
|
||||
displey_final = "| Processed {} Shows".format(show_max)
|
||||
print(adjust_space(current_length, displey_final))
|
||||
print(adjust_space(current_length, "| {} Collection | {} | {}".format(c, "=" if current_s in fs else "+", current_s.title)))
|
||||
print(adjust_space(current_length, "| Processed {} Shows".format(show_max)))
|
||||
elif plex.library_type == "show":
|
||||
print("| No shows found")
|
||||
|
||||
|
|
Loading…
Reference in a new issue