totheglory: changes for 2fa (#15416)

This commit is contained in:
ilike2burnthing
2024-06-15 01:34:15 +01:00
committed by GitHub
parent ebced85dc0
commit 2364d7a36a
4 changed files with 21 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
--- ---
id: totheglory id: totheglory
name: ToTheGlory name: ToTheGlory
description: "ToTheGlory (TTG) A Chinese tracker" description: "ToTheGlory (TTG) is a CHINESE Private Torrent Tracker for MOVIES / TV / GENERAL"
language: zh-CN language: zh-CN
type: private type: private
encoding: UTF-8 encoding: UTF-8
@@ -95,13 +95,6 @@ settings:
- name: password - name: password
type: password type: password
label: Password label: Password
- name: 2facode
type: text
label: 2FA code
- name: info_2fa
type: info
label: "About 2FA code"
default: "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the TTG Web Site. Otherwise just leave it empty."
- name: passid - name: passid
type: select type: select
label: Security Question ID label: Security Question ID
@@ -118,14 +111,14 @@ settings:
- name: info_passid - name: info_passid
type: info type: info
label: "About Security ID" label: "About Security ID"
default: "Only select the <b>Security Question ID</b> from the pulldown if you have set it on the TTG Web Site. Otherwise just leave it as ignore not set." default: "Only select the <b>Security Question ID</b> from the pulldown if you have set it on the TTG Web Site. Otherwise just leave it as <b>Ignore not set</b>."
- name: passan - name: passan
type: text type: text
label: Security Question Answer label: Security Question Answer
- name: info_passan - name: info_passan
type: info type: info
label: "About Security Question Answer" label: "About Security Question Answer"
default: "Only fill in the <b>Security Question Answer</b> box if you have set it on the TTG Web Site. Dont forget to write your answer in the same language you saved it on the TTG Web Site. Otherwise just leave it empty." default: "Only fill in the <b>Security Question Answer</b> box if you have set it on the TTG Web Site. Don't forget to write your answer in the same language you saved it on the TTG Web Site. Otherwise just leave it empty."
login: login:
path: login.php?returnto= path: login.php?returnto=
@@ -135,7 +128,6 @@ login:
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
rememberme: yes rememberme: yes
otp: "{{ .Config.2facode }}"
passid: "{{ .Config.passid }}" passid: "{{ .Config.passid }}"
passan: "{{ .Config.passan }}" passan: "{{ .Config.passan }}"
error: error:

View File

@@ -1,7 +1,7 @@
--- ---
id: totheglorycookie id: totheglory2fa
name: ToTheGloryCookie name: ToTheGlory2FA
description: "ToTheGlory (TTG) A Chinese tracker. This uses the cookie method for access" description: "ToTheGlory (TTG) is a CHINESE Private Torrent Tracker for MOVIES / TV / GENERAL. This indexer uses cookie login for 2FA."
language: zh-CN language: zh-CN
type: private type: private
encoding: UTF-8 encoding: UTF-8

View File

@@ -38,39 +38,42 @@ namespace Jackett.Common.Services
// (the id is used in the torznab/download/search urls and in the indexer configuration file) // (the id is used in the torznab/download/search urls and in the indexer configuration file)
// if the indexer is removed, remove it from this list too // if the indexer is removed, remove it from this list too
// use: {"<old id>", "<new id>"} // use: {"<old id>", "<new id>"}
// list alphabetically by the original name
// group successive and collective renames, use comments to indicate this
private readonly Dictionary<string, string> _renamedIndexers = new Dictionary<string, string> private readonly Dictionary<string, string> _renamedIndexers = new Dictionary<string, string>
{ {
{"audiobooktorrents", "abtorrents"}, {"audiobooktorrents", "abtorrents"},
{"baibako", "rudub"}, {"baibako", "rudub"},
{"broadcastthenet", "broadcasthenet"}, {"broadcastthenet", "broadcasthenet"},
{"casatorrent", "teamctgame"}, {"casatorrent", "teamctgame"},
{"icetorrent", "speedapp"},
{"hdzone", "hdfun"}, {"hdzone", "hdfun"},
{"icetorrent", "speedapp"}, // v
{"scenefz", "speedapp"}, // |
{"xtremezone", "speedapp"}, // ^
{"kickasstorrent-kathow", "kickasstorrents-ws"}, {"kickasstorrent-kathow", "kickasstorrents-ws"},
{"kisssub", "miobt"}, {"kisssub", "miobt"},
{"legacyhd", "reelflix"}, {"legacyhd", "reelflix"}, // v
{"reelflix", "reelflix-api"}, {"reelflix", "reelflix-api"}, // ^
{"magico", "trellas"}, {"magico", "trellas"},
{"metaliplayro", "romanianmetaltorrents"}, {"metaliplayro", "romanianmetaltorrents"},
{"mteamtp2fa", "mteamtp"}, {"mteamtp2fa", "mteamtp"},
{"nnm-club", "noname-club"}, {"nnm-club", "noname-club"},
{"oxtorrent", "torrent911"}, {"oxtorrent", "torrent911"}, // v
{"torrent911", "oxtorrent-vip"}, // ^
{"passtheheadphones", "redacted"}, {"passtheheadphones", "redacted"},
{"puntorrent", "puntotorrent"}, {"puntorrent", "puntotorrent"},
{"rstorrent", "redstartorrent"}, {"rstorrent", "redstartorrent"},
{"scenefz", "speedapp"},
{"seals", "greatposterwall"}, {"seals", "greatposterwall"},
{"speedcdcookie", "speedcd"}, {"speedcdcookie", "speedcd"},
{"tehconnectionme", "anthelion"}, {"tehconnectionme", "anthelion"}, // v
{"torrent911", "oxtorrent-vip"}, {"anthelion", "anthelion-api"}, // ^
{"anthelion", "anthelion-api"},
{"todotorrents", "dontorrent"}, {"todotorrents", "dontorrent"},
{"torrent9clone", "torrent9-tel"}, {"torrent9clone", "torrent9-tel"},
{"torrentgalaxyorg", "torrentgalaxy"}, {"torrentgalaxyorg", "torrentgalaxy"},
{"torrentsurf", "xtremebytes"}, {"torrentsurf", "xtremebytes"},
{"transmithenet", "nebulance"}, {"totheglorycookie", "totheglory2fa"},
{"nebulance", "nebulanceapi"}, {"transmithenet", "nebulance"}, // v
{"xtremezone", "speedapp"}, {"nebulance", "nebulanceapi"}, // ^
{"yourexotic", "exoticaz"} {"yourexotic", "exoticaz"}
}; };

View File

@@ -679,6 +679,7 @@ namespace Jackett.Updater
"Definitions/torrof.yml", "Definitions/torrof.yml",
"Definitions/torviet.yml", "Definitions/torviet.yml",
"Definitions/totallykids.yml", "Definitions/totallykids.yml",
"Definitions/totheglorycookie.yml", // renamed totheglory2fa
"Definitions/trackeros-api.yml", "Definitions/trackeros-api.yml",
"Definitions/trackeros.yml", // switch to *-API #12807 "Definitions/trackeros.yml", // switch to *-API #12807
"Definitions/tspate.yml", "Definitions/tspate.yml",