|
|
|
@ -1,56 +1,79 @@
|
|
|
|
|
import { ReactText } from "react";
|
|
|
|
|
|
|
|
|
|
type AvailableType = ReactText | boolean;
|
|
|
|
|
type Input<T, N> = {
|
|
|
|
|
type: N;
|
|
|
|
|
key: string;
|
|
|
|
|
defaultValue?: T;
|
|
|
|
|
name?: string;
|
|
|
|
|
description?: string;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
type AvailableInput =
|
|
|
|
|
| Input<ReactText, "text">
|
|
|
|
|
| Input<string, "password">
|
|
|
|
|
| Input<boolean, "switch">
|
|
|
|
|
| Input<ReactText[], "chips">;
|
|
|
|
|
|
|
|
|
|
export interface ProviderInfo {
|
|
|
|
|
key: string;
|
|
|
|
|
name?: string;
|
|
|
|
|
description?: string;
|
|
|
|
|
message?: string;
|
|
|
|
|
defaultKey?: {
|
|
|
|
|
[key: string]: AvailableType;
|
|
|
|
|
};
|
|
|
|
|
keyNameOverride?: {
|
|
|
|
|
[key: string]: string;
|
|
|
|
|
};
|
|
|
|
|
inputs?: AvailableInput[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const ProviderList: Readonly<ProviderInfo[]> = [
|
|
|
|
|
{
|
|
|
|
|
key: "addic7ed",
|
|
|
|
|
description: "Requires Anti-Captcha Provider or cookies",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
cookies: "",
|
|
|
|
|
user_agent: "",
|
|
|
|
|
vip: false,
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
vip: "VIP",
|
|
|
|
|
cookies:
|
|
|
|
|
"Cookies, e.g., PHPSESSID=abc; wikisubtitlesuser=xyz; wikisubtitlespass=efg",
|
|
|
|
|
user_agent:
|
|
|
|
|
"User-Agent, e.g., Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0",
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "cookies",
|
|
|
|
|
name: "Cookies, e.g., PHPSESSID=abc; wikisubtitlesuser=xyz; wikisubtitlespass=efg",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "user_agent",
|
|
|
|
|
name: "User-Agent, e.g., Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "vip",
|
|
|
|
|
name: "VIP",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{ key: "argenteam", description: "LATAM Spanish Subtitles Provider" },
|
|
|
|
|
{
|
|
|
|
|
key: "assrt",
|
|
|
|
|
description: "Chinese Subtitles Provider",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
token: "",
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "token",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "betaseries",
|
|
|
|
|
name: "BetaSeries",
|
|
|
|
|
description: "French / English Provider for TV Shows Only",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
token: "",
|
|
|
|
|
},
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
token: "API KEY",
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "token",
|
|
|
|
|
name: "API KEY",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "bsplayer",
|
|
|
|
@ -62,24 +85,38 @@ export const ProviderList: Readonly<ProviderInfo[]> = [
|
|
|
|
|
key: "embeddedsubtitles",
|
|
|
|
|
name: "Embedded Subtitles",
|
|
|
|
|
description: "Embedded Subtitles from your Media Files",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
include_srt: true,
|
|
|
|
|
include_ass: true,
|
|
|
|
|
hi_fallback: false,
|
|
|
|
|
mergerfs_mode: false,
|
|
|
|
|
timeout: 600,
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "include_srt",
|
|
|
|
|
name: "Include SRT",
|
|
|
|
|
defaultValue: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "include_ass",
|
|
|
|
|
name: "Include ASS (will be converted to SRT)",
|
|
|
|
|
defaultValue: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "hi_fallback",
|
|
|
|
|
name: "Use HI subtitles as a fallback (don't enable it if you have a HI language profile)",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "mergerfs_mode",
|
|
|
|
|
name: "[EXPERIMENTAL] Ignore cloud video files from rclone/mergerfs",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "timeout",
|
|
|
|
|
defaultValue: 600,
|
|
|
|
|
name: "Extraction timeout in seconds",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
message:
|
|
|
|
|
"Warning for cloud users: this provider needs to read the entire file in order to extract subtitles.",
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
include_srt: "Include SRT",
|
|
|
|
|
include_ass: "Include ASS (will be converted to SRT)",
|
|
|
|
|
hi_fallback:
|
|
|
|
|
"Use HI subtitles as a fallback (don't enable it if you have a HI language profile)",
|
|
|
|
|
mergerfs_mode:
|
|
|
|
|
"[EXPERIMENTAL] Ignore cloud video files from rclone/mergerfs",
|
|
|
|
|
timeout: "Extraction timeout in seconds",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "gestdown",
|
|
|
|
@ -101,39 +138,53 @@ export const ProviderList: Readonly<ProviderInfo[]> = [
|
|
|
|
|
key: "legendasdivx",
|
|
|
|
|
name: "LegendasDivx",
|
|
|
|
|
description: "Brazilian / Portuguese Subtitles Provider",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
skip_wrong_fps: false,
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
skip_wrong_fps: "Skip Wrong FPS",
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
{ type: "switch", key: "skip_wrong_fps", name: "Skip Wrong FPS" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "ktuvit",
|
|
|
|
|
name: "Ktuvit",
|
|
|
|
|
description: "Hebrew Subtitles Provider",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
email: "",
|
|
|
|
|
hashed_password: "",
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "email",
|
|
|
|
|
},
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
hashed_password: "Hashed Password",
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "hashed_password",
|
|
|
|
|
name: "Hashed Password",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "legendastv",
|
|
|
|
|
name: "LegendasTV",
|
|
|
|
|
description: "Brazilian / Portuguese Subtitles Provider",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
featured_only: false,
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
featured_only: "Only Download Featured",
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "featured_only",
|
|
|
|
|
name: "Only Download Featured",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{ key: "napiprojekt", description: "Polish Subtitles Provider" },
|
|
|
|
|
{
|
|
|
|
@ -141,50 +192,77 @@ export const ProviderList: Readonly<ProviderInfo[]> = [
|
|
|
|
|
description: "Polish Subtitles Provider",
|
|
|
|
|
message:
|
|
|
|
|
"The provided credentials must have API access. Leave empty to use the defaults.",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{ key: "nekur", description: "Latvian Subtitles Provider" },
|
|
|
|
|
{
|
|
|
|
|
key: "opensubtitles",
|
|
|
|
|
name: "OpenSubtitles.org",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
vip: false,
|
|
|
|
|
ssl: false,
|
|
|
|
|
skip_wrong_fps: false,
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
vip: "VIP",
|
|
|
|
|
ssl: "Use SSL",
|
|
|
|
|
skip_wrong_fps: "Skip Wrong FPS",
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "vip",
|
|
|
|
|
name: "VIP",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "ssl",
|
|
|
|
|
name: "Use SSL",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "skip_wrong_fps",
|
|
|
|
|
name: "Skip Wrong FPS",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "opensubtitlescom",
|
|
|
|
|
name: "OpenSubtitles.com",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
use_hash: false,
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
use_hash: "Use Hash",
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "use_hash",
|
|
|
|
|
name: "Use Hash",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "podnapisi",
|
|
|
|
|
name: "Podnapisi",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
verify_ssl: true,
|
|
|
|
|
},
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
verify_ssl:
|
|
|
|
|
"Verify SSL certificate (disabling introduce a MitM attack risk)",
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "verify_ssl",
|
|
|
|
|
name: "Verify SSL certificate (disabling introduce a MitM attack risk)",
|
|
|
|
|
defaultValue: true,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "regielive",
|
|
|
|
@ -220,10 +298,16 @@ export const ProviderList: Readonly<ProviderInfo[]> = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "subscene",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{ key: "subscenter" },
|
|
|
|
|
{
|
|
|
|
@ -251,10 +335,16 @@ export const ProviderList: Readonly<ProviderInfo[]> = [
|
|
|
|
|
{ key: "supersubtitles" },
|
|
|
|
|
{
|
|
|
|
|
key: "titlovi",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "titrari",
|
|
|
|
@ -272,14 +362,21 @@ export const ProviderList: Readonly<ProviderInfo[]> = [
|
|
|
|
|
key: "titulky",
|
|
|
|
|
name: "Titulky.com",
|
|
|
|
|
description: "CZ/SK Subtitles Provider. Available only with VIP",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
approved_only: false,
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
keyNameOverride: {
|
|
|
|
|
approved_only: "Skip unapproved subtitles",
|
|
|
|
|
{
|
|
|
|
|
type: "switch",
|
|
|
|
|
key: "approved_only",
|
|
|
|
|
name: "Skip unapproved subtitles",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{ key: "tvsubtitles", name: "TVSubtitles" },
|
|
|
|
|
{ key: "wizdom", description: "Wizdom.xyz Subtitles Provider." },
|
|
|
|
@ -287,10 +384,16 @@ export const ProviderList: Readonly<ProviderInfo[]> = [
|
|
|
|
|
key: "xsubs",
|
|
|
|
|
name: "XSubs",
|
|
|
|
|
description: "Greek Subtitles Provider",
|
|
|
|
|
defaultKey: {
|
|
|
|
|
username: "",
|
|
|
|
|
password: "",
|
|
|
|
|
inputs: [
|
|
|
|
|
{
|
|
|
|
|
type: "text",
|
|
|
|
|
key: "username",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "password",
|
|
|
|
|
key: "password",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "yavkanet",
|
|
|
|
|