tweaks
This commit is contained in:
parent
debe1837a7
commit
e84ea31147
4 changed files with 15 additions and 30 deletions
|
|
@ -23,7 +23,7 @@ class Command(BaseCommand):
|
|||
clip = {}
|
||||
durations = []
|
||||
for e in item.models.Item.objects.filter(data__title=i.data['title']):
|
||||
source = i.files.all()[0].data.path
|
||||
source = e.files.all()[0].data.path
|
||||
ext = os.path.splitext(source)[1]
|
||||
type_ = e.data['type'][0].lower()
|
||||
target = os.path.join(prefix, type_, i.data['title'] + ext)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue