Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Emby/Emby.Plugins.Moonfin/Models/MoonfinSettingsProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ public class MoonfinSettingsProfile
[JsonPropertyName("mediaBarContentType")] public string? MediaBarContentType { get; set; }

[JsonPropertyName("detailShowTechnicalDetails")] public bool? DetailShowTechnicalDetails { get; set; }
[JsonPropertyName("hideDetailsMediaDescription")] public bool? HideDetailsMediaDescription { get; set; }
[JsonPropertyName("detailUseSeriesThumbnails")] public bool? DetailUseSeriesThumbnails { get; set; }
[JsonPropertyName("hideHomeMediaDescription")] public bool? HideHomeMediaDescription { get; set; }
[JsonPropertyName("recommendationSystemSource")] public string? RecommendationSystemSource { get; set; }
[JsonPropertyName("recommendationsApplyParentalRatingCap")] public bool? RecommendationsApplyParentalRatingCap { get; set; }

Expand Down
12 changes: 8 additions & 4 deletions Emby/Emby.Plugins.Moonfin/Pages/moonfin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1949,10 +1949,14 @@ define(['baseView', 'loading', 'emby-input', 'emby-button', 'emby-checkbox', 'em
d.nextUpTimeout = getNullableIntInput(view, '#DefaultNextUpTimeout');
d.stillWatchingBehavior = view.querySelector('#DefaultStillWatchingBehavior').value || null;

var collectionIds = Array.prototype.slice.call(view.querySelectorAll('.adminCollectionCb:checked')).map(function (cb) { return cb.dataset.id; });
d.mediaBarCollectionIds = collectionIds.length > 0 ? collectionIds : null;
var libraryIds = Array.prototype.slice.call(view.querySelectorAll('.adminLibraryCb:checked')).map(function (cb) { return cb.dataset.id; });
d.mediaBarLibraryIds = libraryIds.length > 0 ? libraryIds : null;
if (view.querySelector('#DefaultCollectionPicker .adminCollectionCb')) {
var collectionIds = Array.prototype.slice.call(view.querySelectorAll('.adminCollectionCb:checked')).map(function (cb) { return cb.dataset.id; });
d.mediaBarCollectionIds = collectionIds.length > 0 ? collectionIds : null;
}
if (view.querySelector('#DefaultLibraryPicker .adminLibraryCb')) {
var libraryIds = Array.prototype.slice.call(view.querySelectorAll('.adminLibraryCb:checked')).map(function (cb) { return cb.dataset.id; });
d.mediaBarLibraryIds = libraryIds.length > 0 ? libraryIds : null;
}

d.homeRowsStyle = view.querySelector('#DefaultHomeRowsStyle').value || null;
d.fullScreenRows = getNullableBoolSelect(view, '#DefaultFullScreenRows');
Expand Down
9 changes: 9 additions & 0 deletions Jellyfin/backend/Models/MoonfinSettingsProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,15 @@ public class MoonfinSettingsProfile
[JsonPropertyName("detailShowTechnicalDetails")]
public bool? DetailShowTechnicalDetails { get; set; }

[JsonPropertyName("hideDetailsMediaDescription")]
public bool? HideDetailsMediaDescription { get; set; }

[JsonPropertyName("detailUseSeriesThumbnails")]
public bool? DetailUseSeriesThumbnails { get; set; }

[JsonPropertyName("hideHomeMediaDescription")]
public bool? HideHomeMediaDescription { get; set; }

[JsonPropertyName("recommendationSystemSource")]
public string? RecommendationSystemSource { get; set; }

Expand Down
26 changes: 15 additions & 11 deletions Jellyfin/backend/Pages/configPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -3998,7 +3998,7 @@ <h3 class="sectionTitle">Active Downloads</h3>
config.DefaultUserSettings.desktopUiScale = document.querySelector('#DefaultDesktopUiScale').value || null;
config.DefaultUserSettings.backdropEnabled = getNullableBoolSelect('#DefaultBackdropEnabled');
config.DefaultUserSettings.browsingBlur = getNullableIntInput('#DefaultBrowsingBlur');
config.DefaultUserSettings.detailsScreenBlur = getNullableIntInput('#DefaultDetailsScreenBlur');
config.DefaultUserSettings.detailsScreenBlur = getNullableRangeInput('#DefaultDetailsScreenBlur');
config.DefaultUserSettings.themeMusicEnabled = getNullableBoolSelect('#DefaultThemeMusicEnabled');
config.DefaultUserSettings.themeMusicOnHomeRows = getNullableBoolSelect('#DefaultThemeMusicOnHomeRows');
config.DefaultUserSettings.themeMusicLoop = getNullableBoolSelect('#DefaultThemeMusicLoop');
Expand Down Expand Up @@ -4049,18 +4049,22 @@ <h3 class="sectionTitle">Active Downloads</h3>
config.DefaultUserSettings.nextUpTimeout = getNullableIntInput('#DefaultNextUpTimeout');
config.DefaultUserSettings.stillWatchingBehavior = document.querySelector('#DefaultStillWatchingBehavior').value || null;

var collectionCbs = document.querySelectorAll('.adminCollectionCb:checked');
var collectionIds = [];
for (var ci = 0; ci < collectionCbs.length; ci++) {
collectionIds.push(collectionCbs[ci].dataset.id);
if (document.querySelector('#DefaultCollectionPicker .adminCollectionCb') != null) {
var collectionCbs = document.querySelectorAll('#DefaultCollectionPicker .adminCollectionCb:checked');
var collectionIds = [];
for (var ci = 0; ci < collectionCbs.length; ci++) {
collectionIds.push(collectionCbs[ci].dataset.id);
}
config.DefaultUserSettings.mediaBarCollectionIds = collectionIds.length > 0 ? collectionIds : null;
}
config.DefaultUserSettings.mediaBarCollectionIds = collectionIds.length > 0 ? collectionIds : null;
var libraryCbs = document.querySelectorAll('.adminLibraryCb:checked');
var libraryIds = [];
for (var li = 0; li < libraryCbs.length; li++) {
libraryIds.push(libraryCbs[li].dataset.id);
if (document.querySelector('#DefaultLibraryPicker .adminLibraryCb') != null) {
var libraryCbs = document.querySelectorAll('#DefaultLibraryPicker .adminLibraryCb:checked');
var libraryIds = [];
for (var li = 0; li < libraryCbs.length; li++) {
libraryIds.push(libraryCbs[li].dataset.id);
}
config.DefaultUserSettings.mediaBarLibraryIds = libraryIds.length > 0 ? libraryIds : null;
}
config.DefaultUserSettings.mediaBarLibraryIds = libraryIds.length > 0 ? libraryIds : null;


config.DefaultUserSettings.homeRowsStyle = document.querySelector('#DefaultHomeRowsStyle').value || null;
Expand Down
Loading