Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
圖的檔名佮以早仝款
Browse files Browse the repository at this point in the history
  • Loading branch information
sih4sing5hong5 committed Apr 25, 2018
1 parent ff90b6f commit 2f9833f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions line回應/models.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from os.path import join
from os.path import join, splitext

from django.conf import settings
from django.core.files.base import ContentFile
from django.db import models

from siunn1ua2ah4.settings import DOMAIN


Expand Down Expand Up @@ -52,7 +51,7 @@ def 加影片(cls, 腔口設定, 全部圖, 聲陣列, 文字陣列):
圖陣列.append(.檔案路徑())
結果影片 = cls.objects.create()
結果影片.檔案.save('result.mp4', ContentFile(b''))
結果影片.縮圖.save(結果影片.檔案.name + '.jpg', ContentFile(b''))
結果影片.縮圖.save(splitext(結果影片.檔案.name)[0] + '.jpg', ContentFile(b''))
做影片.使用者提供的資料(
腔口設定,
圖陣列, 聲陣列, 文字陣列,
Expand Down

0 comments on commit 2f9833f

Please sign in to comment.