aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphate89 <phates89@gmail.com>2016-06-17 21:01:58 +0200
committerGitHub <noreply@github.com>2016-06-17 21:01:58 +0200
commit9248a82331e5311e8a5a15ce0ac8a84a7600ad07 (patch)
tree9e8e3f6f51a031bff3fcbaf450332d0e35f18e2a
parentc5c06529bad8fad79cc569a59f0ca7af60721479 (diff)
parent0fd421a5425acc8be8bf0951996573f04a4c29ec (diff)
Merge pull request #9991 from phate89/use_year_in_label2
Use year in label2 when sorting by year
-rw-r--r--xbmc/utils/LabelFormatter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/utils/LabelFormatter.cpp b/xbmc/utils/LabelFormatter.cpp
index 1582285b39..b7e628a433 100644
--- a/xbmc/utils/LabelFormatter.cpp
+++ b/xbmc/utils/LabelFormatter.cpp
@@ -209,8 +209,8 @@ std::string CLabelFormatter::GetMaskContent(const CMaskString &mask, const CFile
{
if (movie->m_firstAired.IsValid())
value = movie->m_firstAired.GetAsLocalizedDate();
- else if (movie->HasPremiered())
- value = movie->GetPremiered().GetAsLocalizedDate();
+ else if (movie->HasYear())
+ value = StringUtils::Format("%i", movie->GetYear());
}
break;
case 'F': // filename