mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 17:08:12 +01:00
fromfilename: Don't crash if title is missing (#5907)
Prevent crash if title is removed from database by black magic.
This commit is contained in:
commit
c265bd7727
2 changed files with 3 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ def apply_matches(d, log):
|
|||
# Apply the title and track.
|
||||
for item in d:
|
||||
if bad_title(item.title):
|
||||
item.title = str(d[item][title_field])
|
||||
item.title = str(d[item].get(title_field, ""))
|
||||
log.info("Title replaced with: {.title}", item)
|
||||
|
||||
if "track" in d[item] and item.track == 0:
|
||||
|
|
|
|||
|
|
@ -83,6 +83,8 @@ Bug fixes:
|
|||
the config option ``deezer.search_query_ascii: yes``. :bug:`5860`
|
||||
- Fixed regression with :doc:`/plugins/listenbrainz` where the plugin could not
|
||||
be loaded :bug:`5975`
|
||||
- :doc:`/plugins/fromfilename`: Beets will no longer crash if a track's title
|
||||
field is missing.
|
||||
|
||||
For packagers:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue