-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 #173 from luigi311/dev
Add support for emby, add sync in progress for jellyfin and emby
- Loading branch information
Showing
16 changed files
with
1,690 additions
and
1,046 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
PlexAPI==4.15.7 | ||
requests==2.31.0 | ||
requests==2.32.0 | ||
python-dotenv==1.0.0 |
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.