Skip to content

Commit

Permalink
fix pipixia video
Browse files Browse the repository at this point in the history
  • Loading branch information
moyada committed Nov 14, 2020
1 parent 1cf5c53 commit 485d8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/pipixia.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def fetch(cls, url: str, mode=0) -> Result:
data = json.loads(str(info_res.text))

try:
url = data['data']['item']['origin_video_download']['url_list'][0]['url']
url = data['data']['item']['comments'][0]['item']['video']['video_high']['url_list'][0]['url']
except (KeyError, IndexError):
return ErrorResult.VIDEO_ADDRESS_NOT_FOUNT

Expand Down

0 comments on commit 485d8a4

Please sign in to comment.