update video.Video.optimize method to use new library.LibrarySection._locations method

This commit is contained in:
blacktwin 2020-07-24 14:11:01 -04:00
parent 3c0fa04a12
commit 252d7e05a8

View file

@ -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: