Skip to content

Commit

Permalink
hdksy: add Referer for download
Browse files Browse the repository at this point in the history
  • Loading branch information
ServarrAdmin committed Feb 18, 2025
1 parent ea0fb95 commit b221015
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions definitions/v10/hdsky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ login:

download:
method: post
headers:
Referer: [ "{{ .Config.sitelink }}torrents.php" ]

Check failure on line 63 in definitions/v10/hdsky.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

63:15 [brackets] too many spaces inside brackets

Check failure on line 63 in definitions/v10/hdsky.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

63:52 [brackets] too many spaces inside brackets

search:
paths:
Expand Down
7 changes: 4 additions & 3 deletions definitions/v10/infire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ login:
path: index.php
selector: a[href="logout.php"]

download:
headers:
Referer: [ "{{ .Config.sitelink }}torrents.php" ]

Check failure on line 149 in definitions/v10/infire.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

149:15 [brackets] too many spaces inside brackets

Check failure on line 149 in definitions/v10/infire.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

149:52 [brackets] too many spaces inside brackets

search:
paths:
- path: torrents.php
Expand All @@ -160,9 +164,6 @@ search:
order: "{{ .Config.sort }}"
by: "{{ .Config.type }}"

headers:
Referer: ["{{ .Config.sitelink }}torrents.php"]

rows:
selector: table.mg-b-0 > tbody > tr:has(a[href^="download.php?id="])

Expand Down

2 comments on commit b221015

@garfield69
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guys, these local updates failed your lint, with unwanted spaces between the square brackets and double quotes

@garfield69
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were two indexers needed fixing ;-)
you fixed hdsky but there was also infire :-D

Please sign in to comment.