demonoid: support theme v5. drop v3. resolves #11967

This commit is contained in:
Garfield69
2021-06-30 11:09:31 +12:00
parent 2e4a164f08
commit 11422f7625

View File

@@ -284,7 +284,7 @@ caps:
- {id: 233, cat: TV, desc: "TV Trailers"} - {id: 233, cat: TV, desc: "TV Trailers"}
- {id: 234, cat: TV, desc: "TV War"} - {id: 234, cat: TV, desc: "TV War"}
- {id: 235, cat: TV, desc: "TV Western"} - {id: 235, cat: TV, desc: "TV Western"}
# cat 7 misc has no subcats # cat 7 Miscellaneous has no subcats
modes: modes:
search: [q] search: [q]
@@ -301,6 +301,10 @@ settings:
type: info type: info
label: How to get the Cookie label: How to get the Cookie
default: "<ol><li>Access this tracker with your browser<li>click on the <b>Apply Filter</b> button on the page to invoke the search and solve the challenge<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)<li>Refresh the page by pressing <b>F5</b><li>Click on the first row entry<li>Select the <b>Headers</b> tab on the Right panel<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>" default: "<ol><li>Access this tracker with your browser<li>click on the <b>Apply Filter</b> button on the page to invoke the search and solve the challenge<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)<li>Refresh the page by pressing <b>F5</b><li>Click on the first row entry<li>Select the <b>Headers</b> tab on the Right panel<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
- name: info_themes
type: info
label: About themes
default: Only the default theme <b>Demonoid - v5</b> is supported. If you are using v3 then change it in your <i>User Control Panel</i> or you will get 0 results.
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@@ -343,10 +347,11 @@ search:
# does not return imdb link in results # does not return imdb link in results
rows: rows:
selector: table.font_12px tr:has(td[class^="tone_1"]) # only the default theme "Demonoid - v5" is supported
selector: table.table:has(td.torrent__table-today) > tbody > tr:has(td[class^="tone_"])
after: 1 after: 1
dateheaders: dateheaders:
selector: tr td.added_today:not(:contains("Sponsored links")) selector: tr td.torrent__table-today:not(:contains("Sponsored links"))
filters: filters:
- name: replace - name: replace
args: ["Added ", ""] args: ["Added ", ""]
@@ -361,7 +366,7 @@ search:
optional: true optional: true
attribute: title attribute: title
category: category:
selector: span > a[href*="&subcategory="] selector: span.torrent__table-info > a:nth-child(2)
attribute: href attribute: href
optional: true optional: true
filters: filters:
@@ -374,15 +379,15 @@ search:
selector: a[href^="/files/details/"] selector: a[href^="/files/details/"]
attribute: href attribute: href
description: description:
selector: td:nth-last-child(9) selector: td:nth-last-child(7)
size: size:
selector: td:nth-last-child(6) selector: td:nth-last-child(5)
grabs: grabs:
selector: td:nth-last-child(4)
seeders:
selector: td:nth-last-child(3) selector: td:nth-last-child(3)
leechers: seeders:
selector: td:nth-last-child(2) selector: td:nth-last-child(2)
leechers:
selector: td:nth-last-child(1)
downloadvolumefactor: downloadvolumefactor:
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor: