From c17d127323cd4c62a075e3c6d26719b700e73d5a Mon Sep 17 00:00:00 2001 From: JayZed Date: Mon, 8 Jan 2024 07:35:58 -0500 Subject: [PATCH] no log: multiple cosmetic providers fixes * Made modal dialog slightly wider Made modal dialog slightly wider to avoid annoying horizontal scrolling. * Updated and sorted provider list - added and removed providers as appropriate - updated descriptions - added newlines to long descriptions to make them fit better in modal dialog without horizontal scrolling - sorted list in place as this list is exposed verbatim in UI --- README.md | 7 +- .../pages/Settings/Providers/components.tsx | 1 + frontend/src/pages/Settings/Providers/list.ts | 109 +++++++++--------- 3 files changed, 60 insertions(+), 57 deletions(-) diff --git a/README.md b/README.md index 2ec370c1a..4f6f8725a 100644 --- a/README.md +++ b/README.md @@ -54,16 +54,18 @@ If you need something that is not already part of Bazarr, feel free to create a - BSplayer - Embedded Subtitles - Gestdown.info +- GreekSubs - GreekSubtitles - HDBits.org - Hosszupuska -- LegendasDivx - Karagarga.in - Ktuvit (Get `hashed_password` using method described [here](https://github.com/XBMCil/service.subtitles.ktuvit)) +- LegendasDivx - Napiprojekt - Napisy24 - Nekur -- OpenSubtitles.org +- OpenSubtitles.com +- OpenSubtitles.org (VIP users only) - Podnapisi - RegieLive - Sous-Titres.eu @@ -79,7 +81,6 @@ If you need something that is not already part of Bazarr, feel free to create a - Subtitrari-noi.ro - subtitri.id.lv - Subtitulamos.tv -- Sucha - Supersubtitles - Titlovi - Titrari.ro diff --git a/frontend/src/pages/Settings/Providers/components.tsx b/frontend/src/pages/Settings/Providers/components.tsx index 1c38ad59c..46252a03d 100644 --- a/frontend/src/pages/Settings/Providers/components.tsx +++ b/frontend/src/pages/Settings/Providers/components.tsx @@ -314,4 +314,5 @@ const ProviderTool: FunctionComponent = ({ const ProviderModal = withModal(ProviderTool, "provider-tool", { title: "Provider", + size: "calc(50vw)", }); diff --git a/frontend/src/pages/Settings/Providers/list.ts b/frontend/src/pages/Settings/Providers/list.ts index 49d6af981..ba91cd580 100644 --- a/frontend/src/pages/Settings/Providers/list.ts +++ b/frontend/src/pages/Settings/Providers/list.ts @@ -90,7 +90,7 @@ export const ProviderList: Readonly = [ key: "bsplayer", name: "BSplayer", description: - "Provider removed from Bazarr because it was causing too much issues so it will always return no subtitles", + "Provider removed from Bazarr because it was causing too many issues.\nIt will always return no subtitles.", }, { key: "embeddedsubtitles", @@ -157,22 +157,6 @@ export const ProviderList: Readonly = [ ], }, { key: "hosszupuska", description: "Hungarian Subtitles Provider" }, - { - key: "legendasdivx", - name: "LegendasDivx", - description: "Brazilian / Portuguese Subtitles Provider", - inputs: [ - { - type: "text", - key: "username", - }, - { - type: "password", - key: "password", - }, - { type: "switch", key: "skip_wrong_fps", name: "Skip Wrong FPS" }, - ], - }, { key: "karagarga", name: "Karagarga.in", @@ -214,32 +198,23 @@ export const ProviderList: Readonly = [ }, ], }, - { key: "napiprojekt", description: "Polish Subtitles Provider" }, { - key: "whisperai", - name: "Whisper", - description: "AI Generated Subtitles powered by Whisper", + key: "legendasdivx", + name: "LegendasDivx", + description: "Brazilian / Portuguese Subtitles Provider", inputs: [ { type: "text", - key: "endpoint", - defaultValue: "http://127.0.0.1:9000", - name: "Whisper ASR Docker Endpoint", - }, - { - type: "text", - key: "timeout", - defaultValue: 3600, - name: "Transcription/translation timeout in seconds", + key: "username", }, { - type: "select", - key: "loglevel", - name: "Logging level", - options: logLevelOptions, + type: "password", + key: "password", }, + { type: "switch", key: "skip_wrong_fps", name: "Skip Wrong FPS" }, ], }, + { key: "napiprojekt", description: "Polish Subtitles Provider" }, { key: "napisy24", description: "Polish Subtitles Provider", @@ -260,6 +235,7 @@ export const ProviderList: Readonly = [ { key: "opensubtitles", name: "OpenSubtitles.org", + description: "Only works if you have VIP status", inputs: [ { type: "text", @@ -325,7 +301,7 @@ export const ProviderList: Readonly = [ { key: "regielive", name: "RegieLive", - description: "Romanian Subtitles Provider.", + description: "Romanian Subtitles Provider", }, { key: "soustitreseu", @@ -333,11 +309,6 @@ export const ProviderList: Readonly = [ description: "Mostly French Subtitles Provider", }, { key: "subdivx", description: "LATAM Spanish / Spanish Subtitles Provider" }, - { - key: "subssabbz", - name: "Subs.sab.bz", - description: "Bulgarian Subtitles Provider", - }, { key: "subf2m", name: "subf2m.co", @@ -357,16 +328,21 @@ export const ProviderList: Readonly = [ ], message: "Make sure to use a unique and credible user agent.", }, + { + key: "subssabbz", + name: "Subs.sab.bz", + description: "Bulgarian Subtitles Provider", + }, { key: "subs4free", name: "Subs4Free", - description: "Greek Subtitles Provider. Broken, may not works for some.", + description: "Greek Subtitles Provider. Broken, may not work for some.", }, { key: "subs4series", name: "Subs4Series", description: - "Greek Subtitles Provider. Requires anti-captcha provider to solve captchas for each download.", + "Greek Subtitles Provider.\nRequires anti-captcha provider to solve captchas for each download.", }, { key: "subscene", @@ -380,9 +356,9 @@ export const ProviderList: Readonly = [ key: "password", }, ], - description: "Broken, may not works for some. Use subf2m instead.", + description: "Broken, may not work for some. Use subf2m instead.", }, - { key: "subscenter" }, + { key: "subscenter", description: "Hebrew Subtitles Provider" }, { key: "subsunacs", name: "Subsunacs.net", @@ -423,17 +399,10 @@ export const ProviderList: Readonly = [ name: "Titrari.ro", description: "Mostly Romanian Subtitles Provider", }, - { - key: "tusubtitulo", - name: "Tusubtitulo.com", - description: - "Provider requested to be removed from Bazarr so it will always return no subtitles. Could potentially come back in the future with an upcoming premium account.", - // "LATAM Spanish / Spanish / English Subtitles Provider for TV Shows", - }, { key: "titulky", name: "Titulky.com", - description: "CZ/SK Subtitles Provider. Available only with VIP", + description: "CZ/SK Subtitles Provider. Available only with VIP.", inputs: [ { type: "text", @@ -450,8 +419,40 @@ export const ProviderList: Readonly = [ }, ], }, + { + key: "tusubtitulo", + name: "Tusubtitulo.com", + description: + "Provider requested to be removed from Bazarr, so it will always return no subtitles.\nCould potentially come back in the future with an upcoming premium account.", + // "LATAM Spanish / Spanish / English Subtitles Provider for TV Shows", + }, { key: "tvsubtitles", name: "TVSubtitles" }, - { key: "wizdom", description: "Wizdom.xyz Subtitles Provider." }, + { + key: "whisperai", + name: "Whisper", + description: "AI Generated Subtitles powered by Whisper", + inputs: [ + { + type: "text", + key: "endpoint", + defaultValue: "http://127.0.0.1:9000", + name: "Whisper ASR Docker Endpoint", + }, + { + type: "text", + key: "timeout", + defaultValue: 3600, + name: "Transcription/translation timeout in seconds", + }, + { + type: "select", + key: "loglevel", + name: "Logging level", + options: logLevelOptions, + }, + ], + }, + { key: "wizdom", description: "Wizdom.xyz Subtitles Provider" }, { key: "xsubs", name: "XSubs", @@ -476,6 +477,6 @@ export const ProviderList: Readonly = [ { key: "zimuku", name: "Zimuku", - description: "Chinese Subtitles Provider. Anti-captcha required", + description: "Chinese Subtitles Provider. Anti-captcha required.", }, ];