Break out of disambiguation loop once disambig has been added
Instead of iterating over all the path parts and added disambiguation to each, it now only adds the disambiguation to the first match.
This commit is contained in:
@@ -250,6 +250,7 @@ class Program:
|
||||
templateParts[i] += ' (%s)' % self.metadata.catalogNumber
|
||||
elif self.metadata.barcode:
|
||||
templateParts[i] += ' (%s)' % self.metadata.barcode
|
||||
break
|
||||
template = os.path.join(*templateParts)
|
||||
logger.debug('Disambiguated template to %r' % template)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user