From c4f4e2b52461f0b62a748771c203456db1a796d5 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 12 Jan 2014 17:42:10 +0100 Subject: [PATCH] Split identifier by know tag if possible --- couchpotato/core/plugins/scanner/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/scanner/main.py b/couchpotato/core/plugins/scanner/main.py index 5aadb615..1cb66ce3 100644 --- a/couchpotato/core/plugins/scanner/main.py +++ b/couchpotato/core/plugins/scanner/main.py @@ -761,7 +761,8 @@ class Scanner(Plugin): # Year if year and identifier[:4] != year: - identifier = '%s %s' % (identifier.split(year)[0].strip(), year) + split_by = ':::' if ':::' in identifier else year + identifier = '%s %s' % (identifier.split(split_by)[0].strip(), year) else: identifier = identifier.split('::')[0]