Fix javdb Trailer url null

This commit is contained in:
Yoshiko2
2021-12-19 17:45:26 +08:00
committed by GitHub
parent 138808fb67
commit 21bd3c60b7

View File

@@ -139,7 +139,7 @@ def getCover_small(html, index=0):
def getTrailer(htmlcode): # 获取预告片
video_pather = re.compile(r'<video id\=\".*?>\s*?<source src=\"(.*?)\"')
video = video_pather.findall(htmlcode)
if video:
if video[0] != "":
if not 'https:' in video[0]:
video_url = 'https:' + video[0]
else: