支持并优化海豹海豚数据获取,未获取授权或海豚API更新之前,海豚无法获取时魔,魔力以及做种体

This commit is contained in:
ngfchl
2022-11-23 21:25:33 +08:00
parent ed3967c658
commit 73c4bddb66
2 changed files with 161 additions and 6 deletions

85
pt.json
View File

@@ -2216,7 +2216,7 @@
"pk": 34,
"fields": {
"created_at": "2022-07-23T19:05:57.166",
"updated_at": "2022-11-23T15:34:29.614",
"updated_at": "2022-11-23T19:09:15.201",
"url": "https://greatposterwall.com/",
"name": "海豹GPW",
"logo": "https://greatposterwall.com/favicon.ico",
@@ -2230,13 +2230,13 @@
"page_control_panel": "usercp.php",
"page_detail": "details.php?id={}",
"page_download": "download.php?id={}",
"page_user": "ajax.php?action=index",
"page_user": "ajax.php?action=user&id={}",
"page_search": "torrents.php?search={}",
"page_leeching": "bonus.php?action=bprates",
"page_uploaded": "getusertorrentlistajax.php?userid={}&type=uploaded",
"page_seeding": "bonus.php?action=bprates",
"page_completed": "bonus.php?action=bprates",
"page_mybonus": "mybonus.php",
"page_mybonus": "ajax.php?action=index",
"page_viewfilelist": "viewfilelist.php?id={}",
"page_viewpeerlist": "viewpeerlist.php?id={}",
"sign_in_method": "get",
@@ -5845,6 +5845,85 @@
"hash_rule": "//td/b[contains(text(),\"Hash\")]/following::text()[1]"
}
},
{
"model": "pt_site.site",
"pk": 84,
"fields": {
"created_at": "2022-11-23T17:58:52.708",
"updated_at": "2022-11-23T18:49:10.965",
"url": "https://dicmusic.club/",
"name": "海豚",
"logo": "https://dicmusic.club/favicon.ico",
"tracker": "dicmusic",
"sign_in_support": false,
"get_torrent_support": false,
"get_userinfo_support": true,
"search_support": false,
"page_default": "torrents.php",
"page_sign_in": "attendance.php",
"page_control_panel": "usercp.php",
"page_detail": "details.php?id={}",
"page_download": "download.php?id={}",
"page_user": "ajax.php?action=user&id={}",
"page_search": "torrents.php?search={}",
"page_leeching": "getusertorrentlistajax.php?userid={}&type=leeching",
"page_uploaded": "getusertorrentlistajax.php?userid={}&type=uploaded",
"page_seeding": "bonus.php?action=bprates",
"page_completed": "getusertorrentlistajax.php?userid={}&type=completed",
"page_mybonus": "ajax.php?action=index",
"page_viewfilelist": "viewfilelist.php?id={}",
"page_viewpeerlist": "viewpeerlist.php?id={}",
"sign_in_method": "get",
"sign_in_captcha": false,
"sign_in_params": "{}",
"sign_in_headers": "{}",
"hr": false,
"hr_rate": 2,
"hr_time": 10,
"sp_full": 100.0,
"limit_speed": 100,
"torrents_rule": "//table[@class=\"torrents\"]/tr",
"name_rule": ".//td[@class=\"embedded\"]/a/b/text()",
"title_rule": ".//a[contains(@href,\"detail\")]/parent::td/text()[last()]",
"detail_url_rule": ".//td[@class=\"embedded\"]/a[contains(@href,\"detail\")]/@href",
"category_rule": ".//td[@class=\"rowfollow nowrap\"][1]/a[1]/img/@title",
"poster_rule": ".//table/tr/td[1]/img/@src",
"magnet_url_rule": ".//td/a[contains(@href,\"download.php?id=\")]/@href",
"download_url_rule": ".//a[contains(@href,\"download.php?id=\") and contains(@href,\"passkey\")]/@href",
"size_rule": ".//td[5]/text()",
"hr_rule": ".//table/tr/td/img[@class=\"hitandrun\"]/@title",
"sale_rule": ".//img[contains(@class,\"free\")]/@alt",
"sale_expire_rule": ".//img[contains(@class,\"free\")]/following-sibling::font/span/@title",
"release_rule": ".//td[4]/span/@title",
"seeders_rule": ".//a[contains(@href,\"#seeders\")]/text()",
"leechers_rule": ".//a[contains(@href,\"#leechers\")]/text()",
"completers_rule": ".//a[contains(@href,\"viewsnatches\")]//text()",
"viewfilelist_rule": ".//td/text()",
"viewpeerlist_rule": ".//tr/td[9]/nobr/text()",
"peer_speed_rule": ".//tr/td[7]/nobr/text()",
"remark": "",
"invitation_rule": "//span/a[contains(@href,\"invite.php?id=\")]/following-sibling::text()[1]",
"time_join_rule": "//td[contains(text(),\"加入\")]/following-sibling::td/span/@title",
"latest_active_rule": "//td[contains(text(),\"最近动向\")]/following-sibling::td/span/@title",
"uploaded_rule": "//font[@class=\"color_uploaded\"]/following-sibling::text()[1]",
"downloaded_rule": "//font[@class=\"color_downloaded\"]/following-sibling::text()[1]",
"ratio_rule": "//font[@class=\"color_ratio\"][1]/following-sibling::text()[1]",
"my_sp_rule": "//a[@href=\"mybonus.php\"]/following-sibling::text()[1]",
"hour_sp_rule": "//div[contains(text(),\"每小时能获取\")]/text()[1]",
"my_bonus_rule": "//font[@class=\"color_bonus\" and contains(text(),\"积分\")]/following-sibling::text()[1]",
"my_level_rule": "//table[@id=\"info_block\"]//span/a[contains(@class,\"_Name\") and contains(@href,\"userdetails.php?id=\")]/@class",
"my_passkey_rule": "//td[contains(text(),\"密钥\")]/following-sibling::td[1]/text()",
"my_uid_rule": "//table[@id=\"info_block\"]//span/a[contains(@class,\"_Name\") and contains(@href,\"userdetails.php?id=\")]/@href",
"my_hr_rule": "//a[@href=\"myhr.php\"]//text()",
"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]",
"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]"
}
},
{
"model": "auto_pt.task",
"pk": 1,

View File

@@ -2130,7 +2130,7 @@
{
"id": 34,
"created_at": "2022-07-23 19:05:57.166000",
"updated_at": "2022-11-23 15:34:29.614533",
"updated_at": "2022-11-23 19:09:15.201675",
"name": "海豹GPW",
"url": "https://greatposterwall.com/",
"logo": "https://greatposterwall.com/favicon.ico",
@@ -2142,13 +2142,13 @@
"page_sign_in": "attendance.php",
"page_detail": "details.php?id={}",
"page_download": "download.php?id={}",
"page_user": "ajax.php?action=index",
"page_user": "ajax.php?action=user&id={}",
"page_search": "torrents.php?search={}",
"page_leeching": "bonus.php?action=bprates",
"page_uploaded": "getusertorrentlistajax.php?userid={}&type=uploaded",
"page_seeding": "bonus.php?action=bprates",
"page_completed": "bonus.php?action=bprates",
"page_mybonus": "mybonus.php",
"page_mybonus": "ajax.php?action=index",
"page_viewfilelist": "viewfilelist.php?id={}",
"page_viewpeerlist": "viewpeerlist.php?id={}",
"sign_in_method": "get",
@@ -5622,5 +5622,81 @@
"my_uid_rule": "//table[@id=\"info_block\"]//span/a[contains(@class,\"_Name\") and contains(@href,\"userdetails.php?id=\")]/@href",
"page_control_panel": "usercp.php",
"tracker": "www.filept.com"
},
{
"id": 84,
"created_at": "2022-11-23 17:58:52.708203",
"updated_at": "2022-11-23 18:49:10.965227",
"name": "海豚",
"url": "https://dicmusic.club/",
"logo": "https://dicmusic.club/favicon.ico",
"sign_in_support": 0,
"get_torrent_support": 0,
"get_userinfo_support": 1,
"search_support": 0,
"page_default": "torrents.php",
"page_sign_in": "attendance.php",
"page_detail": "details.php?id={}",
"page_download": "download.php?id={}",
"page_user": "ajax.php?action=user&id={}",
"page_search": "torrents.php?search={}",
"page_leeching": "getusertorrentlistajax.php?userid={}&type=leeching",
"page_uploaded": "getusertorrentlistajax.php?userid={}&type=uploaded",
"page_seeding": "bonus.php?action=bprates",
"page_completed": "getusertorrentlistajax.php?userid={}&type=completed",
"page_mybonus": "ajax.php?action=index",
"page_viewfilelist": "viewfilelist.php?id={}",
"page_viewpeerlist": "viewpeerlist.php?id={}",
"sign_in_method": "get",
"sign_in_captcha": 0,
"sign_in_params": "{}",
"sign_in_headers": "{}",
"hr": 0,
"hr_rate": 2,
"hr_time": 10,
"sp_full": 100,
"limit_speed": 100,
"torrents_rule": "//table[@class=\"torrents\"]/tr",
"name_rule": ".//td[@class=\"embedded\"]/a/b/text()",
"title_rule": ".//a[contains(@href,\"detail\")]/parent::td/text()[last()]",
"detail_url_rule": ".//td[@class=\"embedded\"]/a[contains(@href,\"detail\")]/@href",
"category_rule": ".//td[@class=\"rowfollow nowrap\"][1]/a[1]/img/@title",
"poster_rule": ".//table/tr/td[1]/img/@src",
"magnet_url_rule": ".//td/a[contains(@href,\"download.php?id=\")]/@href",
"download_url_rule": ".//a[contains(@href,\"download.php?id=\") and contains(@href,\"passkey\")]/@href",
"size_rule": ".//td[5]/text()",
"hr_rule": ".//table/tr/td/img[@class=\"hitandrun\"]/@title",
"sale_rule": ".//img[contains(@class,\"free\")]/@alt",
"sale_expire_rule": ".//img[contains(@class,\"free\")]/following-sibling::font/span/@title",
"release_rule": ".//td[4]/span/@title",
"seeders_rule": ".//a[contains(@href,\"#seeders\")]/text()",
"leechers_rule": ".//a[contains(@href,\"#leechers\")]/text()",
"completers_rule": ".//a[contains(@href,\"viewsnatches\")]//text()",
"viewfilelist_rule": ".//td/text()",
"viewpeerlist_rule": ".//tr/td[9]/nobr/text()",
"peer_speed_rule": ".//tr/td[7]/nobr/text()",
"remark": "",
"invitation_rule": "//span/a[contains(@href,\"invite.php?id=\")]/following-sibling::text()[1]",
"time_join_rule": "//td[contains(text(),\"加入\")]/following-sibling::td/span/@title",
"latest_active_rule": "//td[contains(text(),\"最近动向\")]/following-sibling::td/span/@title",
"uploaded_rule": "//font[@class=\"color_uploaded\"]/following-sibling::text()[1]",
"downloaded_rule": "//font[@class=\"color_downloaded\"]/following-sibling::text()[1]",
"ratio_rule": "//font[@class=\"color_ratio\"][1]/following-sibling::text()[1]",
"my_sp_rule": "//a[@href=\"mybonus.php\"]/following-sibling::text()[1]",
"hour_sp_rule": "//div[contains(text(),\"每小时能获取\")]/text()[1]",
"my_bonus_rule": "//font[@class=\"color_bonus\" and contains(text(),\"积分\")]/following-sibling::text()[1]",
"my_level_rule": "//table[@id=\"info_block\"]//span/a[contains(@class,\"_Name\") and contains(@href,\"userdetails.php?id=\")]/@class",
"my_hr_rule": "//a[@href=\"myhr.php\"]//text()",
"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]",
"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]",
"my_passkey_rule": "//td[contains(text(),\"密钥\")]/following-sibling::td[1]/text()",
"my_uid_rule": "//table[@id=\"info_block\"]//span/a[contains(@class,\"_Name\") and contains(@href,\"userdetails.php?id=\")]/@href",
"page_control_panel": "usercp.php",
"tracker": "dicmusic"
}
]