AlternativeTitles { get; set; }
+ public MovieFileResource MovieFile { get; set; }
//TODO: Add series statistics as a property of the series (instead of individual properties)
@@ -84,6 +85,7 @@ namespace NzbDrone.Api.Movie
long size = 0;
bool downloaded = false;
+ MovieFileResource movieFile = null;
if(model.MovieFile != null)
@@ -95,6 +97,7 @@ namespace NzbDrone.Api.Movie
{
size = model.MovieFile.Value.Size;
downloaded = true;
+ movieFile = model.MovieFile.Value.ToResource();
}
return new MovieResource
@@ -140,7 +143,8 @@ namespace NzbDrone.Api.Movie
Added = model.Added,
AddOptions = model.AddOptions,
AlternativeTitles = model.AlternativeTitles,
- Ratings = model.Ratings
+ Ratings = model.Ratings,
+ MovieFile = movieFile
};
}
diff --git a/src/UI/Cells/MovieDownloadStatusTemplate.hbs b/src/UI/Cells/MovieDownloadStatusTemplate.hbs
index 002a9fdc6..93a88fdf1 100644
--- a/src/UI/Cells/MovieDownloadStatusTemplate.hbs
+++ b/src/UI/Cells/MovieDownloadStatusTemplate.hbs
@@ -1 +1 @@
-{{DownloadedStatus}}
+{{DownloadedStatus}}
diff --git a/src/UI/Handlebars/Helpers/Series.js b/src/UI/Handlebars/Helpers/Series.js
index fa642e39f..b33e192b0 100644
--- a/src/UI/Handlebars/Helpers/Series.js
+++ b/src/UI/Handlebars/Helpers/Series.js
@@ -161,6 +161,14 @@ Handlebars.registerHelper('DownloadedStatus', function() {
return "Missing";
});
+Handlebars.registerHelper("DownloadedQuality", function() {
+ if (this.movieFile) {
+ return this.movieFile.quality.quality.name;
+ }
+
+ return "";
+})
+
Handlebars.registerHelper('inCinemas', function() {
var monthNames = ["January", "February", "March", "April", "May", "June",
diff --git a/src/UI/Movies/Details/InfoViewTemplate.hbs b/src/UI/Movies/Details/InfoViewTemplate.hbs
index 602a13e72..35652f838 100644
--- a/src/UI/Movies/Details/InfoViewTemplate.hbs
+++ b/src/UI/Movies/Details/InfoViewTemplate.hbs
@@ -26,7 +26,7 @@
{{else}}
Announced
{{/if_eq}}
- {{DownloadedStatus}}
+ {{DownloadedStatus}}
diff --git a/src/UI/Movies/Index/Overview/SeriesOverviewItemViewTemplate.hbs b/src/UI/Movies/Index/Overview/SeriesOverviewItemViewTemplate.hbs
index 302d431ca..b1181c07d 100644
--- a/src/UI/Movies/Index/Overview/SeriesOverviewItemViewTemplate.hbs
+++ b/src/UI/Movies/Index/Overview/SeriesOverviewItemViewTemplate.hbs
@@ -41,7 +41,7 @@
{{profile profileId}}
- {{DownloadedStatus}}
+ {{DownloadedStatus}}