26 lines
724 B
Python
26 lines
724 B
Python
from src.jellyfin_emby import JellyfinEmby
|
|
from packaging import version
|
|
|
|
|
|
class Emby(JellyfinEmby):
|
|
def __init__(self, baseurl, token):
|
|
authorization = (
|
|
"Emby , "
|
|
'Client="JellyPlex-Watched", '
|
|
'Device="script", '
|
|
'DeviceId="script", '
|
|
'Version="6.0.2"'
|
|
)
|
|
headers = {
|
|
"Accept": "application/json",
|
|
"X-Emby-Token": token,
|
|
"X-Emby-Authorization": authorization,
|
|
}
|
|
|
|
super().__init__(
|
|
server_type="Emby", baseurl=baseurl, token=token, headers=headers
|
|
)
|
|
|
|
def is_partial_update_supported(self, server_version):
|
|
return server_version > version.parse("4.4")
|