mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Sugared quality size knobs
This commit is contained in:
parent
2ce5f6d416
commit
f65911aff7
3 changed files with 29 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue