Add support for emby

This commit is contained in:
Luis Garcia
2024-05-06 21:28:48 -06:00
parent 5b1933cb08
commit 1f7da2f609
12 changed files with 1216 additions and 1036 deletions

21
src/emby.py Normal file
View File

@@ -0,0 +1,21 @@
from src.jellyfin_emby import JellyfinEmby
class Emby(JellyfinEmby):
def __init__(self, baseurl, token):
authorization = (
"Emby , "
'Client="JellyPlex-Watched", '
'Device="script", '
'DeviceId="script", '
'Version="0.0.0"'
)
headers = {
"Accept": "application/json",
"X-Emby-Token": token,
"X-Emby-Authorization": authorization,
}
super().__init__(
server_type="Emby", baseurl=baseurl, token=token, headers=headers
)