From 0b9f6ce00082a5420a6e3e8988c07503289b8863 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 22 Dec 2013 22:45:51 -0500 Subject: [PATCH] added new wizard page with more chapter image control --- dashboard-ui/scripts/wizardimagesettings.js | 51 +++++++++++++++++++ dashboard-ui/wizardimagesettings.html | 55 +++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 dashboard-ui/scripts/wizardimagesettings.js create mode 100644 dashboard-ui/wizardimagesettings.html diff --git a/dashboard-ui/scripts/wizardimagesettings.js b/dashboard-ui/scripts/wizardimagesettings.js new file mode 100644 index 0000000000..0a7c20c279 --- /dev/null +++ b/dashboard-ui/scripts/wizardimagesettings.js @@ -0,0 +1,51 @@ +(function ($, document) { + + function save(page) { + + Dashboard.showLoadingMsg(); + + // After saving chapter task, now save server config + ApiClient.getServerConfiguration().done(function (config) { + + config.EnableVideoImageExtraction = $('#chkVIdeoImages', page).checked(); + config.ImageSavingConvention = $('#selectImageSavingConvention', page).val(); + + config.EnableMovieChapterImageExtraction = $('#chkMovies', page).checked(); + config.EnableEpisodeChapterImageExtraction = $('#chkEpisodes', page).checked(); + config.EnableOtherVideoChapterImageExtraction = $('#chkOtherVideos', page).checked(); + + ApiClient.updateServerConfiguration(config).done(function (result) { + + navigateToNextPage(); + + }); + }); + + } + + function navigateToNextPage() { + + ApiClient.getSystemInfo().done(function (systemInfo) { + + var os = systemInfo.OperatingSystem.toLowerCase(); + + if (os.indexOf('windows') != -1) { + Dashboard.navigate('wizardservice.html'); + } else { + Dashboard.navigate('wizardfinish.html'); + } + + }); + } + + $(document).on('pageinit', "#wizardImageSettingsPage", function () { + + var page = this; + + $('#btnNextPage', page).on('click', function () { + + save(page); + }); + }); + +})(jQuery, document, window); diff --git a/dashboard-ui/wizardimagesettings.html b/dashboard-ui/wizardimagesettings.html new file mode 100644 index 0000000000..0a5629b86b --- /dev/null +++ b/dashboard-ui/wizardimagesettings.html @@ -0,0 +1,55 @@ + + + + Media Browser + + +
+ +
+ +
+

+ Configure settings

+ +
+
+ + +
Media Browser recognizes images from most major media applications. Choosing your downloading convention is useful if you also use other products.
+
+ +
+ + +
For videos that don't already have images, and that we're unable to find internet images for. This will add some additional time to the initial library scan but will result in a more pleasing presentation.
+
+ +
+ +
+ + + + + + + + +
Extracting chapter images will allow clients to display graphical scene selection menus. The process can be slow, cpu-intensive and may require several gigabytes of space. It runs as a nightly scheduled task at 4am, although this is configurable in the scheduled tasks area. It is not recommended to run this task during peak usage hours.
+
+
+ +
+ + +
+
+ +
+
+ +