Skip to content

Commit

Permalink
Merge pull request #12 from enyone/pre-1.3
Browse files Browse the repository at this point in the history
Added stub for markwatched() and added error code in api exception messa...
  • Loading branch information
enyone committed Apr 28, 2015
2 parents dd76241 + bb3cf45 commit 9bf1d27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion elisaviihde.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def checklogged(self):

def checkrequest(self, statuscode):
if not statuscode == requests.codes.ok:
raise Exception("API request failed")
raise Exception("API request failed with error code: " + str(statuscode))

def close(self):
if self.verbose: print "Logging out and closing session..."
Expand Down Expand Up @@ -218,3 +218,6 @@ def getstreamuri(self, programid=0):
if "new Player" in line:
return re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line)[0]

def markwatched(self, programid=0):
# Mark recording as watched
pass

0 comments on commit 9bf1d27

Please sign in to comment.