mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
torrentz2eu: fix dateparse and check for TV Show in title
This commit is contained in:
@@ -5,6 +5,7 @@ description: "Torrentz2eu is a Public torrent meta-search engine"
|
|||||||
language: en-US
|
language: en-US
|
||||||
type: public
|
type: public
|
||||||
encoding: UTF-8
|
encoding: UTF-8
|
||||||
|
requestDelay: 2
|
||||||
followredirect: true
|
followredirect: true
|
||||||
links:
|
links:
|
||||||
- https://2torrentz2eu.in/
|
- https://2torrentz2eu.in/
|
||||||
@@ -44,16 +45,24 @@ search:
|
|||||||
paths:
|
paths:
|
||||||
# https://2torrentz2eu.in/beta2/search.php?torrent-query=2023
|
# https://2torrentz2eu.in/beta2/search.php?torrent-query=2023
|
||||||
- path: beta2/search.php
|
- path: beta2/search.php
|
||||||
|
- path: beta2/search.php
|
||||||
|
inputs:
|
||||||
|
page: 2
|
||||||
inputs:
|
inputs:
|
||||||
torrent-query: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
|
torrent-query: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: table#torrent-table > tbody > tr
|
selector: table#torrent-table > tbody > tr
|
||||||
fields:
|
fields:
|
||||||
category:
|
|
||||||
text: 3
|
|
||||||
title:
|
title:
|
||||||
selector: td:nth-child(1)
|
selector: td:nth-child(1)
|
||||||
|
category_is_tv_show:
|
||||||
|
text: "{{ .Result.title }}"
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: "\\b(S\\d+(?:E\\d+)?)\\b"
|
||||||
|
category:
|
||||||
|
text: "{{ if .Result.category_is_tv_show }}2{{ else }}3{{ end }}"
|
||||||
details:
|
details:
|
||||||
# https://torrentz2.pics/beta2/page.php?url=9999999%2FThe-Torrent-file-name-goes-here%2F
|
# https://torrentz2.pics/beta2/page.php?url=9999999%2FThe-Torrent-file-name-goes-here%2F
|
||||||
selector: td:nth-child(6) button
|
selector: td:nth-child(6) button
|
||||||
@@ -77,7 +86,7 @@ search:
|
|||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["(?i)(st|nd|rd|th|'|\\.)", ""]
|
args: ["(?i)(st|nd|rd|th|'|\\.)", ""]
|
||||||
- name: dateparse
|
- name: dateparse
|
||||||
args: "MMM. dd yy"
|
args: "MMM dd yy"
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
text: 0
|
text: 0
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
|
Reference in New Issue
Block a user