From 671fd3f90521ca4e849b53a3b8439eff82a0631a Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Sat, 7 Apr 2012 14:42:02 -0500
Subject: LinHES-system: myth_status.py: limit upcoming recordings to 12

---
 abs/core/LinHES-system/PKGBUILD       | 4 ++--
 abs/core/LinHES-system/myth_status.py | 8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/abs/core/LinHES-system/PKGBUILD b/abs/core/LinHES-system/PKGBUILD
index 1734865..d53adee 100644
--- a/abs/core/LinHES-system/PKGBUILD
+++ b/abs/core/LinHES-system/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=LinHES-system
 pkgver=2
-pkgrel=37
+pkgrel=38
 arch=('i686')
 MVDIR=$startdir/pkg/usr/LH
 BINDIR=$startdir/pkg/usr/bin
@@ -62,7 +62,7 @@ md5sums=('d6a564f3286590875874573107940908'
          'abe887472a170bd1a8e6da6a7b7e93e4'
          '752488eb8bfb672ce0e4c924f7faf3d1'
          'ba351b92e69bcaf26a9bf80417b09c3c'
-         '60219aab8a177c783d7a658d56683db4'
+         '1d534843cc4e55fe4ce21c3e95e3f766'
          '962a3e9eaba2d1466251b7ab0956705d'
          'd03aedeeeda0f5e9c1eb437411c88477'
          '94ce8f1d5085c0db7b267db8c2e9a3ff'
diff --git a/abs/core/LinHES-system/myth_status.py b/abs/core/LinHES-system/myth_status.py
index 4e44fd5..f8222cb 100644
--- a/abs/core/LinHES-system/myth_status.py
+++ b/abs/core/LinHES-system/myth_status.py
@@ -12,6 +12,7 @@ cursor = db.cursor()
 now = datetime.datetime.now()
 farout=99999999
 next_start_diff=datetime.timedelta(farout)
+num_upcoming=12
 
 def formatTD(td):
     #print td
@@ -68,10 +69,15 @@ for i in a:
 
 
 print ""
-print "Upcoming Recordings:"
+print "Upcoming Recordings (Next %s scheduled):" %(num_upcoming)
 print "--------------------"
 a=be.getUpcomingRecordings()
+r=0
 for i in a:
+    r += 1
+    if r > num_upcoming:
+        break
+
     title_chan="%s (%s)" %(i.title, i.channame)
     print "    %s - %s - %-50s " %(i.starttime,i.hostname, title_chan)
     #start_time=time.strptime(str(i.starttime), "%Y-%m-%d %H:%M:%S")
-- 
cgit v0.12

