-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from luigi311/emby
Add Emby support
- Loading branch information
Showing
15 changed files
with
1,633 additions
and
1,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
) |
Oops, something went wrong.