update regex to match vid for xinpianchang

This commit is contained in:
richard 2020-11-09 23:32:39 -05:00
parent cc4f211382
commit 1b1f1dd118

View File

@ -20,7 +20,7 @@ class Xinpianchang(VideoExtractor):
def prepare(self, **kwargs):
# find key
page_content = get_content(self.url)
match_rule = r"vid: \"(.+?)\","
match_rule = r"vid = \"(.+?)\";"
key = re.findall(match_rule, page_content)[0]
# get videos info