mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 17:47:08 +00:00
Episode status shows quality for downloaded episodes
This commit is contained in:
parent
87114c77e6
commit
e634022dd7
1 changed files with 11 additions and 2 deletions
|
@ -21,8 +21,17 @@ define(
|
|||
var hasFile = this.model.get('hasFile');
|
||||
|
||||
if (hasFile) {
|
||||
icon = 'icon-ok';
|
||||
tooltip = 'Episode downloaded';
|
||||
var quality = this.model.get('episodeFile').quality;
|
||||
|
||||
if (quality.proper) {
|
||||
this.$el.html('<span class="badge badge-info" title="Episode downloaded [PROPER]">{0}</span>'.format(quality.quality.name));
|
||||
}
|
||||
|
||||
else {
|
||||
this.$el.html('<span class="badge badge-inverse" title="Episode downloaded">{0}</span>'.format(quality.quality.name));
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
else {
|
||||
if (!this.model.get('airDate')) {
|
||||
|
|
Loading…
Reference in a new issue