Skip to content

Commit

Permalink
Merge pull request xbmc#17408 from ronie/SE-special
Browse files Browse the repository at this point in the history
change season/episode infolabels for specials
  • Loading branch information
razzeee authored and Maven85 committed May 5, 2020
1 parent 7edd612 commit 3d8ddbd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions xbmc/guilib/guiinfo/VideoGUIInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,26 +218,22 @@ bool CVideoGUIInfo::GetLabel(std::string& value, const CFileItem *item, int cont
case VIDEOPLAYER_EPISODE:
case LISTITEM_EPISODE:
{
int iSeason = -1, iEpisode = -1;
int iEpisode = -1;
if (tag->m_iEpisode > 0)
{
iSeason = tag->m_iSeason;
iEpisode = tag->m_iEpisode;
}

if (iEpisode >= 0)
{
if (iSeason == 0) // prefix episode with 'S'
value = StringUtils::Format("S%d", iEpisode);
else
value = StringUtils::Format("%d", iEpisode);
value = StringUtils::Format("%d", iEpisode);
return true;
}
break;
}
case VIDEOPLAYER_SEASON:
case LISTITEM_SEASON:
if (tag->m_iSeason > 0)
if (tag->m_iSeason >= 0)
{
value = StringUtils::Format("%d", tag->m_iSeason);
return true;
Expand Down

0 comments on commit 3d8ddbd

Please sign in to comment.