Direkt von diesel aus runterladen

This commit is contained in:
Stefan Bethke 2010-12-18 10:03:31 +00:00
parent 4a01c10fb6
commit 045d6f88b0
2 changed files with 9 additions and 7 deletions

View file

@ -1,9 +1,10 @@
#!/usr/bin/python
#!/usr/local/bin/python
# $Schlepperbande: src/tivomirror/dbtool,v 1.1 2010/08/07 09:04:37 stb Exp $
# $Schlepperbande: src/tivomirror/dbtool,v 1.2 2010/12/18 09:11:46 stb Exp $
import anydbm
import getopt
import os
import sys
def usage():
@ -19,7 +20,7 @@ if len(args) != 0 or len(optlist) != 1:
usage()
sys.exit(64)
downloaddb = anydbm.open("tivo/.downloads", "c")
downloaddb = anydbm.open(os.path.expanduser("~") + "/.tivo-downloads", "c")
for (o, a) in optlist:
if o == "-l":

View file

@ -1,6 +1,6 @@
#!/usr/bin/python
#!/usr/local/bin/python
# $Schlepperbande: src/tivomirror/tivomirror,v 1.36 2010/08/13 12:25:34 stb Exp $
# $Schlepperbande: src/tivomirror/tivomirror,v 1.37 2010/12/18 09:12:01 stb Exp $
#
# Stefans Script, um die Sendungen vom Tivo runterzuladen und in MPEG4
# zu transkodieren.
@ -21,7 +21,8 @@ import xml.dom.minidom
host = "tivo.lassitu.de"
mak = "7194378159"
targetdir = "/mnt/safe/tivo"
#targetdir = "/mnt/safe/tivo"
targetdir = "/p1/media/TV"
gig = 1024.0 * 1024 * 1024
minfree = 10 * gig
@ -229,7 +230,7 @@ if avail < minfree:
(targetdir, avail / gig, minfree / gig)
sys.exit(1)
downloaddb = anydbm.open(curdir + "/tivo/.downloads", "c")
downloaddb = anydbm.open(os.path.expanduser("~") + "/.tivo-downloads", "c")
print "*** Getting listing"
toc = gettoc()
savetoc(toc)