Unsere Shows wieder aktivieren, leichtes Aufraeumen
This commit is contained in:
parent
a78cb432f2
commit
cb3930bf2c
1 changed files with 10 additions and 38 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/python
|
#!/usr/local/bin/python
|
||||||
|
|
||||||
# $Schlepperbande: src/tivomirror/tivomirror,v 1.54 2014/05/31 11:42:06 stb Exp $
|
# $Schlepperbande: src/tivomirror/tivomirror,v 1.55 2014/06/24 16:41:00 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.
|
||||||
|
@ -37,15 +37,13 @@ minfree = 10 * gig
|
||||||
ignoreepisodetitle = False
|
ignoreepisodetitle = False
|
||||||
|
|
||||||
arset = dict()
|
arset = dict()
|
||||||
arset["Futurama"] = 169
|
|
||||||
|
|
||||||
includes = dict()
|
includes = dict()
|
||||||
includes['Brooklyn Nine-Nine'] = 1
|
includes['Brooklyn Nine-Nine'] = 1
|
||||||
includes['Castle'] = 1
|
includes['Castle'] = 1
|
||||||
includes['Cosmos: A Spacetime Odyssey'] = 1
|
|
||||||
includes['Family Guy'] = 1
|
includes['Family Guy'] = 1
|
||||||
includes['Hot in Cleveland'] = 1
|
includes['Hot in Cleveland'] = 1
|
||||||
#includes['Late Show With David Letterman'] = 1
|
includes['Late Show With David Letterman'] = 1
|
||||||
includes['Louie'] = 1
|
includes['Louie'] = 1
|
||||||
includes['Mad Men'] = 1
|
includes['Mad Men'] = 1
|
||||||
includes['Modern Family'] = 1
|
includes['Modern Family'] = 1
|
||||||
|
@ -55,9 +53,9 @@ includes['NFL Football'] = 1
|
||||||
includes['Person of Interest'] = 1
|
includes['Person of Interest'] = 1
|
||||||
includes['Sesame Street'] = 1
|
includes['Sesame Street'] = 1
|
||||||
includes['The Big Bang Theory'] = 1
|
includes['The Big Bang Theory'] = 1
|
||||||
#includes['The Colbert Report'] = 1
|
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
|
||||||
|
|
||||||
|
|
||||||
|
@ -162,31 +160,6 @@ class TivoItem:
|
||||||
return repr(self.title)
|
return repr(self.title)
|
||||||
|
|
||||||
|
|
||||||
def makeCookie(name, value):
|
|
||||||
return cookielib.Cookie(
|
|
||||||
version=0,
|
|
||||||
name=name,
|
|
||||||
value=value,
|
|
||||||
port=None,
|
|
||||||
port_specified=False,
|
|
||||||
domain="",
|
|
||||||
domain_specified=False,
|
|
||||||
domain_initial_dot=False,
|
|
||||||
path="/",
|
|
||||||
path_specified=True,
|
|
||||||
secure=False,
|
|
||||||
expires=None,
|
|
||||||
discard=False,
|
|
||||||
comment=None,
|
|
||||||
comment_url=None,
|
|
||||||
rest=None
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def get_cookie_by_name(cj, name):
|
|
||||||
return [cookie for cookie in cj if cookie.name == name][0]
|
|
||||||
|
|
||||||
|
|
||||||
def loadtoc(offset):
|
def loadtoc(offset):
|
||||||
global session
|
global session
|
||||||
|
|
||||||
|
@ -327,7 +300,7 @@ def download_decode(item, mak):
|
||||||
|
|
||||||
|
|
||||||
def savetoc(dom):
|
def savetoc(dom):
|
||||||
fd=open("toc.xml", "w")
|
fd=open("tivomirror-toc.xml", "w")
|
||||||
fd.write(dom.toprettyxml())
|
fd.write(dom.toprettyxml())
|
||||||
fd.close()
|
fd.close()
|
||||||
|
|
||||||
|
@ -357,8 +330,8 @@ def mirror(dom, downloaddb):
|
||||||
|
|
||||||
items = dom.getElementsByTagName("Item")
|
items = dom.getElementsByTagName("Item")
|
||||||
print "*** %d shows listed" % (items.length)
|
print "*** %d shows listed" % (items.length)
|
||||||
for i in items:
|
for node in items:
|
||||||
item = TivoItem(i)
|
item = TivoItem(node)
|
||||||
|
|
||||||
reason = wantitem(item, downloaddb)
|
reason = wantitem(item, downloaddb)
|
||||||
if (reason != ""):
|
if (reason != ""):
|
||||||
|
@ -376,7 +349,6 @@ def mirror(dom, downloaddb):
|
||||||
#break
|
#break
|
||||||
except TivoException, e:
|
except TivoException, e:
|
||||||
print "Error processing \"%s\": %s" % (item.name, e)
|
print "Error processing \"%s\": %s" % (item.name, e)
|
||||||
break
|
|
||||||
|
|
||||||
print "*** Completed %s" % datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
|
print "*** Completed %s" % datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
|
||||||
|
|
||||||
|
@ -384,8 +356,8 @@ def mirror(dom, downloaddb):
|
||||||
def printtoc(dom, downloaddb):
|
def printtoc(dom, downloaddb):
|
||||||
items = dom.getElementsByTagName("Item")
|
items = dom.getElementsByTagName("Item")
|
||||||
print "*** %d shows listed" % (items.length)
|
print "*** %d shows listed" % (items.length)
|
||||||
for i in items:
|
for node in items:
|
||||||
item = TivoItem(i)
|
item = TivoItem(node)
|
||||||
reason = wantitem(item, downloaddb)
|
reason = wantitem(item, downloaddb)
|
||||||
if (reason != ""):
|
if (reason != ""):
|
||||||
print "--- %-11.11s: %s" % (reason, item.name)
|
print "--- %-11.11s: %s" % (reason, item.name)
|
||||||
|
|
Loading…
Reference in a new issue