Ein paar mehr Sendungen sind 4:3, Namen mit ungueltigen Zeichen (:, /) aendern
This commit is contained in:
parent
0a0ae2d6b3
commit
098490dee6
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
# $Schlepperbande: src/tivomirror/tivomirror,v 1.8 2010/01/05 23:14:32 stb Exp $
|
# $Schlepperbande: src/tivomirror/tivomirror,v 1.9 2010/01/07 00:06:23 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.
|
||||||
|
@ -16,6 +16,7 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
import urllib2
|
import urllib2
|
||||||
import xml.dom.minidom
|
import xml.dom.minidom
|
||||||
|
import re
|
||||||
|
|
||||||
host = "tivo.lassitu.de"
|
host = "tivo.lassitu.de"
|
||||||
mak = "7194378159"
|
mak = "7194378159"
|
||||||
|
@ -26,6 +27,8 @@ arset["Family Guy"] = 43
|
||||||
arset["Late Show With David Letterman"] = 43
|
arset["Late Show With David Letterman"] = 43
|
||||||
arset["The Colbert Report"] = 43
|
arset["The Colbert Report"] = 43
|
||||||
arset["The Daily Show With Jon Stewart"] = 43
|
arset["The Daily Show With Jon Stewart"] = 43
|
||||||
|
arset["John Oliver's New York Stand-Up Show"] = 43
|
||||||
|
arset["John Oliver: Terrifying Times"] = 43
|
||||||
|
|
||||||
class flushfile(object):
|
class flushfile(object):
|
||||||
def __init__(self, f):
|
def __init__(self, f):
|
||||||
|
@ -161,6 +164,7 @@ for i in items:
|
||||||
if episode == "":
|
if episode == "":
|
||||||
episode = date
|
episode = date
|
||||||
name = "%s - %s" % (title, episode)
|
name = "%s - %s" % (title, episode)
|
||||||
|
name = re.sub("[:/]", "-", name)
|
||||||
dir = "%s/tivo/%s" % (curdir, title)
|
dir = "%s/tivo/%s" % (curdir, title)
|
||||||
file = "%s/%s" % (dir, name)
|
file = "%s/%s" % (dir, name)
|
||||||
name = name.encode("utf-8");
|
name = name.encode("utf-8");
|
||||||
|
|
Loading…
Reference in a new issue