Skip to content

Commit

Permalink
shortcut check if there were DVRs found in discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpmanjay committed Sep 21, 2016
1 parent b525235 commit 5ad1996
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Contents/Services/Shared Code/PyHDHR.pys
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,8 @@ class PyHDHR:

def hasSDDVR(self,force=False):
if not force:
if len(self.DVRs) > 0:
return True
if time.time() - self.SDDVRDiscover < 60:
return self.SDDVREnabled

Expand Down

0 comments on commit 5ad1996

Please sign in to comment.