{
CStdString condition(CGUIInfoLabel::ReplaceLocalize(expression));
StringUtils::Trim(condition);
- StringUtils::ToLower(condition);
if (condition.empty())
return INFO::InfoPtr();
}
case VIDEOPLAYER_CONTENT:
{
- CStdString strContent="movies";
- if (!m_currentFile->HasVideoInfoTag() || m_currentFile->GetVideoInfoTag()->IsEmpty())
- strContent = "files";
+ CStdString strContent="files";
+ if (m_currentFile->HasVideoInfoTag() && m_currentFile->GetVideoInfoTag()->m_type == "movie")
+ strContent = "movies";
if (m_currentFile->HasVideoInfoTag() && m_currentFile->GetVideoInfoTag()->m_iSeason > -1) // episode
strContent = "episodes";
if (m_currentFile->HasVideoInfoTag() && !m_currentFile->GetVideoInfoTag()->m_artist.empty())
NotifyObservers(ObservableMessageCurrentItem);
}
-void CGUIInfoManager::SetCurrentAlbumThumb(const CStdString thumbFileName)
+void CGUIInfoManager::SetCurrentAlbumThumb(const CStdString &thumbFileName)
{
if (CFile::Exists(thumbFileName))
m_currentFile->SetArt("thumb", thumbFileName);
CStdString track;
if (item->HasMusicInfoTag())
track = StringUtils::Format("%i", item->GetMusicInfoTag()->GetTrackNumber());
-
+ if (item->HasVideoInfoTag() && item->GetVideoInfoTag()->m_iTrack > -1 )
+ track = StringUtils::Format("%i", item->GetVideoInfoTag()->m_iTrack);
return track;
}
case LISTITEM_DISC_NUMBER:
URIUtils::RemoveSlashAtEnd(path);
path=URIUtils::GetFileName(path);
}
- CURL::Decode(path);
return path;
}
case LISTITEM_FILENAME_AND_PATH:
else
path = item->GetPath();
path = CURL(path).GetWithoutUserDetails();
- CURL::Decode(path);
return path;
}
case LISTITEM_PICTURE_PATH: