Commit a650993b authored by fred's avatar fred
Browse files

skip soundfiles that do not exist

parent 1d321265
......@@ -44,6 +44,8 @@ class Command(BaseCommand):
if episode and soundfile.episode.slug != episode:
if soundfile.file is None or not os.path.exists(soundfile.file.path):
for format in ('ogg', 'mp3'):
file_path = soundfile.get_format_path(format)
if not os.path.exists(file_path) or force:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment