Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikdb
Commits
a650993b
Commit
a650993b
authored
Aug 26, 2013
by
fred
Browse files
skip soundfiles that do not exist
parent
1d321265
Changes
1
Show whitespace changes
Inline
Side-by-side
panikdb/emissions/management/commands/create-sound-files.py
View file @
a650993b
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment