Skip to content

Commit 0a6a6d0

Browse files
committed
add currentBackgroundProcess method
uses TranscodeJob media class
1 parent 0e88620 commit 0a6a6d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plexapi/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ def conversions(self):
384384

385385
return self.fetchItems('/playQueues/1', cls=Conversion)
386386

387+
def currentBackgroundProcess(self):
388+
""" Returns list of all :class:`~plexapi.media.TranscodeJob` objects running or paused on server. """
389+
return self.fetchItems('/status/sessions/background')
390+
387391
def query(self, key, method=None, headers=None, timeout=None, **kwargs):
388392
""" Main method used to handle HTTPS requests to the Plex server. This method helps
389393
by encoding the response to utf-8 and parsing the returned XML into and

0 commit comments

Comments
 (0)