Skip to content

Commit

Permalink
Merge pull request #12 from sih4sing5hong5/匯入愛檢查是空的
Browse files Browse the repository at this point in the history
有可能有空的詞條煞有音檔
  • Loading branch information
sih4sing5hong5 committed Jun 5, 2017
2 parents 4e3a304 + b92b2da commit a65a4c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def handle(self, *args, **參數):
語料目錄,
splitext(basename(urlparse(mp3網址音檔).path))[0] + '.wav'
)
if isfile(wav音檔):
if 詞條 and isfile(wav音檔):
影音內容 = {'影音所在': wav音檔, '種類': 種類}
影音內容.update(公家內容)
影音 = 影音表.加資料(影音內容)
Expand Down

0 comments on commit a65a4c3

Please sign in to comment.