Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions beets/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import logging
import pickle
import types
from collections import defaultdict

from beets import autotag
Expand Down Expand Up @@ -170,9 +171,9 @@ def _infer_album_fields(task):
elif task.choice_flag == action.APPLY:
# Applying autotagged metadata. Just get AA from the first
# item.
if not task.items[0].albumartist:
if not isinstance(task.items[0],types.NoneType) and not task.items[0].albumartist:
changes['albumartist'] = task.items[0].artist
if not task.items[0].mb_albumartistid:
if not isinstance(task.items[0],types.NoneType) and not task.items[0].mb_albumartistid:
changes['mb_albumartistid'] = task.items[0].mb_artistid

else:
Expand Down