Skip to content

Commit cbb2d92

Browse files
author
Taois
committed
fix: 修复播放失败问题
1 parent b29034d commit cbb2d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spider/py/新浪资源.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def playerContent(self, flag, id, vipFlags):
230230
parse = 1
231231
url = id
232232
htmlTxt = self.custom_webReadFile(urlStr=url, header=self.header)
233-
url = self.custom_RegexGetText(Text=htmlTxt, RegexText=r'(https{0,1}://.+?\.m3u8)', Index=1)
233+
url = self.custom_RegexGetText(Text=htmlTxt, RegexText=r"url\s*:\s*['\"](https?://[^'\"]+?\.m3u8)['\"]", Index=1)
234234
if url.find('.m3u8') < 1:
235235
url = id
236236
parse = 0

0 commit comments

Comments
 (0)