X-Git-Url: https://git.distorted.org.uk/~mdw/epls/blobdiff_plain/3d51f9529742dae7288aaeaa8d836770cc4eed0a..48d26ec885e01d55ee92487bd3f07d478ebd9a9f:/mkm3u diff --git a/mkm3u b/mkm3u index bc963d5..5867236 100755 --- a/mkm3u +++ b/mkm3u @@ -437,7 +437,10 @@ class Playlist (object): f.write("\n") for ep in season: label = ep.label() - if me.nseries > 1: label = ep.season.series.title + " " + label + if me.nseries > 1 and ep.season.series.title is not None: + if ep.season.i is None: sep = "—" + else: sep = " " + label = ep.season.series.title + sep + label if not ep.chapters: f.write("#EXTINF:%d,,%s\n%s\n" % (ep.duration, label, ep.url)) else: