{movie.Id}));
_diskScanService.Scan(movie);
}
catch (Exception e)
diff --git a/src/UI/Movies/Edit/EditMovieTemplate.hbs b/src/UI/Movies/Edit/EditMovieTemplate.hbs
index 185ad3af8..440a6439b 100644
--- a/src/UI/Movies/Edit/EditMovieTemplate.hbs
+++ b/src/UI/Movies/Edit/EditMovieTemplate.hbs
@@ -47,27 +47,29 @@
-
+
+
diff --git a/src/UI/Movies/Edit/EditMovieView.js b/src/UI/Movies/Edit/EditMovieView.js
index d8861d59d..08542c207 100644
--- a/src/UI/Movies/Edit/EditMovieView.js
+++ b/src/UI/Movies/Edit/EditMovieView.js
@@ -22,6 +22,12 @@ var view = Marionette.ItemView.extend({
initialize : function() {
this.model.set('profiles', Profiles);
+ var pathState = this.model.get("pathState");
+ if (pathState == "static") {
+ this.model.set("pathState", true);
+ } else {
+ this.model.set("pathState", false);
+ }
},
onRender : function() {
@@ -30,11 +36,18 @@ var view = Marionette.ItemView.extend({
model : this.model,
property : 'tags'
});
+
},
_onBeforeSave : function() {
var profileId = this.ui.profile.val();
this.model.set({ profileId : profileId });
+ var pathState = this.model.get("pathState");
+ if (pathState === true) {
+ this.model.set("pathState", "static");
+ } else {
+ this.model.set("pathState", "dynamic");
+ }
},
_onAfterSave : function() {
diff --git a/src/UI/Movies/Editor/MovieEditorFooterView.js b/src/UI/Movies/Editor/MovieEditorFooterView.js
index 3a513f35b..ff24b2493 100644
--- a/src/UI/Movies/Editor/MovieEditorFooterView.js
+++ b/src/UI/Movies/Editor/MovieEditorFooterView.js
@@ -15,7 +15,7 @@ module.exports = Marionette.ItemView.extend({
monitored : '.x-monitored',
profile : '.x-profiles',
minimumAvailability : '.x-minimumavailability',
- seasonFolder : '.x-season-folder',
+ staticPath : '.x-static-path',
rootFolder : '.x-root-folder',
selectedCount : '.x-selected-count',
container : '.series-editor-footer',
@@ -52,7 +52,7 @@ module.exports = Marionette.ItemView.extend({
this.listenTo(FullMovieCollection, 'save', function() {
window.alert(' Done Saving');
-
+
var selected = FullMovieCollection.where({ selected : true });
});
@@ -71,7 +71,7 @@ module.exports = Marionette.ItemView.extend({
var monitored = this.ui.monitored.val();
var minAvail = this.ui.minimumAvailability.val();
var profile = this.ui.profile.val();
- var seasonFolder = this.ui.seasonFolder.val();
+ var staticPath = this.ui.staticPath.val();
var rootFolder = this.ui.rootFolder.val();
var i = 0;
@@ -94,10 +94,8 @@ module.exports = Marionette.ItemView.extend({
model.set('profileId', parseInt(profile, 10));
}
- if (seasonFolder === 'true') {
- model.set('seasonFolder', true);
- } else if (seasonFolder === 'false') {
- model.set('seasonFolder', false);
+ if (staticPath !== 'noChange') {
+ model.set('pathState', staticPath);
}
if (rootFolder !== 'noChange') {
@@ -129,10 +127,8 @@ module.exports = Marionette.ItemView.extend({
m.set('profileId', parseInt(profile, 10));
}
- if (seasonFolder === 'true') {
- m.set('seasonFolder', true);
- } else if (seasonFolder === 'false') {
- m.set('seasonFolder', false);
+ if (staticPath !== 'noChange') {
+ m.set('pathState', staticPath);
}
if (rootFolder !== 'noChange') {
diff --git a/src/UI/Movies/Editor/MovieEditorFooterViewTemplate.hbs b/src/UI/Movies/Editor/MovieEditorFooterViewTemplate.hbs
index c53c818be..cd443eb93 100644
--- a/src/UI/Movies/Editor/MovieEditorFooterViewTemplate.hbs
+++ b/src/UI/Movies/Editor/MovieEditorFooterViewTemplate.hbs
@@ -1,6 +1,6 @@