Richtig loggen.

This commit is contained in:
Stefan Bethke 2014-07-12 14:39:48 +00:00
parent 72f3cdabce
commit 3e68c5aefb

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/python #!/usr/local/bin/python
# $Schlepperbande: src/tivomirror/tivomirror,v 1.64 2014/07/07 21:50:28 stb Exp $ # $Schlepperbande: src/tivomirror/tivomirror,v 1.65 2014/07/12 13:59:46 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.
@ -62,7 +62,8 @@ includes['The Colbert Report'] = 1
includes['The Daily Show With Jon Stewart'] = 1 includes['The Daily Show With Jon Stewart'] = 1
includes['The Late Late Show With Craig Ferguson'] = 1 includes['The Late Late Show With Craig Ferguson'] = 1
includes['The Tonight Show Starring Jimmy Fallon'] = 1 includes['The Tonight Show Starring Jimmy Fallon'] = 1
includes['"The Wil Wheaton Project'] = 1 includes['The Wil Wheaton Project'] = 1
includes['Through the Wormhole With Morgan Freeman'] = 1
logger = logging.getLogger('tivomirror') logger = logging.getLogger('tivomirror')
@ -454,7 +455,7 @@ def mirror(toc, downloaddb, one=False):
sys.exit(1) sys.exit(1)
items = toc.getItems() items = toc.getItems()
print "*** %d shows listed" % (len(items)) logger.info("*** %d shows listed" % (len(items)))
for item in items: for item in items:
reason = wantitem(item, downloaddb) reason = wantitem(item, downloaddb)
if reason != "": if reason != "":