summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-04-07 19:42:02 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-04-07 19:42:02 (GMT)
commit671fd3f90521ca4e849b53a3b8439eff82a0631a (patch)
treef825843b86c4eafe6b5de957a3501b3e4b9b7129 /abs/core
parentbe81f661c34084eb2528c61c5775b5e8ead761ad (diff)
downloadlinhes_pkgbuild-671fd3f90521ca4e849b53a3b8439eff82a0631a.zip
linhes_pkgbuild-671fd3f90521ca4e849b53a3b8439eff82a0631a.tar.gz
linhes_pkgbuild-671fd3f90521ca4e849b53a3b8439eff82a0631a.tar.bz2
LinHES-system: myth_status.py: limit upcoming recordings to 12
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/LinHES-system/PKGBUILD4
-rw-r--r--abs/core/LinHES-system/myth_status.py8
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")