Update jav321.py

解决网站视频链接有问题,导致下载失败
This commit is contained in:
Feng4
2021-01-09 17:28:05 +08:00
committed by GitHub
parent d54f293ee8
commit 5a6204b699

View File

@@ -87,7 +87,8 @@ def get_trailer(html) -> str:
videourl_pather = re.compile(r'<source src=\"(.*?)\"')
videourl = videourl_pather.findall(html)
if videourl:
return videourl[0]
url = videourl[0].replace('cc3001.r18.com', 'cc3001.dmm.co.jp')
return url
else:
return ''