mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2025-02-22 22:10:33 +03:00
fixed song process
This commit is contained in:
parent
66bd074149
commit
c3de9b45b8
|
@ -235,7 +235,7 @@ def load_track(
|
||||||
new_file_name = generated_name + ".mp3"
|
new_file_name = generated_name + ".mp3"
|
||||||
|
|
||||||
# Generate unique slug for the song
|
# 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
|
# Try to save the song, handling potential slug conflicts
|
||||||
for attempt in range(5):
|
for attempt in range(5):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user