diff options
author | phate89 <phates89@gmail.com> | 2016-06-17 21:01:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-17 21:01:58 +0200 |
commit | 9248a82331e5311e8a5a15ce0ac8a84a7600ad07 (patch) | |
tree | 9e8e3f6f51a031bff3fcbaf450332d0e35f18e2a | |
parent | c5c06529bad8fad79cc569a59f0ca7af60721479 (diff) | |
parent | 0fd421a5425acc8be8bf0951996573f04a4c29ec (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.cpp | 4 |
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 |