fix: Add vertical slug prefix to song slugs for uniqueness
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s
This commit is contained in:
parent
d11878fdcd
commit
5ee6735a99
1 changed files with 3 additions and 1 deletions
|
|
@ -178,9 +178,11 @@ class ImporterBase(ABC):
|
|||
if existing:
|
||||
song_id = existing.id
|
||||
else:
|
||||
# Include vertical slug in song slug for cross-band uniqueness
|
||||
song_slug = f"{vertical.slug}-{generate_slug(title)}"
|
||||
song = Song(
|
||||
title=title,
|
||||
slug=generate_slug(title),
|
||||
slug=song_slug,
|
||||
original_artist=original_artist,
|
||||
vertical_id=vertical.id
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue