mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-14 19:54:38 +08:00
21 lines
543 B
Python
21 lines
543 B
Python
from plex.core.idict import idict
|
|
from plex.interfaces.core.base import Interface
|
|
|
|
|
|
class StatusInterface(Interface):
|
|
path = 'status'
|
|
|
|
def sessions(self):
|
|
response = self.http.get('sessions')
|
|
|
|
return self.parse(response, idict({
|
|
'MediaContainer': ('SessionContainer', idict({
|
|
'Track': 'Track',
|
|
|
|
'Video': {
|
|
'episode': 'Episode',
|
|
'clip': 'Clip',
|
|
'movie': 'Movie'
|
|
}
|
|
}))
|
|
}))
|