Skip to content

Commit 185319b

Browse files
committed
find server's backgroundProcessing key
1 parent 3acc72d commit 185319b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plexapi/video.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def optimize(self, title=None, target="", targetTagID=None, locationID=-1, polic
168168
if title is None:
169169
title = self.title
170170

171-
key = '/playlists/1111/items?'
171+
backgroundProcessing = self.fetchItem('/playlists?type=42')
172+
key = '%s/items?' % backgroundProcessing.key
172173
params = {
173174
'Item[type]': 42,
174175
'Item[target]': target,

0 commit comments

Comments
 (0)