var renaming for consistency

This commit is contained in:
blacktwin 2022-01-03 16:57:29 -05:00
parent 54897d2e9e
commit 4f340d0ce4

View file

@ -562,9 +562,9 @@ class LibrarySection(PlexObject):
location = location.path
if isinstance(location, str):
location = [location]
for _location in location:
if _location in locations:
locations.remove(_location)
for path in location:
if path in locations:
locations.remove(path)
else:
raise BadRequest('Path: %s does not exist in the library.' % location)
if len(locations) == 0: