mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 14:14:19 +00:00
update video.Video.optimize method to use new library.LibrarySection._locations method
This commit is contained in:
parent
3c0fa04a12
commit
252d7e05a8
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ class Video(PlexPartialObject):
|
|||
if targetTagID not in tagIDs and (deviceProfile is None or videoQuality is None):
|
||||
raise BadRequest('Unexpected or missing quality profile.')
|
||||
|
||||
libraryLocationIDs = [location.id for location in self.section().locations]
|
||||
libraryLocationIDs = [location.id for location in self.section()._locations()]
|
||||
libraryLocationIDs.append(-1)
|
||||
|
||||
if locationID not in libraryLocationIDs:
|
||||
|
|
Loading…
Reference in a new issue