diff --git a/UI/Quality/QualitySizeModel.js b/UI/Quality/QualitySizeModel.js
index e974e6c5f..0eda8150b 100644
--- a/UI/Quality/QualitySizeModel.js
+++ b/UI/Quality/QualitySizeModel.js
@@ -8,10 +8,22 @@ define(
mutators: {
thirtyMinuteSize: function () {
- return this.get('maxSize') * 30;
+ var maxSize = this.get('maxSize');
+
+ if (maxSize === 0) {
+ return 'No Limit';
+ }
+
+ return (maxSize * 1024 * 1024 * 30).bytes(1);
},
sixtyMinuteSize : function () {
- return this.get('maxSize') * 60;
+ var maxSize = this.get('maxSize');
+
+ if (maxSize === 0) {
+ return 'No Limit';
+ }
+
+ return (maxSize * 1024 * 1024 * 60).bytes(1);
}
}
});
diff --git a/UI/Settings/Quality/Size/QualitySizeTemplate.html b/UI/Settings/Quality/Size/QualitySizeTemplate.html
index f84c7cb13..c131fb64f 100644
--- a/UI/Settings/Quality/Size/QualitySizeTemplate.html
+++ b/UI/Settings/Quality/Size/QualitySizeTemplate.html
@@ -5,13 +5,13 @@
+ title="Maximum size for a 30 minute episode">
+ title="Maximum size for a 60 minute episode">
diff --git a/UI/Settings/Quality/Size/QualitySizeView.js b/UI/Settings/Quality/Size/QualitySizeView.js
index e11d37771..a5fea3fa0 100644
--- a/UI/Settings/Quality/Size/QualitySizeView.js
+++ b/UI/Settings/Quality/Size/QualitySizeView.js
@@ -24,7 +24,7 @@ define(['marionette', 'Mixins/AsModelBoundView', 'jquery.knob'], function (Mario
this.ui.knob.knob({
min : 0,
max : 200,
- step : 10,
+ step : 5,
cursor : 25,
width : 150,
stopper : true,
@@ -32,11 +32,19 @@ define(['marionette', 'Mixins/AsModelBoundView', 'jquery.knob'], function (Mario
});
},
- _changeMaxSize: function (e) {
- var value = this.model.get('maxSize');
+ _changeMaxSize: function () {
+ var maxSize = this.model.get('maxSize');
+ var bytes = maxSize * 1024 * 1024;
+ var thirty = (bytes * 30).bytes(1);
+ var sixty = (bytes * 60).bytes(1);
- this.ui.thirtyMinuteSize.html(value * 30);
- this.ui.sixtyMinuteSize.html(value * 60);
+ if (parseInt(maxSize) === 0) {
+ thirty = 'No Limit';
+ sixty = 'No Limit';
+ }
+
+ this.ui.thirtyMinuteSize.html(thirty);
+ this.ui.sixtyMinuteSize.html(sixty);
}
});