Skip to content

Commit

Permalink
[pvr] fixed: file path for recordings with a / in the channel name
Browse files Browse the repository at this point in the history
  • Loading branch information
opdenkamp committed Mar 5, 2015
1 parent 575e381 commit a8090c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/pvr/recordings/PVRRecording.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,10 @@ void CPVRRecording::UpdatePath(void)
if (!m_strDirectory.empty())
strDirectory = StringUtils::Format("%s/", m_strDirectory.c_str());
if (!m_strChannelName.empty())
{
strChannel = StringUtils::Format(" (%s)", m_strChannelName.c_str());
StringUtils::Replace(strChannel, '/',' ');
}
m_strFileNameAndPath = StringUtils::Format("pvr://" PVR_RECORDING_BASE_PATH "/%s/%s%s, TV%s, %s.pvr", m_bIsDeleted ? PVR_RECORDING_DELETED_PATH : PVR_RECORDING_ACTIVE_PATH, strDirectory.c_str(), strTitle.c_str(), strChannel.c_str(), strDatetime.c_str());
}
}
Expand Down

0 comments on commit a8090c0

Please sign in to comment.