-
-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Jellyfin/Emby server type setup #685
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
395a91c
feat: add Media Server Selection to Setup Page
fallenbagel 504d8bd
Merge branch 'develop' into feat-server-type-setup
fallenbagel a4f1f12
feat(api): add severType to the api
fallenbagel 45dbf84
refactor: use enums for serverType and rename selectedservice to serv…
fallenbagel 7a50581
refactor(auth): jellyfin/emby authentication to set MediaServerType
fallenbagel 1bc4bd3
fix: issue page formatMessage for 4k media
fallenbagel 1aac3c5
refactor: cleaner way of handling serverType change using MediaServer…
fallenbagel 19e2074
revert: removed conditional render of the auto-request permission
fallenbagel 900e611
feat: add server type step to setup
gauthier-th 635a5f0
chore: merge develop
gauthier-th 5875b2b
Merge branch 'develop' into feat-server-type-setup
fallenbagel 6207a6a
feat: migrate existing emby setups to use emby mediaServerType
fallenbagel 6636aee
fix: scan jobs not running when media server type is emby
fallenbagel c3a6c7d
fix: emby media server type migration
fallenbagel b8042ab
refactor: change emby logo to full logo
fallenbagel 5bcbc81
style: decrease emby logo size in setup screen
fallenbagel 1cc43ce
refactor: use title case for servertype i18n message
fallenbagel 2d9530c
refactor(i18n): fix a typo
fallenbagel e03edd2
refactor: use enums instead of numbers
fallenbagel 2d802a5
chore: merge develop
gauthier-th 58eb915
chore: merge develop
gauthier-th e531765
fix: remove old references to JELLYFIN_TYPE environment variable
gauthier-th d868082
fix: go back to the last step when refresh the setup page
gauthier-th dc34d6c
fix: move "scanning in background" tip next to the scanning section
gauthier-th dd2c752
fix: redirect the setup page when Jellyseerr is already setup
gauthier-th File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ export enum UserType { | |
PLEX = 1, | ||
LOCAL = 2, | ||
JELLYFIN = 3, | ||
EMBY = 4, | ||
} |
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
17 changes: 17 additions & 0 deletions
17
server/lib/settings/migrations/0002_emby_media_server_type.ts
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,17 @@ | ||
import { MediaServerType } from '@server/constants/server'; | ||
import type { AllSettings } from '@server/lib/settings'; | ||
|
||
const migrateHostname = (settings: any): AllSettings => { | ||
const oldMediaServerType = settings.main.mediaServerType; | ||
console.log('Migrating media server type', oldMediaServerType); | ||
if ( | ||
oldMediaServerType === MediaServerType.JELLYFIN && | ||
process.env.JELLYFIN_TYPE === 'emby' | ||
) { | ||
settings.main.mediaServerType = MediaServerType.EMBY; | ||
} | ||
|
||
return settings; | ||
}; | ||
|
||
export default migrateHostname; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this block on line 418 still be a TODO comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah thanks for pointing it out. That should be removed as we are now handling that using the settingsMigrator