From 3e40f5bbdb5c18459d50eb4fce28fd076a55b3cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20B=C3=BChlmann?= Date: Sun, 5 Nov 2017 16:46:39 +0100 Subject: [PATCH] Add session information to log output --- pvr.zattoo/addon.xml.in | 2 +- pvr.zattoo/changelog.txt | 2 ++ pvr.zattoo/resources/eit_categories.txt | 2 +- src/ZatData.cpp | 8 ++++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pvr.zattoo/addon.xml.in b/pvr.zattoo/addon.xml.in index e8086c3..98273d2 100644 --- a/pvr.zattoo/addon.xml.in +++ b/pvr.zattoo/addon.xml.in @@ -1,6 +1,6 @@ @ADDON_DEPENDS@ diff --git a/pvr.zattoo/changelog.txt b/pvr.zattoo/changelog.txt index 1215457..de2fbc9 100644 --- a/pvr.zattoo/changelog.txt +++ b/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 diff --git a/pvr.zattoo/resources/eit_categories.txt b/pvr.zattoo/resources/eit_categories.txt index 684f9d0..414d804 100644 --- a/pvr.zattoo/resources/eit_categories.txt +++ b/pvr.zattoo/resources/eit_categories.txt @@ -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" diff --git a/src/ZatData.cpp b/src/ZatData.cpp index da0b5b2..27d321d 100644 --- a/src/ZatData.cpp +++ b/src/ZatData.cpp @@ -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; }