Action: Add test

Spins up jellyfin and plex containers to test against
This commit is contained in:
Luigi311
2023-12-06 12:54:33 -07:00
parent 6b7f8b04e6
commit c91ba0b1b3
4 changed files with 163 additions and 21 deletions

View File

@@ -100,7 +100,7 @@ class Jellyfin:
return await self.query(query, query_type, session, identifiers)
results = None
authorization = (
"MediaBrowser , "
'Client="other", '
@@ -108,8 +108,12 @@ class Jellyfin:
'DeviceId="script", '
'Version="0.0.0"'
)
headers = {"Accept": "application/json", "X-Emby-Token": self.token, "X-Emby-Authorization": authorization}
headers = {
"Accept": "application/json",
"X-Emby-Token": self.token,
"X-Emby-Authorization": authorization,
}
if query_type == "get":
async with session.get(
self.baseurl + query, headers=headers