mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
1. 重新初始化
2. 调整为手动更新 3. 添加指定服务端口的环境变量 4. 修复获取个人数据返回值错误的bug
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user