changing variable naming

reuse would cause cascading issue when using allUsers.
This commit is contained in:
blacktwin 2020-01-02 23:25:47 -05:00
parent 837e733ca2
commit 1a892fe750

View File

@ -411,19 +411,19 @@ if __name__ == "__main__":
share(user, libraries, sync, camera, channels, filterMovies, filterTelevision,
filterMusic)
if opts.add and user_shares_lst:
libraries = libraries + user_shares_lst
libraries = list(set(libraries))
share(user, libraries, sync, camera, channels, filterMovies, filterTelevision,
addedLibraries = libraries + user_shares_lst
addedLibraries = list(set(addedLibraries))
share(user, addedLibraries, sync, camera, channels, filterMovies, filterTelevision,
filterMusic)
if opts.remove and user_shares_lst:
libraries = [sect for sect in user_shares_lst if sect not in libraries]
share(user, libraries, sync, camera, channels, filterMovies, filterTelevision,
removedLibraries = [sect for sect in user_shares_lst if sect not in libraries]
share(user, removedLibraries, sync, camera, channels, filterMovies, filterTelevision,
filterMusic)
else:
if opts.add:
# Add/Enable settings independently of libraries
libraries = user_shares_lst
share(user, libraries, sync, camera, channels, filterMovies, filterTelevision,
addedLibraries = user_shares_lst
share(user, addedLibraries, sync, camera, channels, filterMovies, filterTelevision,
filterMusic)
if opts.remove:
# Remove/Disable settings independently of libraries