Fix site jav321 trailer capture

Update jav321.py
This commit is contained in:
Yoshiko2
2021-01-10 00:52:09 +08:00
committed by GitHub

View File

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