From 4465fd6e70eb2ca90ca0049c84626e49d3da596d Mon Sep 17 00:00:00 2001 From: Konrad Rieck Date: Sun, 13 Dec 2015 20:12:22 +0100 Subject: [PATCH] fix incorrect naming for multi-part movies --- .gitignore | 1 + perplex.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3647e1a..56a33bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea plex *.gz +*.db diff --git a/perplex.py b/perplex.py index dac3391..2731040 100755 --- a/perplex.py +++ b/perplex.py @@ -56,7 +56,7 @@ def build_map(movies, mapping=[]): _, ext = os.path.splitext(old_name) template = "%s (%s)/%s (%s)" % (title, year, title, year) - template += " - %.2d" % i if len(files) > 1 else "" + template += " - part%d" % (i + 1) if len(files) > 1 else "" template += ext new_name = os.path.join(*template.split("/"))