Listing: auch die Episoden sortieren

This commit is contained in:
Stefan Bethke 2014-07-05 15:23:02 +00:00
parent 5df1180450
commit 24be7bddfc

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/python #!/usr/local/bin/python
# $Schlepperbande: src/tivomirror/tivomirror,v 1.61 2014/07/05 15:07:25 stb Exp $ # $Schlepperbande: src/tivomirror/tivomirror,v 1.62 2014/07/05 15:19:39 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.
@ -429,7 +429,7 @@ def printtoc(toc, downloaddb):
shows[item.title] = [] shows[item.title] = []
shows[item.title].append(item) shows[item.title].append(item)
for title in sorted(shows): for title in sorted(shows):
for item in shows[title]: for item in sorted(shows[title], key=lambda i: i.name):
reason = wantitem(item, downloaddb) reason = wantitem(item, downloaddb)
if (reason != ""): if (reason != ""):
print "%-7.7s: %s" % (reason, item.name) print "%-7.7s: %s" % (reason, item.name)