mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Update beets to 1.4.7
Also updates: - colorama-0.4.1 - jellyfish-0.6.1 - munkres-1.0.12 - musicbrainzngs-0.6 - mutagen-1.41.1 - pyyaml-3.13 - six-1.12.0 - unidecode-1.0.23
This commit is contained in:
parent
05b0fb498f
commit
e854005ae1
193 changed files with 15896 additions and 6384 deletions
|
@ -54,14 +54,14 @@ class ThePlugin(BeetsPlugin):
|
|||
self._log.error(u'invalid pattern: {0}', p)
|
||||
else:
|
||||
if not (p.startswith('^') or p.endswith('$')):
|
||||
self._log.warn(u'warning: \"{0}\" will not '
|
||||
u'match string start/end', p)
|
||||
self._log.warning(u'warning: \"{0}\" will not '
|
||||
u'match string start/end', p)
|
||||
if self.config['a']:
|
||||
self.patterns = [PATTERN_A] + self.patterns
|
||||
if self.config['the']:
|
||||
self.patterns = [PATTERN_THE] + self.patterns
|
||||
if not self.patterns:
|
||||
self._log.warn(u'no patterns defined!')
|
||||
self._log.warning(u'no patterns defined!')
|
||||
|
||||
def unthe(self, text, pattern):
|
||||
"""Moves pattern in the path format string or strips it
|
||||
|
@ -81,7 +81,7 @@ class ThePlugin(BeetsPlugin):
|
|||
if self.config['strip']:
|
||||
return r
|
||||
else:
|
||||
fmt = self.config['format'].get(unicode)
|
||||
fmt = self.config['format'].as_str()
|
||||
return fmt.format(r, t.strip()).strip()
|
||||
else:
|
||||
return u''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue