Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PVR] Add Info support to recently played channel widget. #12254

Merged
merged 1 commit into from
Jun 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions xbmc/listproviders/DirectoryProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "music/MusicThumbLoader.h"
#include "pictures/PictureThumbLoader.h"
#include "pvr/PVRManager.h"
#include "pvr/dialogs/GUIDialogPVRGuideInfo.h"
#include "pvr/dialogs/GUIDialogPVRRecordingInfo.h"
#include "settings/Settings.h"
#include "threads/SingleLock.h"
Expand Down Expand Up @@ -396,6 +397,11 @@ bool CDirectoryProvider::OnInfo(const CGUIListItemPtr& item)
CGUIDialogPVRRecordingInfo::ShowFor(fileItem);
return true;
}
else if (fileItem->HasPVRChannelInfoTag())
{
CGUIDialogPVRGuideInfo::ShowFor(fileItem);
return true;
}
else if (fileItem->HasVideoInfoTag())
{
auto mediaType = fileItem->GetVideoInfoTag()->m_type;
Expand Down
5 changes: 5 additions & 0 deletions xbmc/pvr/dialogs/GUIDialogPVRGuideInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,8 @@ void CGUIDialogPVRGuideInfo::OnInitWindow()
if (bHideAddTimer)
SET_CONTROL_HIDDEN(CONTROL_BTN_ADD_TIMER);
}

void CGUIDialogPVRGuideInfo::ShowFor(const CFileItemPtr& item)
{
CServiceBroker::GetPVRManager().GUIActions()->ShowEPGInfo(item);
}
2 changes: 2 additions & 0 deletions xbmc/pvr/dialogs/GUIDialogPVRGuideInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ namespace PVR

void SetProgInfo(const CPVREpgInfoTagPtr &tag);

static void ShowFor(const CFileItemPtr& item);

protected:
void OnInitWindow() override;

Expand Down