Commit a650993b authored by fred's avatar fred

skip soundfiles that do not exist

parent 1d321265
......@@ -44,6 +44,8 @@ class Command(BaseCommand):
continue
if episode and soundfile.episode.slug != episode:
continue
if soundfile.file is None or not os.path.exists(soundfile.file.path):
continue
for format in ('ogg', 'mp3'):
file_path = soundfile.get_format_path(format)
if not os.path.exists(file_path) or force:
......
Markdown is supported
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