mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
修复获取做种体积失败的bug
This commit is contained in:
@@ -129,7 +129,7 @@ class TaskJobAdmin(admin.ModelAdmin): # instead of ModelAdmin
|
||||
except Exception as e:
|
||||
obj.task_exec = False
|
||||
obj.save()
|
||||
raise
|
||||
# raise
|
||||
msg = obj.job_id + '任务添加失败!原因:' + str(e)
|
||||
logger.error(msg)
|
||||
pt_spider.send_text('计划任务:' + msg)
|
||||
|
||||
@@ -4714,7 +4714,7 @@
|
||||
{
|
||||
"id": 70,
|
||||
"created_at": "2022-10-13 20:46:41.135391",
|
||||
"updated_at": "2022-10-13 20:50:42.230824",
|
||||
"updated_at": "2022-10-13 23:12:01.439476",
|
||||
"name": "GGPT",
|
||||
"url": "https://gamegamept.cn/",
|
||||
"logo": "https://gamegamept.cn/favicon.ico",
|
||||
@@ -4778,7 +4778,7 @@
|
||||
"leech_rule": "//img[@class=\"arrowdown\"]/following-sibling::text()[1]",
|
||||
"seed_rule": "//img[@class=\"arrowup\"]/following-sibling::text()[1]",
|
||||
"record_count_rule": ".//td[3]/text()",
|
||||
"seed_vol_rule": "//tr/td[3]",
|
||||
"seed_vol_rule": "//tr/td[4]",
|
||||
"mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
"hash_rule": "//td/b[contains(text(),\"Hash\")]/following::text()[1]",
|
||||
"notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
@@ -4866,7 +4866,7 @@
|
||||
{
|
||||
"id": 72,
|
||||
"created_at": "2022-10-13 22:31:26.178291",
|
||||
"updated_at": "2022-10-13 22:35:55.533849",
|
||||
"updated_at": "2022-10-13 23:11:19.842113",
|
||||
"name": "织梦",
|
||||
"url": "https://zmpt.cc/",
|
||||
"logo": "https://zmpt.cc/favicon.ico",
|
||||
@@ -4930,7 +4930,7 @@
|
||||
"leech_rule": "//img[@class=\"arrowdown\"]/following-sibling::text()[1]",
|
||||
"seed_rule": "//img[@class=\"arrowup\"]/following-sibling::text()[1]",
|
||||
"record_count_rule": ".//td[3]/text()",
|
||||
"seed_vol_rule": "//tr/td[3]",
|
||||
"seed_vol_rule": "//tr/td[4]",
|
||||
"mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
"hash_rule": "//td/b[contains(text(),\"Hash\")]/following::text()[1]",
|
||||
"notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
|
||||
8
pt.json
8
pt.json
@@ -4902,7 +4902,7 @@
|
||||
"pk": 70,
|
||||
"fields": {
|
||||
"created_at": "2022-10-13T20:46:41.135",
|
||||
"updated_at": "2022-10-13T20:50:42.230",
|
||||
"updated_at": "2022-10-13T23:12:01.439",
|
||||
"url": "https://gamegamept.cn/",
|
||||
"name": "GGPT",
|
||||
"logo": "https://gamegamept.cn/favicon.ico",
|
||||
@@ -4970,7 +4970,7 @@
|
||||
"leech_rule": "//img[@class=\"arrowdown\"]/following-sibling::text()[1]",
|
||||
"seed_rule": "//img[@class=\"arrowup\"]/following-sibling::text()[1]",
|
||||
"record_count_rule": ".//td[3]/text()",
|
||||
"seed_vol_rule": "//tr/td[3]",
|
||||
"seed_vol_rule": "//tr/td[4]",
|
||||
"mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
"notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
"hash_rule": "//td/b[contains(text(),\"Hash\")]/following::text()[1]"
|
||||
@@ -5060,7 +5060,7 @@
|
||||
"pk": 72,
|
||||
"fields": {
|
||||
"created_at": "2022-10-13T22:31:26.178",
|
||||
"updated_at": "2022-10-13T22:35:55.533",
|
||||
"updated_at": "2022-10-13T23:11:19.842",
|
||||
"url": "https://zmpt.cc/",
|
||||
"name": "织梦",
|
||||
"logo": "https://zmpt.cc/favicon.ico",
|
||||
@@ -5128,7 +5128,7 @@
|
||||
"leech_rule": "//img[@class=\"arrowdown\"]/following-sibling::text()[1]",
|
||||
"seed_rule": "//img[@class=\"arrowup\"]/following-sibling::text()[1]",
|
||||
"record_count_rule": ".//td[3]/text()",
|
||||
"seed_vol_rule": "//tr/td[3]",
|
||||
"seed_vol_rule": "//tr/td[4]",
|
||||
"mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
"notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
"hash_rule": "//td/b[contains(text(),\"Hash\")]/following::text()[1]"
|
||||
|
||||
Reference in New Issue
Block a user