Split identifier by know tag if possible

This commit is contained in:
Ruud
2014-01-12 17:42:10 +01:00
parent 95246b90f6
commit c4f4e2b524
+2 -1
View File
@@ -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]