mirror of
https://github.com/beetbox/beets.git
synced 2026-02-11 18:02:10 +01:00
acousticbrainz: Don't write tags
Since we aren't updating any on-disk tags anyway.
This commit is contained in:
parent
5d89b7da67
commit
3a3dc8b3ae
1 changed files with 5 additions and 4 deletions
|
|
@ -36,13 +36,13 @@ class AcousticPlugin(plugins.BeetsPlugin):
|
|||
|
||||
def func(lib, opts, args):
|
||||
items = lib.items(ui.decargs(args))
|
||||
fetch_info(self._log, items, ui.should_write())
|
||||
fetch_info(self._log, items)
|
||||
|
||||
cmd.func = func
|
||||
return [cmd]
|
||||
|
||||
|
||||
def fetch_info(log, items, write):
|
||||
def fetch_info(log, items):
|
||||
"""Currently outputs MBID and corresponding request status code
|
||||
"""
|
||||
for item in items:
|
||||
|
|
@ -64,6 +64,7 @@ def fetch_info(log, items, write):
|
|||
except ValueError:
|
||||
log.debug('Invalid Response: {}', rs.text)
|
||||
|
||||
# Get each field and assign it on the item.
|
||||
item.danceable = get_value(
|
||||
log,
|
||||
data,
|
||||
|
|
@ -80,8 +81,8 @@ def fetch_info(log, items, write):
|
|||
["highlevel", "mood_party", "all", "party"],
|
||||
)
|
||||
|
||||
if write:
|
||||
item.try_write()
|
||||
# Store the data. We only update flexible attributes, so we
|
||||
# don't call `item.try_write()` here.
|
||||
item.store()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue