From 1c8df96c425c0f01e6fc3716be3cc333cd694fdc Mon Sep 17 00:00:00 2001 From: ngfchl Date: Wed, 24 Aug 2022 18:44:59 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E9=87=8D=E6=96=B0=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=202.=20=E8=B0=83=E6=95=B4=E4=B8=BA=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=203.=20=E6=B7=BB=E5=8A=A0=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=AB=AF=E5=8F=A3=E7=9A=84=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=204.=20=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E6=95=B0=E6=8D=AE=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 4 ++-- readme.md | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index 5dca785..f6218bd 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -1,12 +1,12 @@ import logging import re import threading +import time from datetime import datetime import aip import cloudscraper import opencc -import time from django.db import transaction from django.db.models import QuerySet from lxml import etree @@ -648,7 +648,7 @@ class PtSpider: # print(torrent_info) if count + new_count <= 0: return CommonResponse.error(msg='抓取失败或无促销种子!') - return CommonResponse.success((new_count, count)) + return CommonResponse.success(data=(new_count, count)) except Exception as e: # raise return CommonResponse.error(msg='解析种子页面失败!' + str(e)) diff --git a/readme.md b/readme.md index 49aabc8..4f95bab 100644 --- a/readme.md +++ b/readme.md @@ -26,7 +26,7 @@ ### 功能实现 | 日期 | 功能 | 实现 | -| ---- | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| ------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- | | 0717 | 站点管理(内附爬虫规则、站点授权信息) | 已实现,支持站点见下表 | | 0718 | 抓取种子信息 | 已实现 | | 0719 | 下载器管理 | 已实现,目前仅支持Transmission,qBittorrent下载器添加任务不返回任务信息,需迂回,容后处理 | @@ -65,8 +65,9 @@ > 2022.08.03支持列表,根本本人现有站点数据整理 + | 序号 | 站点 | 签到 | 个人数据 | 推送种子 | -| ---- | ---------------- | ---- | -------- | -------- | +| ------ | ------------------ | ------ | ---------- | ---------- | | 1 | 阿童木 | 支持 | 支持 | 支持 | | 2 | 猪猪网 | 支持 | 支持 | 支持 | | 3 | 学校 | 支持 | 支持 | 支持 |