mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -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
|
@ -20,6 +20,7 @@ from __future__ import division, absolute_import, print_function
|
|||
|
||||
import re
|
||||
from beets import config
|
||||
from beets.util import bytestring_path
|
||||
from beets.plugins import BeetsPlugin
|
||||
from beets.importer import SingletonImportTask
|
||||
|
||||
|
@ -35,14 +36,15 @@ class FileFilterPlugin(BeetsPlugin):
|
|||
|
||||
self.path_album_regex = \
|
||||
self.path_singleton_regex = \
|
||||
re.compile(self.config['path'].get())
|
||||
re.compile(bytestring_path(self.config['path'].get()))
|
||||
|
||||
if 'album_path' in self.config:
|
||||
self.path_album_regex = re.compile(self.config['album_path'].get())
|
||||
self.path_album_regex = re.compile(
|
||||
bytestring_path(self.config['album_path'].get()))
|
||||
|
||||
if 'singleton_path' in self.config:
|
||||
self.path_singleton_regex = re.compile(
|
||||
self.config['singleton_path'].get())
|
||||
bytestring_path(self.config['singleton_path'].get()))
|
||||
|
||||
def import_task_created_event(self, session, task):
|
||||
if task.items and len(task.items) > 0:
|
||||
|
@ -69,6 +71,7 @@ class FileFilterPlugin(BeetsPlugin):
|
|||
of the file given in full_path.
|
||||
"""
|
||||
import_config = dict(config['import'])
|
||||
full_path = bytestring_path(full_path)
|
||||
if 'singletons' not in import_config or not import_config[
|
||||
'singletons']:
|
||||
# Album
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue