Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
download
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
download
Commits
fa8e3f19
Commit
fa8e3f19
authored
Aug 06, 2020
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6108086b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
download.py
download.py
+1
-1
No files found.
download.py
View file @
fa8e3f19
...
@@ -127,7 +127,7 @@ class DownFile:
...
@@ -127,7 +127,7 @@ class DownFile:
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
:
else
:
local_file
=
self
.
save_path
+
local_dir
+
'/'
+
item
[
'voice_file'
]
# 使用已载录音文件名
local_file
=
self
.
save_path
+
'/'
+
item
[
'voice_file'
]
# 使用已载录音文件名
else
:
else
:
if
not
item
[
'mp3_url'
]:
if
not
item
[
'mp3_url'
]:
continue
continue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment