mteamtp: use download links from listing and increase delay (#14002)

This commit is contained in:
Bogdan
2023-02-11 15:47:58 +02:00
committed by GitHub
parent 0d06426aed
commit cc86e63b57
2 changed files with 26 additions and 27 deletions

View File

@@ -5,7 +5,7 @@ description: "M-Team TP (MTTP) is a CHINESE Private Torrent Tracker for HD MOVIE
language: zh-CN
type: private
encoding: UTF-8
requestDelay: 2
requestDelay: 3
links:
- https://kp.m-team.cc/
legacylinks:
@@ -68,10 +68,6 @@ settings:
type: checkbox
label: Search freeleech only
default: false
- name: info
type: info
label: ""
default: For best results disable the torrent name tooltip (User CP/Tracker Settings/Torrents Page). Otherwise long release names will be cut off.
- name: sort
type: select
label: Sort requested from site
@@ -92,6 +88,14 @@ settings:
type: info
label: Results Per Page
default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.
- name: info_title
type: info
label: About Titles
default: For best results, disable the torrent name tooltip in <b>User CP/Tracker Settings/Torrents Page</b>. Otherwise long release names will be cut off.
- name: info_download_link
type: info
label: About Download Links
default: For best results, you must enable the <b>Download icon</b> in <b>User CP/Tracker Settings/Torrents Page</b>.
login:
path: takelogin.php
@@ -104,15 +108,11 @@ login:
- selector: td.embedded:has(h2:contains("failed"))
- selector: td.toolbox:contains("錯誤")
- selector: td.toolbox:contains("Error")
- selector: td.toolbox:contains("限制登")
test:
path: index.php
selector: a[href="logout.php"]
download:
selectors:
- selector: a[href$="&https=1"]
attribute: href
search:
paths:
- path: torrents.php
@@ -130,7 +130,7 @@ search:
spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
# 0 title, 3 uploader, 4 imdb url
search_area: "{{ if .Query.IMDBID }}4{{ else }}0{{ end }}"
# 0 and, 1 or, 2 exact
# 0 AND, 1 OR, 2 exact
search_mode: 0
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
@@ -159,10 +159,10 @@ search:
selector: a[href^="details.php?id="]
attribute: href
download:
selector: a[href^="details.php?id="]
selector: a[href^="download.php?id="]
attribute: href
poster:
selector: img[alt="torrent thumbnail"]
selector: img[alt="torrent thumbnail"][src]
attribute: src
filters:
- name: replace

View File

@@ -1,11 +1,11 @@
---
id: mteamtp2fa
name: MTeamTP2FA
description: "this indexer uses a cookie login for MTeamTP for those that want to use 2FA"
name: M-Team - TP (2FA)
description: "This indexer uses a cookie login for M-Team TP (MTTP) for those that want to use 2FA"
language: zh-CN
type: private
encoding: UTF-8
requestDelay: 2
requestDelay: 3
links:
- https://kp.m-team.cc/
legacylinks:
@@ -76,10 +76,6 @@ settings:
type: checkbox
label: Search freeleech only
default: false
- name: infotitle
type: info
label: About Titles
default: For best results disable the torrent name tooltip (User CP/Tracker Settings/Torrents Page). Otherwise long release names will be cut off.
- name: sort
type: select
label: Sort requested from site
@@ -100,6 +96,14 @@ settings:
type: info
label: Results Per Page
default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.
- name: info_title
type: info
label: About Titles
default: For best results, disable the torrent name tooltip in <b>User CP/Tracker Settings/Torrents Page</b>. Otherwise long release names will be cut off.
- name: info_download_link
type: info
label: About Download Links
default: For best results, you must enable the <b>Download icon</b> in <b>User CP/Tracker Settings/Torrents Page</b>.
login:
method: cookie
@@ -109,11 +113,6 @@ login:
path: index.php
selector: a[href="logout.php"]
download:
selectors:
- selector: a[href$="&https=1"]
attribute: href
search:
paths:
- path: torrents.php
@@ -163,10 +162,10 @@ search:
selector: a[href^="details.php?id="]
attribute: href
download:
selector: a[href^="details.php?id="]
selector: a[href^="download.php?id="]
attribute: href
poster:
selector: img[alt="torrent thumbnail"]
selector: img[alt="torrent thumbnail"][src]
attribute: src
filters:
- name: replace