Find tracks missing an album

I’m importing a large music library where there were a lot of tracks and complete albums. Now I’d like to remove tracks that don’t have an album if there’s a track in an album that match artist and title.

How can I structure the beets dup command to achieve this? I think I need to match tracks that don’t have an album tag but I’m not sure.

That actually sounds pretty tricky to accomplish! Maybe you could try doing it in two steps—first find all the duplicates, then look for ones that don’t have an album tag.

Sorry I don’t have more actionable suggestions!