mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added realtime monitor setting
This commit is contained in:
parent
f83b2b662a
commit
24373b5706
6 changed files with 29 additions and 2 deletions
|
@ -147,6 +147,11 @@
|
|||
<input type="checkbox" id="chkOverwriteExistingEpisodes" name="chkOverwriteExistingEpisodes" />
|
||||
<label for="chkOverwriteExistingEpisodes">Overwrite existing episodes</label>
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtDeleteLeftOverFiles">Delete left over files with the following extensions: </label>
|
||||
<input type="text" id="txtDeleteLeftOverFiles" name="txtDeleteLeftOverFiles" data-mini="true" />
|
||||
<div class="fieldDescription">Separate with ;. For example: .nfo;.txt</div>
|
||||
</li>
|
||||
<li>
|
||||
<input type="checkbox" id="chkDeleteEmptyFolders" name="chkDeleteEmptyFolders" />
|
||||
<label for="chkDeleteEmptyFolders">Delete empty folders after organizing</label>
|
||||
|
|
|
@ -16,6 +16,13 @@
|
|||
<form id="librarySettingsForm">
|
||||
|
||||
<ul data-role="listview" class="ulForm">
|
||||
<li>
|
||||
<input type="checkbox" id="chkEnableRealtimeMonitor" name="chkEnableRealtimeMonitor" />
|
||||
<label for="chkEnableRealtimeMonitor">Enable real time monitoring</label>
|
||||
<div class="fieldDescription">
|
||||
Changes will be processed immediately, on supported file systems.
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<input type="checkbox" id="chkEnableCustomIBNPath" name="chkEnableCustomIBNPath" />
|
||||
<label for="chkEnableCustomIBNPath">Use custom images by name path</label>
|
||||
|
|
|
@ -69,6 +69,8 @@
|
|||
|
||||
$('#txtEpisodePattern', page).val(tvOptions.EpisodeNamePattern).trigger('change');
|
||||
$('#txtMultiEpisodePattern', page).val(tvOptions.MultiEpisodeNamePattern).trigger('change');
|
||||
|
||||
$('#txtDeleteLeftOverFiles', page).val(tvOptions.LeftOverFileExtensionsToDelete.join(';'));
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#libraryFileOrganizerPage", function () {
|
||||
|
@ -143,6 +145,8 @@
|
|||
tvOptions.EpisodeNamePattern = $('#txtEpisodePattern', form).val();
|
||||
tvOptions.MultiEpisodeNamePattern = $('#txtMultiEpisodePattern', form).val();
|
||||
|
||||
tvOptions.LeftOverFileExtensionsToDelete = $('#txtDeleteLeftOverFiles', form).val().split(';');
|
||||
|
||||
var watchLocation = $('#txtWatchFolder', form).val();
|
||||
tvOptions.WatchLocations = watchLocation ? [watchLocation] : [];
|
||||
|
||||
|
|
|
@ -498,7 +498,14 @@
|
|||
$('#fldRecursive', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type != "Channel" && item.Type != "Genre" && item.Type != "Studio" && item.Type != "MusicGenre" && item.Type != "GameGenre" && item.Type != "Person" && item.Type != "MusicArtist") {
|
||||
if (item.Type != "Channel" &&
|
||||
item.Type != "Genre" &&
|
||||
item.Type != "Studio" &&
|
||||
item.Type != "MusicGenre" &&
|
||||
item.Type != "GameGenre" &&
|
||||
item.Type != "Person" &&
|
||||
item.Type != "MusicArtist" &&
|
||||
item.Type != "UserRootFolder") {
|
||||
$('#fldDelete', page).show();
|
||||
} else {
|
||||
$('#fldDelete', page).hide();
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
$('#txtSeasonZeroName', page).val(config.SeasonZeroDisplayName);
|
||||
|
||||
$('#chkEnableRealtimeMonitor', page).checked(config.EnableRealtimeMonitor).checkboxradio("refresh");
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
|
@ -91,6 +93,8 @@
|
|||
|
||||
config.SeasonZeroDisplayName = $('#txtSeasonZeroName', form).val();
|
||||
|
||||
config.EnableRealtimeMonitor = $('#chkEnableRealtimeMonitor', form).checked();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
});
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
SortBy: "DateCreated",
|
||||
SortOrder: "Descending",
|
||||
IncludeItemTypes: "Movie",
|
||||
Limit: 6,
|
||||
Limit: 12,
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio,DateCreated,UserData",
|
||||
Filters: "IsUnplayed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue