Skip to content

Commit

Permalink
Get correct MimeType for PVR Channel, if set.
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Sep 26, 2012
1 parent 1830ac0 commit 7c52fdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/FileItem.cpp
Expand Up @@ -1377,6 +1377,8 @@ const CStdString& CFileItem::GetMimeType(bool lookup /*= true*/) const


if( m_bIsFolder ) if( m_bIsFolder )
m_ref = "x-directory/normal"; m_ref = "x-directory/normal";
else if( m_pvrChannelInfoTag )
m_ref = m_pvrChannelInfoTag->InputFormat().Trim();
else if( m_strPath.Left(8).Equals("shout://") else if( m_strPath.Left(8).Equals("shout://")
|| m_strPath.Left(7).Equals("http://") || m_strPath.Left(7).Equals("http://")
|| m_strPath.Left(8).Equals("https://")) || m_strPath.Left(8).Equals("https://"))
Expand Down

0 comments on commit 7c52fdf

Please sign in to comment.