digitalcore: switch to APIkey (#16111) resolves #4808

This commit is contained in:
Bogdan
2025-08-10 08:27:53 +03:00
committed by GitHub
parent cff5a700bf
commit 9b5422a4b0
2 changed files with 15 additions and 9 deletions

View File

@@ -1,5 +1,7 @@
--- ---
id: digitalcore id: digitalcore-api
replaces:
- digitalcore
name: DigitalCore name: DigitalCore
description: "DigitalCore (DC) is a Private Torrent Tracker for 0DAY / GENERAL" description: "DigitalCore (DC) is a Private Torrent Tracker for 0DAY / GENERAL"
language: en-US language: en-US
@@ -62,11 +64,13 @@ caps:
book-search: [q] book-search: [q]
settings: settings:
- name: cookie - name: apikey
type: text type: text
label: Cookie label: APIKey
- name: info_cookie - name: info_key
type: info_cookie type: info
label: About your API key
default: "Generate a new API Key by accessing your <a href=\"https://digitalcore.club/\" target=\"_blank\">DigitalCore</a> account <i>Settings</i> page and clicking on the <b>Security</b> tab."
- name: freeleech - name: freeleech
type: checkbox type: checkbox
label: Search freeleech only label: Search freeleech only
@@ -101,10 +105,8 @@ settings:
default: "If your account is inactive (you do not sign in) for more than 60 days, your account is disabled. Park your account if you are going away for more than 60 days." default: "If your account is inactive (you do not sign in) for more than 60 days, your account is disabled. Park your account if you are going away for more than 60 days."
login: login:
# using cookie method because login page is dynamically generated using JS method: get
method: cookie path: /api/v1/torrents
inputs:
cookie: "{{ .Config.cookie }}"
search: search:
paths: paths:
@@ -113,6 +115,9 @@ search:
type: json type: json
noResultsMessage: "" noResultsMessage: ""
headers:
X-API-KEY: ["{{ .Config.apikey }}"]
inputs: inputs:
$raw: "{{ range .Categories }}categories[]={{.}}&{{end}}" $raw: "{{ range .Categories }}categories[]={{.}}&{{end}}"
dead: true dead: true

View File

@@ -377,6 +377,7 @@ namespace Jackett.Updater
"Definitions/devils-playground.yml", "Definitions/devils-playground.yml",
"Definitions/devilsplayground.yml", "Definitions/devilsplayground.yml",
"Definitions/digbt.yml", "Definitions/digbt.yml",
"Definitions/digitalcore.yml", // switch to *-API
"Definitions/divteam.yml", "Definitions/divteam.yml",
"Definitions/documentarytorrents.yml", "Definitions/documentarytorrents.yml",
"Definitions/dodder.yml", "Definitions/dodder.yml",