aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdembski <jdembski@htpc.(none)>2011-01-06 10:24:05 +0100
committerLars Op den Kamp <lars@opdenkamp.eu>2011-01-06 10:51:37 +0100
commit9f2d4f7772b54d8a6e1d240358813a6e94ba4168 (patch)
treee531917220b29c24a80e3713527780c766757c61
parent52552822386e10cc774352cf085ce5d772e9e010 (diff)
pvr: if the last_error is set to 300 then this means the user has aborted the recording. So remove the error in XBMC so that the user can play the recording (allthough it may be incomplete)
-rw-r--r--xbmc/pvrclients/tvheadend/HTSPSession.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/xbmc/pvrclients/tvheadend/HTSPSession.cpp b/xbmc/pvrclients/tvheadend/HTSPSession.cpp
index 7ff4c1029f..083e0ec524 100644
--- a/xbmc/pvrclients/tvheadend/HTSPSession.cpp
+++ b/xbmc/pvrclients/tvheadend/HTSPSession.cpp
@@ -649,6 +649,11 @@ void cHTSPSession::ParseDVREntryUpdate(htsmsg_t* msg, SRecordings &recordings)
else
recording.error = str;
+ // if the user has aborted the recording then the recording.error will be set to 300 by tvheadend
+ // We will remove the error so that the user can play it allthough it via the recordings page
+ if (recording.error == "300")
+ recording.error = "";
+
XBMC->Log(LOG_DEBUG, "%s - id:%u, state:'%s', title:'%s', description: '%s'"
, __FUNCTION__, recording.id, state, recording.title.c_str()
, recording.description.c_str());