Commit 6108086b authored by hujun's avatar hujun

使用已载录音文件名

parent 67fc0729
...@@ -126,6 +126,8 @@ class DownFile: ...@@ -126,6 +126,8 @@ class DownFile:
string_end = url.find("?") string_end = url.find("?")
file_url = url[0:string_end] file_url = url[0:string_end]
local_file = self.save_path + local_dir + '/' + re.findall(r".com\D.*", file_url)[0][5:] # 阿里云文件名 local_file = self.save_path + local_dir + '/' + re.findall(r".com\D.*", file_url)[0][5:] # 阿里云文件名
else:
local_file = self.save_path + local_dir + '/' + item['voice_file'] # 使用已载录音文件名
else: else:
if not item['mp3_url']: if not item['mp3_url']:
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment