Update sizing information in settings tab.

pull/2/head
Leonardo Galli 8 years ago
parent 2bb21fedab
commit 2d3a3a0677

@ -6,7 +6,7 @@
<div class="row"> <div class="row">
<span class="col-md-2 col-sm-3">Quality</span> <span class="col-md-2 col-sm-3">Quality</span>
<span class="col-md-2 col-sm-3">Title</span> <span class="col-md-2 col-sm-3">Title</span>
<span class="col-md-4 col-sm-6">Size Limit <i class="icon-sonarr-info" title="Limits are automatically adjusted for the series runtime and number of episodes in the file." /></span> <span class="col-md-4 col-sm-6">Size Limit <i class="icon-sonarr-warning" title="Limits are automatically adjusted for the movie runtime." /></span>
</div> </div>
</div> </div>
<div class="rows x-rows"> <div class="rows x-rows">

@ -67,8 +67,8 @@ var view = Marionette.ItemView.extend({
var maxSize = this.model.get('maxSize') || null; var maxSize = this.model.get('maxSize') || null;
{ {
var minBytes = minSize * 1024 * 1024; var minBytes = minSize * 1024 * 1024;
var minThirty = FormatHelpers.bytes(minBytes * 30, 2); var minThirty = FormatHelpers.bytes(minBytes * 90, 2);
var minSixty = FormatHelpers.bytes(minBytes * 60, 2); var minSixty = FormatHelpers.bytes(minBytes * 140, 2);
this.ui.thirtyMinuteMinSize.html(minThirty); this.ui.thirtyMinuteMinSize.html(minThirty);
this.ui.sixtyMinuteMinSize.html(minSixty); this.ui.sixtyMinuteMinSize.html(minSixty);
@ -80,8 +80,8 @@ var view = Marionette.ItemView.extend({
this.ui.sixtyMinuteMaxSize.html('Unlimited'); this.ui.sixtyMinuteMaxSize.html('Unlimited');
} else { } else {
var maxBytes = maxSize * 1024 * 1024; var maxBytes = maxSize * 1024 * 1024;
var maxThirty = FormatHelpers.bytes(maxBytes * 30, 2); var maxThirty = FormatHelpers.bytes(maxBytes * 90, 2);
var maxSixty = FormatHelpers.bytes(maxBytes * 60, 2); var maxSixty = FormatHelpers.bytes(maxBytes * 140, 2);
this.ui.thirtyMinuteMaxSize.html(maxThirty); this.ui.thirtyMinuteMaxSize.html(maxThirty);
this.ui.sixtyMinuteMaxSize.html(maxSixty); this.ui.sixtyMinuteMaxSize.html(maxSixty);

@ -10,21 +10,21 @@
<div class="pull-left"> <div class="pull-left">
<span class="label label-warning x-min-thirty" <span class="label label-warning x-min-thirty"
name="thirtyMinuteMinSize" name="thirtyMinuteMinSize"
title="Minimum size for a 30 minute episode"> title="Minimum size for a 90 minute episode">
</span> </span>
<span class="label label-info x-min-sixty" <span class="label label-info x-min-sixty"
name="sixtyMinuteMinSize" name="sixtyMinuteMinSize"
title="Minimum size for a 60 minute episode"> title="Minimum size for a 140 minute episode">
</span> </span>
</div> </div>
<div class="pull-right"> <div class="pull-right">
<span class="label label-warning x-max-thirty" <span class="label label-warning x-max-thirty"
name="thirtyMinuteMaxSize" name="thirtyMinuteMaxSize"
title="Maximum size for a 30 minute episode"> title="Maximum size for a 90 minute movie">
</span> </span>
<span class="label label-info x-max-sixty" <span class="label label-info x-max-sixty"
name="sixtyMinuteMaxSize" name="sixtyMinuteMaxSize"
title="Maximum size for a 60 minute episode"> title="Maximum size for a 140 minute movie">
</span> </span>
</div> </div>
</div> </div>

Loading…
Cancel
Save