-
-
Notifications
You must be signed in to change notification settings - Fork 822
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
Implements multi selector for library type for Emby/Jellyfin. Allows… #786
base: main
Are you sure you want to change the base?
Conversation
… for multiselect using array style notation in yaml. Also updated docs to reflect change Fixes bastienwirtz#681
❌ Deploy Preview for homer-demo-content failed.
|
Really hope this is able to be merged in soon, been wanting this feature for a while now |
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.
Thanks for your contribution @cmatute7712 !
else if (this.item.libraryType === "series") | ||
return `${this.episodeCount} eps, ${this.seriesCount} series`; | ||
else return `wrong library type 💀`; | ||
const libraryType = this.item.libraryType; |
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.
We can avoid a breaking change with somethong like this
const libraryType = this.item.libraryType; | |
// ensure retro-compatibility with previous implementation | |
const libraryType = Array.isArray(this.item.libraryType) ? this.item.libraryType : [this.item.libraryType]; |
const libraryType = this.item.libraryType; | ||
const counts = []; | ||
|
||
libraryType.forEach((type, index) => { |
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.
libraryType.forEach((type, index) => { | |
libraryType.forEach((type) => { |
const counts = []; | ||
|
||
libraryType.forEach((type, index) => { | ||
if (type === "music") { |
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.
nit: a switch
could be nicer ?
} | ||
}); | ||
|
||
const allowedParams = this.item.embyCountParams || ""; |
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.
What is this.item.embyCountParams
? the embyCountParams
is not documented (or I'm missing something?)
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.
I'm not sure to get what the code below around the filter logic is about 🤔
12cad12
to
474dc3a
Compare
Description
Implements multi selector for library type for Emby/Jellyfin. Allows for multiselect using array style notation in yaml. Also updated docs to reflect change
Fixes #681
Type of change
Checklist:
config.yml
file