Fixed broken youtube-dl import

This commit is contained in:
Eliot Berriot 2018-04-22 12:10:32 +02:00
parent 3950d0a2c1
commit 93c57f08f9
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ def _do_import(import_job, replace=False, use_acoustid=True):
else:
# no downloading, we hotlink
pass
elif import_job.audio_file:
elif not import_job.audio_file and not import_job.source.startswith('file://'):
# not an implace import, and we have a source, so let's download it
track_file.download_file()
track_file.save()
import_job.status = 'finished'