fixed song process

This commit is contained in:
Alexander Karpov 2024-12-03 01:35:14 +03:00
parent 66bd074149
commit c3de9b45b8

View File

@ -235,7 +235,7 @@ def load_track(
new_file_name = generated_name + ".mp3"
# Generate unique slug for the song
song.slug = generate_readable_slug(song.name, Song)
song.slug = generate_readable_slug(name if name else p_name, Song)
# Try to save the song, handling potential slug conflicts
for attempt in range(5):