Skip to content

Commit

Permalink
Removed leftover from legendas.tv provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Jun 15, 2023
1 parent d4262e5 commit fc01267
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 595 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ If you need something that is not already part of Bazarr, feel free to create a
- GreekSubtitles
- Hosszupuska
- LegendasDivx
- LegendasTV
- Karagarga.in
- Ktuvit (Get `hashed_password` using method described [here](https://github.com/XBMCil/service.subtitles.ktuvit))
- Napiprojekt
Expand Down
5 changes: 0 additions & 5 deletions bazarr/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ def base_url_slash_cleaner(uri):
'email': '',
'hashed_password': ''
},
'legendastv': {
'username': '',
'password': '',
'featured_only': 'False'
},
'xsubs': {
'username': '',
'password': ''
Expand Down
9 changes: 1 addition & 8 deletions bazarr/app/get_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def provider_throttle_map():
}


PROVIDERS_FORCED_OFF = ["addic7ed", "tvsubtitles", "legendasdivx", "legendastv", "napiprojekt", "shooter",
PROVIDERS_FORCED_OFF = ["addic7ed", "tvsubtitles", "legendasdivx", "napiprojekt", "shooter",
"hosszupuska", "supersubtitles", "titlovi", "argenteam", "assrt", "subscene"]

throttle_count = {}
Expand Down Expand Up @@ -246,13 +246,6 @@ def get_providers_auth():
'skip_wrong_fps'
),
},
'legendastv': {
'username': settings.legendastv.username,
'password': settings.legendastv.password,
'featured_only': settings.legendastv.getboolean(
'featured_only'
),
},
'xsubs': {
'username': settings.xsubs.username,
'password': settings.xsubs.password,
Expand Down
20 changes: 0 additions & 20 deletions frontend/src/pages/Settings/Providers/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,26 +185,6 @@ export const ProviderList: Readonly<ProviderInfo[]> = [
},
],
},
{
key: "legendastv",
name: "LegendasTV",
description: "Brazilian / Portuguese Subtitles Provider",
inputs: [
{
type: "text",
key: "username",
},
{
type: "password",
key: "password",
},
{
type: "switch",
key: "featured_only",
name: "Only Download Featured",
},
],
},
{ key: "napiprojekt", description: "Polish Subtitles Provider" },
{
key: "whisperai",
Expand Down
5 changes: 0 additions & 5 deletions frontend/src/types/settings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ interface Settings {
opensubtitlescom: Settings.OpenSubtitlesCom;
addic7ed: Settings.Addic7ed;
legendasdivx: Settings.Legandasdivx;
legendastv: Settings.Legendastv;
xsubs: Settings.XSubs;
assrt: Settings.Assrt;
napisy24: Settings.Napisy24;
Expand Down Expand Up @@ -198,10 +197,6 @@ declare namespace Settings {
skip_wrong_fps: boolean;
}

interface Legendastv extends BaseProvider {
featured_only: boolean;
}

interface XSubs extends BaseProvider {}

interface Napisy24 extends BaseProvider {}
Expand Down
5 changes: 1 addition & 4 deletions libs/subliminal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,14 @@ def convert(self, value, param, ctx):
@click.group(context_settings={'max_content_width': 100}, epilog='Suggestions and bug reports are greatly appreciated: '
'https://github.com/Diaoul/subliminal/')
@click.option('--addic7ed', type=click.STRING, nargs=2, metavar='USERNAME PASSWORD', help='Addic7ed configuration.')
@click.option('--legendastv', type=click.STRING, nargs=2, metavar='USERNAME PASSWORD', help='LegendasTV configuration.')
@click.option('--opensubtitles', type=click.STRING, nargs=2, metavar='USERNAME PASSWORD',
help='OpenSubtitles configuration.')
@click.option('--cache-dir', type=click.Path(writable=True, file_okay=False), default=dirs.user_cache_dir,
show_default=True, expose_value=True, help='Path to the cache directory.')
@click.option('--debug', is_flag=True, help='Print useful information for debugging subliminal and for reporting bugs.')
@click.version_option(__version__)
@click.pass_context
def subliminal(ctx, addic7ed, legendastv, opensubtitles, cache_dir, debug):
def subliminal(ctx, addic7ed, opensubtitles, cache_dir, debug):
"""Subtitles, faster than your thoughts."""
# create cache directory
try:
Expand All @@ -249,8 +248,6 @@ def subliminal(ctx, addic7ed, legendastv, opensubtitles, cache_dir, debug):
ctx.obj = {'provider_configs': {}}
if addic7ed:
ctx.obj['provider_configs']['addic7ed'] = {'username': addic7ed[0], 'password': addic7ed[1]}
if legendastv:
ctx.obj['provider_configs']['legendastv'] = {'username': legendastv[0], 'password': legendastv[1]}
if opensubtitles:
ctx.obj['provider_configs']['opensubtitles'] = {'username': opensubtitles[0], 'password': opensubtitles[1]}

Expand Down
28 changes: 0 additions & 28 deletions libs/subliminal/converters/legendastv.py

This file was deleted.

1 change: 0 additions & 1 deletion libs/subliminal/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def unregister(self, entry_point):
#: Provider manager
provider_manager = RegistrableExtensionManager('subliminal.providers', [
'addic7ed = subliminal.providers.addic7ed:Addic7edProvider',
'legendastv = subliminal.providers.legendastv:LegendasTVProvider',
'opensubtitles = subliminal.providers.opensubtitles:OpenSubtitlesProvider',
'podnapisi = subliminal.providers.podnapisi:PodnapisiProvider',
'shooter = subliminal.providers.shooter:ShooterProvider',
Expand Down

0 comments on commit fc01267

Please sign in to comment.