浏览代码

西瓜视频——cookie 逆向, 解决 cookie 过期问题

罗俊辉 1 年之前
父节点
当前提交
0e8edab7e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xigua/xigua_author/xigua_author.py

+ 1 - 1
xigua/xigua_author/xigua_author.py

@@ -728,7 +728,7 @@ class XiGuaAuthor:
         :param account: 输入的账号信息
         :param account: 输入的账号信息
         {'play_cnt': {'min': 100000, 'max': 0}, 'period': {'min': 5, 'max': 5}}
         {'play_cnt': {'min': 100000, 'max': 0}, 'period': {'min': 5, 'max': 5}}
         """
         """
-        temp = account['link'].split("_")
+        temp = account['link'].split("?")[0].split("_")
         if len(temp) == 1:
         if len(temp) == 1:
             return self.rule_dict
             return self.rule_dict
         else:
         else: