mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 00:24:25 +01:00
Do not use backslashes to deal with long strings
This commit is contained in:
parent
1c16b2b308
commit
2fccf64efe
8 changed files with 31 additions and 31 deletions
|
|
@ -143,8 +143,7 @@ def resize_image(log, imagepath, maxwidth, quality):
|
|||
specified quality level.
|
||||
"""
|
||||
log.debug(
|
||||
"Resizing album art to {0} pixels wide and encoding at quality \
|
||||
level {1}",
|
||||
"Resizing album art to {0} pixels wide and encoding at quality level {1}",
|
||||
maxwidth,
|
||||
quality,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1609,8 +1609,8 @@ def _ensure_db_directory_exists(path):
|
|||
newpath = os.path.dirname(path)
|
||||
if not os.path.isdir(newpath):
|
||||
if input_yn(
|
||||
f"The database directory {util.displayable_path(newpath)} does not \
|
||||
exist. Create it (Y/n)?"
|
||||
f"The database directory {util.displayable_path(newpath)} does not"
|
||||
" exist. Create it (Y/n)?"
|
||||
):
|
||||
os.makedirs(newpath)
|
||||
|
||||
|
|
|
|||
|
|
@ -118,8 +118,10 @@ class AcousticBrainzSubmitPlugin(plugins.BeetsPlugin):
|
|||
dest="pretend_fetch",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="pretend to perform action, but show \
|
||||
only files which would be processed",
|
||||
help=(
|
||||
"pretend to perform action, but show only files which would be"
|
||||
" processed"
|
||||
),
|
||||
)
|
||||
cmd.func = self.command
|
||||
return [cmd]
|
||||
|
|
|
|||
|
|
@ -176,16 +176,17 @@ class ConvertPlugin(BeetsPlugin):
|
|||
"--threads",
|
||||
action="store",
|
||||
type="int",
|
||||
help="change the number of threads, \
|
||||
defaults to maximum available processors",
|
||||
help=(
|
||||
"change the number of threads, defaults to maximum available"
|
||||
" processors"
|
||||
),
|
||||
)
|
||||
cmd.parser.add_option(
|
||||
"-k",
|
||||
"--keep-new",
|
||||
action="store_true",
|
||||
dest="keep_new",
|
||||
help="keep only the converted \
|
||||
and move the old files",
|
||||
help="keep only the converted and move the old files",
|
||||
)
|
||||
cmd.parser.add_option(
|
||||
"-d", "--dest", action="store", help="set the destination directory"
|
||||
|
|
@ -209,16 +210,16 @@ class ConvertPlugin(BeetsPlugin):
|
|||
"--link",
|
||||
action="store_true",
|
||||
dest="link",
|
||||
help="symlink files that do not \
|
||||
need transcoding.",
|
||||
help="symlink files that do not need transcoding.",
|
||||
)
|
||||
cmd.parser.add_option(
|
||||
"-H",
|
||||
"--hardlink",
|
||||
action="store_true",
|
||||
dest="hardlink",
|
||||
help="hardlink files that do not \
|
||||
need transcoding. Overrides --link.",
|
||||
help=(
|
||||
"hardlink files that do not need transcoding. Overrides --link."
|
||||
),
|
||||
)
|
||||
cmd.parser.add_option(
|
||||
"-m",
|
||||
|
|
|
|||
|
|
@ -44,11 +44,12 @@ class Amarok(MetaSource):
|
|||
"amarok_lastplayed": types.DATE,
|
||||
}
|
||||
|
||||
query_xml = '<query version="1.0"> \
|
||||
<filters> \
|
||||
<and><include field="filename" value={} /></and> \
|
||||
</filters> \
|
||||
</query>'
|
||||
query_xml = """
|
||||
<query version="1.0">
|
||||
<filters>
|
||||
<and><include field="filename" value={} /></and>
|
||||
</filters>
|
||||
</query>"""
|
||||
|
||||
def __init__(self, config, log):
|
||||
super().__init__(config, log)
|
||||
|
|
|
|||
|
|
@ -179,8 +179,7 @@ class ParentWorkPlugin(BeetsPlugin):
|
|||
|
||||
if not item.mb_workid:
|
||||
self._log.info(
|
||||
"No work for {}, \
|
||||
add one at https://musicbrainz.org/recording/{}",
|
||||
"No work for {}, add one at https://musicbrainz.org/recording/{}",
|
||||
item,
|
||||
item.mb_trackid,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1542,8 +1542,10 @@ class ReplayGainPlugin(BeetsPlugin):
|
|||
"--threads",
|
||||
dest="threads",
|
||||
type=int,
|
||||
help="change the number of threads, \
|
||||
defaults to maximum available processors",
|
||||
help=(
|
||||
"change the number of threads, defaults to maximum available"
|
||||
" processors"
|
||||
),
|
||||
)
|
||||
cmd.parser.add_option(
|
||||
"-f",
|
||||
|
|
|
|||
|
|
@ -93,8 +93,7 @@ class ParentWorkIntegrationTest(PluginTestCase):
|
|||
item = Item(
|
||||
path="/file",
|
||||
mb_workid="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
|
||||
parentwork_workid_current="e27bda6e-531e-36d3-9cd7-\
|
||||
b8ebc18e8c53",
|
||||
parentwork_workid_current="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
|
||||
)
|
||||
item.add(self.lib)
|
||||
|
||||
|
|
@ -109,8 +108,7 @@ class ParentWorkIntegrationTest(PluginTestCase):
|
|||
path="/file",
|
||||
mb_workid="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
|
||||
mb_parentworkid="XXX",
|
||||
parentwork_workid_current="e27bda6e-531e-36d3-9cd7-\
|
||||
b8ebc18e8c53",
|
||||
parentwork_workid_current="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
|
||||
parentwork="whatever",
|
||||
)
|
||||
item.add(self.lib)
|
||||
|
|
@ -124,11 +122,9 @@ class ParentWorkIntegrationTest(PluginTestCase):
|
|||
self.config["parentwork"]["force"] = False
|
||||
item = Item(
|
||||
path="/file",
|
||||
mb_workid="e27bda6e-531e-36d3-9cd7-\
|
||||
b8ebc18e8c53",
|
||||
mb_workid="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
|
||||
mb_parentworkid="XXX",
|
||||
parentwork_workid_current="e27bda6e-531e-36d3-9cd7-\
|
||||
b8ebc18e8c53",
|
||||
parentwork_workid_current="e27bda6e-531e-36d3-9cd7-b8ebc18e8c53",
|
||||
parentwork="whatever",
|
||||
)
|
||||
item.add(self.lib)
|
||||
|
|
|
|||
Loading…
Reference in a new issue