mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 17:49:27 +02:00
Updated tasks.py to process replace flag
This commit is contained in:
parent
8103ea541f
commit
f3f07c1f8d
1 changed files with 2 additions and 2 deletions
|
@ -136,8 +136,8 @@ def _do_import(import_job, use_acoustid=False):
|
|||
|
||||
track_file = None
|
||||
if replace:
|
||||
logger.info("[Import Job %s] replacing existing audio file", import_job.pk)
|
||||
track_file = track.files.first()
|
||||
logger.info("[Import Job %s] deleting existing audio file", import_job.pk)
|
||||
track.files.all().delete()
|
||||
elif track.files.count() > 0:
|
||||
logger.info(
|
||||
"[Import Job %s] skipping, we already have a file for this track",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue