lastfiles: update indexer for another new layout

This commit is contained in:
ilike2burnthing
2021-02-06 17:12:48 +00:00
committed by GitHub
parent c903d6b7ed
commit a60c2620c3

View File

@@ -5,12 +5,12 @@ description: "LastFiles (LF) is a ROMANIAN Private Torrent Tracker for 0DAY / GE
language: ro-ro language: ro-ro
type: private type: private
encoding: utf-8 encoding: utf-8
followredirect: true
links: links:
- https://www.last-torrents.org/ - http://www.last-torrents.org/
legacylinks: legacylinks:
- http://last-torrents.org/ - http://last-torrents.org/
- https://last-torrents.org/ - https://last-torrents.org/
- https://www.last-torrents.org/ # site's https regularly fails
caps: caps:
categorymappings: categorymappings:
@@ -81,22 +81,23 @@ settings:
type: info type: info
label: FlareSolverr label: FlareSolverr
default: This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href="https://github.com/Jackett/Jackett#configuring-flaresolverr" target="_blank">FlareSolver</a> to access it. default: This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href="https://github.com/Jackett/Jackett#configuring-flaresolverr" target="_blank">FlareSolver</a> to access it.
- name: sort # sorting currently broken, defaults to date added desc
type: select # - name: sort
label: Sort requested from site # type: select
default: 4 # label: Sort requested from site
options: # default: 4
4: created # options:
7: seeders # 4: created
5: size # 7: seeders
1: title # 5: size
- name: type # 1: title
type: select # - name: type
label: Order requested from site # type: select
default: desc # label: Order requested from site
options: # default: desc
desc: desc # options:
asc: asc # desc: desc
# asc: asc
login: login:
method: cookie method: cookie
@@ -114,8 +115,8 @@ search:
# 0 active, 1 incldead, 2 onlydead # 0 active, 1 incldead, 2 onlydead
incldead: 1 incldead: 1
only_free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" only_free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
sort: "{{ .Config.sort }}" # sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" # type: "{{ .Config.type }}"
keywordsfilters: keywordsfilters:
- name: re_replace - name: re_replace
args: ["(\\w+)", " +$1"] # prepend + to each word args: ["(\\w+)", " +$1"] # prepend + to each word
@@ -132,10 +133,6 @@ search:
args: cat args: cat
title: title:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: onmouseover
filters:
- name: regexp
args: <b>(.+?)</b>
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
@@ -145,11 +142,17 @@ search:
filters: filters:
- name: regexp - name: regexp
args: src=\\'(http.+?\.jpg)\\' args: src=\\'(http.+?\.jpg)\\'
poster:
selector: a[href^="details.php?id="]
attribute: onmouseover
filters:
- name: regexp
args: src=\\'(http.+?\.png)\\'
download: download:
selector: a[href^="download.php"] selector: a[href^="download.php"]
attribute: href attribute: href
date: date:
selector: td:nth-child(7):not(:contains("day")) selector: td:nth-child(4) span:not(:contains("day"))
optional: true optional: true
filters: filters:
- name: append - name: append
@@ -157,35 +160,35 @@ search:
- name: dateparse - name: dateparse
args: "Jan 2 2006 03:04 PM -07:00" args: "Jan 2 2006 03:04 PM -07:00"
date: date:
selector: td:nth-child(7):contains("day") selector: td:nth-child(4) span:contains("day")
optional: true optional: true
filters: filters:
- name: append - name: append
args: " +00:00" # auto adjusted by site account profile args: " +00:00" # auto adjusted by site account profile
- name: fuzzytime - name: fuzzytime
size: size:
selector: td:nth-child(8) selector: td:nth-child(5)
grabs: grabs:
selector: td:nth-child(9) selector: td:nth-child(6)
filters: filters:
- name: regexp - name: regexp
args: (\d+) args: (\d+)
seeders: seeders:
selector: td:nth-child(10) selector: td:nth-child(7)
leechers: leechers:
selector: td:nth-child(11) selector: td:nth-child(8)
downloadvolumefactor: downloadvolumefactor:
case: case:
"a.info >b:contains(\"FREE\")": 0 "a.info > b:contains(\"FREE\")": 0
"a.info >b:contains(\"Half\")": 0.5 "a.info > b:contains(\"Half\")": 0.5
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: case:
"a.info >b:contains(\"2XUP\")": 2 "a.info > b:contains(\"2XUP\")": 2
"*": 1 "*": 1
minimumratio: minimumratio:
text: 1.0 text: 1.0
minimumseedtime: minimumseedtime:
# 2 days (as seconds = 48 x 60 x 60) # 2 days (as seconds = 48 x 60 x 60)
text: 172800 text: 172800
# engine n/a # U-232 V5