Skip to content

Commit

Permalink
Mime-Type / gzipped EPG download
Browse files Browse the repository at this point in the history
  • Loading branch information
peak3d authored and rbuehlma committed Dec 22, 2017
1 parent 23d9993 commit 3d7d559
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ZatData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ string ZatData::HttpRequest(string action, string url, string postData,
{
Curl curl;
int statusCode;

curl.AddOption("acceptencoding", "gzip,deflate");

if (!beakerSessionId.empty())
{
Expand Down
14 changes: 13 additions & 1 deletion src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,19 @@ void setStreamProperties(PVR_NAMED_VALUE* properties,
sizeof(properties[2].strName));
strncpy(properties[2].strValue, streamType ? "hls" : "mpd",
sizeof(properties[2].strValue));
*propertiesCount = 3;
strncpy(properties[3].strName, "mimetype",
sizeof(properties[3].strName));
strncpy(properties[3].strValue, streamType ? "application/x-mpegURL" : "application/xml+dash",
sizeof(properties[3].strValue));
*propertiesCount = 4;
if (!streamType)
{
strncpy(properties[4].strName, "inputstream.adaptive.manifest_update_parameter",
sizeof(properties[4].strName));
strncpy(properties[4].strValue, "full",
sizeof(properties[4].strValue));
*propertiesCount = 5;
}
}

PVR_ERROR GetChannelStreamProperties(const PVR_CHANNEL* channel,
Expand Down

0 comments on commit 3d7d559

Please sign in to comment.