Skip to content

Commit

Permalink
Merge pull request xbmc#18947 from phunkyfish/pvr-json-broadcast-type
Browse files Browse the repository at this point in the history
[pvr] fix epg retrieval which should be by database ID
  • Loading branch information
ksooo committed Dec 19, 2020
2 parents f370a93 + 5166f59 commit c9da8b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions xbmc/interfaces/json-rpc/PVROperations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,9 @@ JSONRPC_STATUS CPVROperations::AddTimer(const std::string &method, ITransportLay
if (!CServiceBroker::GetPVRManager().IsStarted())
return FailedToExecute;

const std::shared_ptr<CPVREpgInfoTag> epgTag = CServiceBroker::GetPVRManager().EpgContainer().GetTagById(nullptr,
parameterObject["broadcastid"].asUnsignedInteger());
const std::shared_ptr<CPVREpgInfoTag> epgTag =
CServiceBroker::GetPVRManager().EpgContainer().GetTagByDatabaseId(
parameterObject["broadcastid"].asInteger());

if (!epgTag)
return InvalidParams;
Expand Down Expand Up @@ -440,8 +441,9 @@ JSONRPC_STATUS CPVROperations::ToggleTimer(const std::string &method, ITransport
if (!CServiceBroker::GetPVRManager().IsStarted())
return FailedToExecute;

const std::shared_ptr<CPVREpgInfoTag> epgTag = CServiceBroker::GetPVRManager().EpgContainer().GetTagById(nullptr,
parameterObject["broadcastid"].asUnsignedInteger());
const std::shared_ptr<CPVREpgInfoTag> epgTag =
CServiceBroker::GetPVRManager().EpgContainer().GetTagByDatabaseId(
parameterObject["broadcastid"].asInteger());

if (!epgTag)
return InvalidParams;
Expand Down
2 changes: 1 addition & 1 deletion xbmc/interfaces/json-rpc/schema/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
JSONRPC_VERSION 11.20.0
JSONRPC_VERSION 11.20.1

0 comments on commit c9da8b4

Please sign in to comment.