This commit is contained in:
jxxghp
2024-06-02 21:09:15 +08:00
parent 45945bd025
commit c05223846f
4 changed files with 26 additions and 8 deletions

View File

@ -674,7 +674,9 @@ class TorrentSpider:
try:
args = filter_item.get("args")
if method_name == "re_search" and isinstance(args, list):
text = re.search(r"%s" % args[0], text).group(args[-1])
rematch = re.search(r"%s" % args[0], text)
if rematch:
text = rematch.group(args[-1])
elif method_name == "split" and isinstance(args, list):
text = text.split(r"%s" % args[0])[args[-1]]
elif method_name == "replace" and isinstance(args, list):