Stop binding the unread role in the parsed credit check
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -396,14 +396,13 @@ class ArtistImporter:
|
|||||||
``Role.PRIMARY`` entry, or contains a name blank after
|
``Role.PRIMARY`` entry, or contains a name blank after
|
||||||
stripping.
|
stripping.
|
||||||
"""
|
"""
|
||||||
role: Role
|
|
||||||
if len(parsed) == 0 or not any(
|
if len(parsed) == 0 or not any(
|
||||||
role == Role.PRIMARY for _, role in parsed):
|
role == Role.PRIMARY for _, role in parsed):
|
||||||
raise BuildError(
|
raise BuildError(
|
||||||
f"song {song.id} \"{song.artist_credit}\": no"
|
f"song {song.id} \"{song.artist_credit}\": no"
|
||||||
" primary artist parsed")
|
" primary artist parsed")
|
||||||
name: str
|
name: str
|
||||||
for name, role in parsed:
|
for name, _ in parsed:
|
||||||
if name.strip() == "":
|
if name.strip() == "":
|
||||||
raise BuildError(
|
raise BuildError(
|
||||||
f"song {song.id} \"{song.artist_credit}\":"
|
f"song {song.id} \"{song.artist_credit}\":"
|
||||||
|
|||||||
Reference in New Issue
Block a user