Direkt von diesel aus runterladen
This commit is contained in:
parent
4a01c10fb6
commit
045d6f88b0
2 changed files with 9 additions and 7 deletions
|
@ -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 anydbm
|
||||||
import getopt
|
import getopt
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
|
@ -19,7 +20,7 @@ if len(args) != 0 or len(optlist) != 1:
|
||||||
usage()
|
usage()
|
||||||
sys.exit(64)
|
sys.exit(64)
|
||||||
|
|
||||||
downloaddb = anydbm.open("tivo/.downloads", "c")
|
downloaddb = anydbm.open(os.path.expanduser("~") + "/.tivo-downloads", "c")
|
||||||
|
|
||||||
for (o, a) in optlist:
|
for (o, a) in optlist:
|
||||||
if o == "-l":
|
if o == "-l":
|
||||||
|
|
|
@ -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
|
# Stefans Script, um die Sendungen vom Tivo runterzuladen und in MPEG4
|
||||||
# zu transkodieren.
|
# zu transkodieren.
|
||||||
|
@ -21,7 +21,8 @@ import xml.dom.minidom
|
||||||
|
|
||||||
host = "tivo.lassitu.de"
|
host = "tivo.lassitu.de"
|
||||||
mak = "7194378159"
|
mak = "7194378159"
|
||||||
targetdir = "/mnt/safe/tivo"
|
#targetdir = "/mnt/safe/tivo"
|
||||||
|
targetdir = "/p1/media/TV"
|
||||||
gig = 1024.0 * 1024 * 1024
|
gig = 1024.0 * 1024 * 1024
|
||||||
minfree = 10 * gig
|
minfree = 10 * gig
|
||||||
|
|
||||||
|
@ -229,7 +230,7 @@ if avail < minfree:
|
||||||
(targetdir, avail / gig, minfree / gig)
|
(targetdir, avail / gig, minfree / gig)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
downloaddb = anydbm.open(curdir + "/tivo/.downloads", "c")
|
downloaddb = anydbm.open(os.path.expanduser("~") + "/.tivo-downloads", "c")
|
||||||
print "*** Getting listing"
|
print "*** Getting listing"
|
||||||
toc = gettoc()
|
toc = gettoc()
|
||||||
savetoc(toc)
|
savetoc(toc)
|
||||||
|
|
Loading…
Reference in a new issue