mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
Update vendored beets to 1.6.0
Updates colorama to 0.4.6 Adds confuse version 1.7.0 Updates jellyfish to 0.9.0 Adds mediafile 0.10.1 Updates munkres to 1.1.4 Updates musicbrainzngs to 0.7.1 Updates mutagen to 1.46.0 Updates pyyaml to 6.0 Updates unidecode to 1.3.6
This commit is contained in:
parent
5073ec0c6f
commit
56c6773c6b
385 changed files with 25143 additions and 18080 deletions
|
@ -1,4 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# This file is part of beets.
|
||||
# Copyright 2016, Blemjhoo Tezoulbr <baobab@heresiarch.info>.
|
||||
#
|
||||
|
@ -13,7 +12,6 @@
|
|||
# The above copyright notice and this permission notice shall be
|
||||
# included in all copies or substantial portions of the Software.
|
||||
|
||||
from __future__ import division, absolute_import, print_function
|
||||
|
||||
"""Warns you about things you hate (or even blocks import)."""
|
||||
|
||||
|
@ -33,14 +31,14 @@ def summary(task):
|
|||
object.
|
||||
"""
|
||||
if task.is_album:
|
||||
return u'{0} - {1}'.format(task.cur_artist, task.cur_album)
|
||||
return f'{task.cur_artist} - {task.cur_album}'
|
||||
else:
|
||||
return u'{0} - {1}'.format(task.item.artist, task.item.title)
|
||||
return f'{task.item.artist} - {task.item.title}'
|
||||
|
||||
|
||||
class IHatePlugin(BeetsPlugin):
|
||||
def __init__(self):
|
||||
super(IHatePlugin, self).__init__()
|
||||
super().__init__()
|
||||
self.register_listener('import_task_choice',
|
||||
self.import_task_choice_event)
|
||||
self.config.add({
|
||||
|
@ -69,14 +67,14 @@ class IHatePlugin(BeetsPlugin):
|
|||
|
||||
if task.choice_flag == action.APPLY:
|
||||
if skip_queries or warn_queries:
|
||||
self._log.debug(u'processing your hate')
|
||||
self._log.debug('processing your hate')
|
||||
if self.do_i_hate_this(task, skip_queries):
|
||||
task.choice_flag = action.SKIP
|
||||
self._log.info(u'skipped: {0}', summary(task))
|
||||
self._log.info('skipped: {0}', summary(task))
|
||||
return
|
||||
if self.do_i_hate_this(task, warn_queries):
|
||||
self._log.info(u'you may hate this: {0}', summary(task))
|
||||
self._log.info('you may hate this: {0}', summary(task))
|
||||
else:
|
||||
self._log.debug(u'nothing to do')
|
||||
self._log.debug('nothing to do')
|
||||
else:
|
||||
self._log.debug(u'user made a decision, nothing to do')
|
||||
self._log.debug('user made a decision, nothing to do')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue