This commit is contained in:
j 2023-10-09 14:10:34 +01:00
commit e84ea31147
4 changed files with 15 additions and 30 deletions

View file

@ -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)