File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,14 @@ def optimizedItems(self, removeAll=None):
382382 backgroundProcessing = self .fetchItem ('/playlists?type=42' )
383383 return self .fetchItems ('%s/items' % backgroundProcessing .key , cls = Optimized )
384384
385+ def optimizedItem (self , optimizedID ):
386+ """ Returns single queued optimized item :class:`~plexapi.media.Video` object.
387+ Allows for using optimized item ID to connect back to source item.
388+ """
389+
390+ backgroundProcessing = self .fetchItem ('/playlists?type=42' )
391+ return self .fetchItem ('%s/items/%s/items' % (backgroundProcessing .key , optimizedID ))
392+
385393 def conversions (self , pause = None ):
386394 """ Returns list of all :class:`~plexapi.media.Conversion` objects connected to server. """
387395 if pause is True :
You can’t perform that action at this time.
0 commit comments