bithumen: update & change to cookie login

login can sometimes present CF turnstile
This commit is contained in:
ilike2burnthing
2025-07-07 17:28:47 +01:00
committed by GitHub
parent a0f0a3c710
commit a810066129

View File

@@ -48,44 +48,61 @@ caps:
music-search: [q] music-search: [q]
book-search: [q] book-search: [q]
settings:
- name: cookie
type: text
label: Cookie
- name: info_cookie
type: info_cookie
- name: sort
type: select
label: Sort requested from site
default: added
options:
added: created
seeders: seeders
size: size
name: title
- name: type
type: select
label: Order requested from site
default: DESC
options:
DESC: desc
ASC: asc
- name: info_activity
type: info
label: Account Inactivity
default: "If you do not visit the site for 1 year, you will be banned for inactivity. The permanent deletion of your account after the ban is 2 years."
login: login:
path: takelogin.php method: cookie
method: post
inputs: inputs:
username: "{{ .Config.username }}" cookie: "{{ .Config.cookie }}"
password: "{{ .Config.password }}"
error:
- selector: td.embedded:has(h2:contains("bejelentkezés"))
test: test:
path: browse.php path: index.php
selector: a[href*="logout.php"] selector: a[href^="/logout.php?"]
search: search:
paths: paths:
- path: browse.php - path: browse.php
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" # for dashboard imdbid search search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
incldead: 1 onlytitle: "{{ if .Query.IMDBID }}{{ else }}yes{{ end }}"
sort: "{{ .Config.sort }}"
d: "{{ .Config.type }}"
rows: rows:
selector: table#torrenttable > tbody > tr:has(a[href^="details.php?id="]) selector: table#torrenttable > tbody > tr:has(a[href^="details.php?id="])
filters:
- name: andmatch
fields: fields:
# download button can be disbled in the profile, use details link instead category:
# download: selector: a[href^="?cat="]
# selector: a[href^="download.php/"]
# attribute: href
download:
selector: a[href^="details.php?id="]
attribute: href attribute: href
filters: filters:
- name: replace - name: querystring
args: ["details.php?id=", "download.php/"] args: cat
- name: append
args: "/invalid.torrent"
title_default: title_default:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
title: title:
@@ -96,21 +113,30 @@ search:
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
imdbid: # download button can be disabled in the profile, use details link instead
selector: a[href*="imdb.com/title/tt"] download:
selector: a[href^="details.php?id="]
attribute: href attribute: href
filters:
- name: replace
args: ["details.php?id=", "download.php/"]
- name: append
args: "/invalid.torrent"
poster: poster:
selector: a[onmouseover^="bithumen.UI.images.coverShow"] selector: a[onmouseover^="bithumen.UI.images.coverShow"]
attribute: onmouseover attribute: onmouseover
filters: filters:
- name: regexp - name: regexp
args: "\"(.*?)\"" args: "\"(.*?)\""
category: imdbid:
selector: a[href^="?cat="] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
filters: size:
- name: querystring selector: td:nth-child(6) > u
args: cat files:
selector: td:nth-child(3)
grabs:
selector: td:nth-child(7)
seeders: seeders:
selector: td:nth-child(8) selector: td:nth-child(8)
leechers: leechers:
@@ -118,21 +144,19 @@ search:
filters: filters:
- name: regexp - name: regexp
args: /\s*([\d,]+) args: /\s*([\d,]+)
grabs: genre:
selector: td:nth-child(7) selector: span:has(a[href^="browse.php?genre="])
files:
selector: td:nth-child(3)
size:
selector: td:nth-child(6) > u
downloadvolumefactor: downloadvolumefactor:
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
selector: td:nth-child(5) > nobr > font:contains(" × ") selector: td:nth-child(5) > nobr > font:contains(" × ")
optional: true optional: true
default: 1 default: 1
filters: minimumseedtime:
- name: replace # 1 day (as seconds = 24 x 60 x 60)
args: ["×", ""] text: 86400
description:
selector: td:nth-child(2) > div
date_year: date_year:
selector: td:nth-child(5):contains('.') selector: td:nth-child(5):contains('.')
optional: true optional: true
@@ -155,6 +179,4 @@ search:
args: ["tegnap", "yesterday"] args: ["tegnap", "yesterday"]
date: date:
text: "{{ if or .Result.date_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}" text: "{{ if or .Result.date_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}"
description:
selector: td:nth-child(2) > div
# engine tbd # engine tbd