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
description: "DigitalCore (DC) is a Private Torrent Tracker for 0DAY / GENERAL"
language: en-US
@@ -62,11 +64,13 @@ caps:
book-search: [q]
settings:
- name: cookie
- name: apikey
type: text
label: Cookie
- name: info_cookie
type: info_cookie
label: APIKey
- name: info_key
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
type: checkbox
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."
login:
# using cookie method because login page is dynamically generated using JS
method: cookie
inputs:
cookie: "{{ .Config.cookie }}"
method: get
path: /api/v1/torrents
search:
paths:
@@ -113,6 +115,9 @@ search:
type: json
noResultsMessage: ""
headers:
X-API-KEY: ["{{ .Config.apikey }}"]
inputs:
$raw: "{{ range .Categories }}categories[]={{.}}&{{end}}"
dead: true

View File

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