mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-17 21:26:22 -04:00
* Adding file info tab. Not finished yet. * Adding more media info options. * Deleting files now works. Fixes #127 * Fix button for modifying episode files. * Get Media Info when running DiskScanService.
24 lines
639 B
JavaScript
24 lines
639 B
JavaScript
var NzbDroneCell = require('./NzbDroneCell');
|
|
|
|
module.exports = NzbDroneCell.extend({
|
|
className : 'release-title-cell',
|
|
|
|
render : function() {
|
|
this.$el.empty();
|
|
|
|
var info = this.model.get('mediaInfo');
|
|
if (info) {
|
|
var runtime = info.runTime;
|
|
if (runtime) {
|
|
runtime = runtime.split(".")[0];
|
|
}
|
|
var video = "{0} ({1}x{2}) ({3})".format(info.videoCodec, info.width, info.height, runtime);
|
|
var audio = "{0} ({1})".format(info.audioFormat, info.audioLanguages);
|
|
this.$el.html(video + " " + audio);
|
|
}
|
|
|
|
|
|
return this;
|
|
}
|
|
});
|