mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 12:58:26 +00:00
var renaming for consistency
This commit is contained in:
parent
54897d2e9e
commit
4f340d0ce4
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue