mirror of
https://github.com/beetbox/beets.git
synced 2026-01-26 01:55:35 +01:00
echonest_tempo: skip when missing artist or title
This commit is contained in:
parent
2b4a70227d
commit
5be50fbb38
2 changed files with 7 additions and 0 deletions
|
|
@ -57,6 +57,11 @@ def fetch_item_tempo(lib, loglevel, item, write):
|
|||
|
||||
def get_tempo(artist, title):
|
||||
"""Get the tempo for a song."""
|
||||
# We must have sufficient metadata for the lookup. Otherwise the API
|
||||
# will just complain.
|
||||
if not artist or not title:
|
||||
return None
|
||||
|
||||
for i in range(RETRIES):
|
||||
try:
|
||||
# Unfortunately, all we can do is search by artist and title.
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ Other new stuff:
|
|||
* ReplayGain tags on MPEG-4/AAC files are now supported. Thanks to Dave Hayes.
|
||||
* :doc:`/plugins/bpd`: Browse by album artist and album artist sort name.
|
||||
Thanks to Steinþór Pálsson.
|
||||
* :doc:`/plugins/echonest_tempo`: Don't attempt a lookup when the artist or
|
||||
track title is missing.
|
||||
* Fix an error when migrating the ``.beetsstate`` file on Windows.
|
||||
* A nicer error message is now given when the configuration file contains tabs.
|
||||
(YAML doesn't like tabs.)
|
||||
|
|
|
|||
Loading…
Reference in a new issue