Skip to content

Commit

Permalink
Add session information to log output
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuehlma committed Nov 5, 2017
1 parent 70fafbe commit 3e40f5b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pvr.zattoo/addon.xml.in
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="pvr.zattoo"
version="18.0.24"
version="18.0.25"
name="Zattoo PVR Client"
provider-name="trummerjo,rbuehlma">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
2 changes: 2 additions & 0 deletions pvr.zattoo/changelog.txt
@@ -1,3 +1,5 @@
v18.0.25
- Add some session information to log output
v18.0.24
- Sync time handling with pvr.teleboy
v18.0.23
Expand Down
2 changes: 1 addition & 1 deletion pvr.zattoo/resources/eit_categories.txt
Expand Up @@ -17,7 +17,7 @@
0x31;"Game Show/Spielshow"
0x32;"Variety Show"
0x33;"Talk Show/Talkshow"
0x40;"Sports/Cycling/Extreme Sports/Extremsport/Golf/Radsport/US-Sport/US Sports"
0x40;"Sports/Cycling/Extreme Sports/Extremsport/Golf/Radsport/US-Sport/US Sports/Aerobics"
0x41;"Special Events (World Cup, World Series, etc)"
0x42;"Sports Magazines"
0x43;"Football (Soccer)/Fußball/Soccer"
Expand Down
8 changes: 8 additions & 0 deletions src/ZatData.cpp
Expand Up @@ -348,10 +348,18 @@ bool ZatData::InitSession()
countryCode = session["aliased_country_code"].GetString();
recallEnabled = streamType == "dash" && session["recall_eligible"].GetBool();
recordingEnabled = session["recording_eligible"].GetBool();
XBMC->Log(LOG_NOTICE, "Country code: %s", countryCode.c_str());
XBMC->Log(LOG_NOTICE, "Stream type: %s", streamType.c_str());
if (recallEnabled)
{
maxRecallSeconds = session["recall_seconds"].GetInt();
XBMC->Log(LOG_NOTICE, "Recall is enabled for %d seconds.", maxRecallSeconds);
}
else
{
XBMC->Log(LOG_NOTICE, "Recall is disabled");
}
XBMC->Log(LOG_NOTICE, "Recordings are %s", recordingEnabled ? "enabled" : "disabled");
powerHash = session["power_guide_hash"].GetString();
return true;
}
Expand Down

0 comments on commit 3e40f5b

Please sign in to comment.