eztv: fetch magnets from details page. resolves #4813

This commit is contained in:
Garfield69 2019-03-05 07:25:56 +13:00
parent be54f1a532
commit a84b1dce4d
1 changed files with 11 additions and 5 deletions

View File

@ -17,10 +17,14 @@
1: TV
modes:
search: [q]
tv-search: [q, season, ep]
settings: []
download:
selector: a[href^="magnet:?"]
search:
paths:
- path: "{{if .Keywords}}search/{{ .Keywords}}{{else}}/{{end}}"
@ -28,7 +32,7 @@
- name: re_replace
args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode (search doesn't support it)
rows:
selector: "table.forum_header_border tr[name='hover'].forum_header_border:has(a.magnet)" # some torrents don't have any download links, skip them
selector: table.forum_header_border tr[name="hover"].forum_header_border
filters:
- name: andmatch
fields:
@ -47,20 +51,22 @@
selector: td:nth-child(2) a
attribute: href
download:
selector: td:nth-child(3) a.magnet, td:nth-child(3) a
selector: td:nth-child(2) a
attribute: href
size:
text: "500 MB"
size:
optional: true
selector: td:nth-child(4)
selector: td:nth-child(3)
date:
selector: td:nth-child(5)
selector: td:nth-child(4)
filters:
- name: append
args: " ago"
seeders:
selector: td:nth-child(6)
selector: td:nth-child(5)
leechers:
text: 0
downloadvolumefactor:
text: "0"
uploadvolumefactor: