Skip to content

Commit

Permalink
epg: Support downloading/showing poster for event
Browse files Browse the repository at this point in the history
  • Loading branch information
palinek committed Oct 22, 2020
1 parent 2d44095 commit 5390c53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pvr.sledovanitv.cz/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.sledovanitv.cz"
version="1.8.0"
version="1.9.0"
name="PVR Client for sledovanitv.cz (unofficial)"
provider-name="palinek">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
2 changes: 1 addition & 1 deletion src/ApiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ bool ApiManager::getEpg(time_t start, bool smallDuration, const std::string & ch

params.emplace_back("time", formatTime(start));
params.emplace_back("duration", smallDuration ? "60" : "1439");
params.emplace_back("detail", "1");
params.emplace_back("detail", "description,poster");
params.emplace_back("allowOrder", "1");
if (!channels.empty())
params.emplace_back("channels", std::move(channels));
Expand Down
1 change: 1 addition & 0 deletions src/Data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ bool Data::LoadEPG(time_t iStart, bool bSmallStep)
iptventry.startTime = start_time;
iptventry.endTime = end_time;
iptventry.strEventId = epgEntry.get("eventId", "").asString();
iptventry.strIconPath = epgEntry.get("poster", "").asString();
std::string availability = epgEntry.get("availability", "none").asString();
iptventry.availableTimeshift = availability == "timeshift" || availability == "pvr";
iptventry.strRecordId = epgEntry["recordId"].asString();
Expand Down

0 comments on commit 5390c53

Please sign in to comment.