We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54897d2 commit 4f340d0Copy full SHA for 4f340d0
1 file changed
plexapi/library.py
@@ -562,9 +562,9 @@ def removeLocations(self, location):
562
location = location.path
563
if isinstance(location, str):
564
location = [location]
565
- for _location in location:
566
- if _location in locations:
567
- locations.remove(_location)
+ for path in location:
+ if path in locations:
+ locations.remove(path)
568
else:
569
raise BadRequest('Path: %s does not exist in the library.' % location)
570
if len(locations) == 0:
0 commit comments