diff --git a/dashboard-ui/edititemmetadata.html b/dashboard-ui/edititemmetadata.html
index bcba8c6265..0d19c5ef35 100644
--- a/dashboard-ui/edititemmetadata.html
+++ b/dashboard-ui/edititemmetadata.html
@@ -150,6 +150,10 @@
+
+
+
+
diff --git a/dashboard-ui/scripts/edititemmetadata.js b/dashboard-ui/scripts/edititemmetadata.js
index db27ea3073..35484e3bc7 100644
--- a/dashboard-ui/scripts/edititemmetadata.js
+++ b/dashboard-ui/scripts/edititemmetadata.js
@@ -354,6 +354,12 @@
$('#fldPath', page).hide();
}
+ if (item.Type == "Series") {
+ $('#fldSeriesRuntime', page).show();
+ } else {
+ $('#fldSeriesRuntime', page).hide();
+ }
+
if (item.Type == "Series" || item.Type == "Person") {
$('#fldEndDate', page).show();
} else {
@@ -660,6 +666,14 @@
$('#txtMusicBrainzReleaseGroupId', page).val(providerIds.MusicBrainzReleaseGroup || "");
$('#txtRottenTomatoes', page).val(providerIds.RottenTomatoes || "");
+ if (item.RunTimeTicks) {
+
+ var minutes = item.RunTimeTicks / 600000000;
+
+ $('#txtSeriesRuntime', page).val(minutes);
+ } else {
+ $('#txtSeriesRuntime', page).val("");
+ }
}
function convertTo24HourFormat(time) {
@@ -894,6 +908,13 @@
item.ProductionLocations = placeOfBirth ? [placeOfBirth] : [];
}
+
+ if (currentItem.Type == "Series") {
+
+ // 600000000
+ var seriesRuntime = $('#txtSeriesRuntime', form).val();
+ item.RunTimeTicks = seriesRuntime ? (seriesRuntime * 600000000) : null;
+ }
var updatePromise;