Skip to content

Commit

Permalink
更新 3.1 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeanAmier committed Jul 10, 2023
1 parent f8011a4 commit ceff2e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from src.main_server import Server
from src.main_web_UI import WebUI

VERSION = "3.1 beta"
VERSION = "3.1"


def version():
Expand Down
6 changes: 3 additions & 3 deletions src/DataAcquirer.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def mark(self, value):
self._mark = s if (s := self.clean.filter(value)) else None

@retry(finish=False)
def get_id(self, value="sec_user_id", url="", set=False):
def get_id(self, value="sec_user_id", url="", return_=False):
"""获取账号ID或者作品ID"""
if self.id_:
self.log.info(f"{url} {value}: {self.id_}", False)
Expand All @@ -304,7 +304,7 @@ def get_id(self, value="sec_user_id", url="", set=False):
return False
params = urlparse(response.url)
url_list = params.path.rstrip("/").split("/")
if set:
if return_:
return url_list[-1] or url_list[-2]
else:
self.id_ = url_list[-1] or url_list[-2]
Expand Down Expand Up @@ -521,7 +521,7 @@ def run_alone(self, text: str, alone=True, user=False):
self.get_id(
value="aweme_id",
url=i,
set=True) for i in url]
return_=True) for i in url]
result = [i for i in result if i]
return result or False

Expand Down

0 comments on commit ceff2e9

Please sign in to comment.