|
@@ -702,11 +702,10 @@ class XiGuaAuthor:
|
|
|
url = "https://www.ixigua.com/api/videov2/author/new_video_list?"
|
|
|
while True:
|
|
|
if user_dict['link'][0] == "V":
|
|
|
- to_user_id = str(user_dict["link"][2:].replace("https://www.ixigua.com/home/", ""))
|
|
|
+ link = user_dict["link"][2:]
|
|
|
else:
|
|
|
- to_user_id = str(
|
|
|
- user_dict["link"].replace("https://www.ixigua.com/home/", "")
|
|
|
- )
|
|
|
+ link = user_dict["link"]
|
|
|
+ to_user_id = str(link.replace("https://www.ixigua.com/home/", ""))
|
|
|
params = {
|
|
|
"to_user_id": to_user_id,
|
|
|
"offset": str(offset),
|
|
@@ -719,7 +718,7 @@ class XiGuaAuthor:
|
|
|
"_signature": signature,
|
|
|
}
|
|
|
headers = {
|
|
|
- "referer": f'https://www.ixigua.com/home/{user_dict["link"].replace("https://www.ixigua.com/home/", "")}/video/?preActiveKey=hotsoon&list_entrance=userdetail',
|
|
|
+ "referer": f'https://www.ixigua.com/home/{link.replace("https://www.ixigua.com/home/", "")}/video/?preActiveKey=hotsoon&list_entrance=userdetail',
|
|
|
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.41",
|
|
|
}
|
|
|
response = requests.get(
|
|
@@ -754,6 +753,7 @@ class XiGuaAuthor:
|
|
|
try:
|
|
|
AliyunLogger.logging(
|
|
|
code="1001",
|
|
|
+ account=user_dict['uid'],
|
|
|
platform=self.platform,
|
|
|
mode=self.mode,
|
|
|
env=self.env,
|
|
@@ -780,6 +780,7 @@ class XiGuaAuthor:
|
|
|
if not item_id:
|
|
|
AliyunLogger.logging(
|
|
|
code="2005",
|
|
|
+ account=user_dict['uid'],
|
|
|
platform=self.platform,
|
|
|
mode=self.mode,
|
|
|
env=self.env,
|
|
@@ -809,6 +810,7 @@ class XiGuaAuthor:
|
|
|
"""
|
|
|
AliyunLogger.logging(
|
|
|
code="2004",
|
|
|
+ account=user_dict['uid'],
|
|
|
platform=self.platform,
|
|
|
mode=self.mode,
|
|
|
env=self.env,
|
|
@@ -836,6 +838,7 @@ class XiGuaAuthor:
|
|
|
self.download_count += 1
|
|
|
AliyunLogger.logging(
|
|
|
code="1002",
|
|
|
+ account=user_dict['uid'],
|
|
|
platform=self.platform,
|
|
|
mode=self.mode,
|
|
|
env=self.env,
|
|
@@ -847,6 +850,7 @@ class XiGuaAuthor:
|
|
|
else:
|
|
|
AliyunLogger.logging(
|
|
|
code="2008",
|
|
|
+ account=user_dict['uid'],
|
|
|
platform=self.platform,
|
|
|
mode=self.mode,
|
|
|
env=self.env,
|
|
@@ -859,6 +863,7 @@ class XiGuaAuthor:
|
|
|
self.download_count += 1
|
|
|
AliyunLogger.logging(
|
|
|
code="1002",
|
|
|
+ account=user_dict['uid'],
|
|
|
platform=self.platform,
|
|
|
mode=self.mode,
|
|
|
env=self.env,
|
|
@@ -870,6 +875,7 @@ class XiGuaAuthor:
|
|
|
else:
|
|
|
AliyunLogger.logging(
|
|
|
code="2008",
|
|
|
+ account=user_dict['uid'],
|
|
|
platform=self.platform,
|
|
|
mode=self.mode,
|
|
|
env=self.env,
|