Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
doudian-py
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiquan
doudian-py
Commits
0663eb1f
Commit
0663eb1f
authored
Jun 28, 2025
by
baiquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化上传视频判断成功状态码
parent
4a8a2cda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
service/upload_video.py
+1
-1
No files found.
service/upload_video.py
View file @
0663eb1f
...
@@ -506,7 +506,7 @@ class Upload:
...
@@ -506,7 +506,7 @@ class Upload:
play_auth_token
=
self
.
get_upload_token
(
video_id
)[
'play_auth_token'
]
play_auth_token
=
self
.
get_upload_token
(
video_id
)[
'play_auth_token'
]
response
=
requests
.
get
(
f
'https://vod.bytedanceapi.com/?{play_auth_token}'
,
headers
=
self
.
headers
,
cookies
=
self
.
cookies
,
timeout
=
5
,
proxies
=
self
.
proxies
)
response
=
requests
.
get
(
f
'https://vod.bytedanceapi.com/?{play_auth_token}'
,
headers
=
self
.
headers
,
cookies
=
self
.
cookies
,
timeout
=
5
,
proxies
=
self
.
proxies
)
logger
.
info
(
response
.
text
)
logger
.
info
(
response
.
text
)
if
response
.
json
()[
'Result'
][
'Data'
][
'Status'
]
!=
10
:
if
response
.
json
()[
'Result'
][
'Data'
][
'Status'
]
!=
10
and
response
.
json
()[
'Result'
][
'Data'
][
'Status'
]
!=
1000
:
raise
Exception
(
'上传视频失败'
)
raise
Exception
(
'上传视频失败'
)
return
response
.
json
()[
'Result'
][
'Data'
][
'PlayInfoList'
][
0
]
return
response
.
json
()[
'Result'
][
'Data'
][
'PlayInfoList'
][
0
]
...
...
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