Skip to content

Commit

Permalink
Remove legendastv provider due to the website closing down
Browse files Browse the repository at this point in the history
closes #1065
  • Loading branch information
ptrcnull committed Feb 26, 2024
1 parent af3b8bd commit 4130a48
Show file tree
Hide file tree
Showing 31 changed files with 18 additions and 76,690 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Changelog
* Add support for episodes with season 0 in podnapisi provider
* Disabled addic7ed provider due to required captcha for authentication
* Disabled shooter provider since it doesn't filter by language
* Remove legendastv provider


2.1.0
Expand Down
5 changes: 0 additions & 5 deletions docs/api/providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ Addic7ed
.. automodule:: subliminal.providers.addic7ed
:private-members:

LegendasTv
----------
.. automodule:: subliminal.providers.legendastv
:private-members:

NapiProjekt
-----------
.. automodule:: subliminal.providers.napiprojekt
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def find_version(*file_paths):
'subliminal.providers': [
'addic7ed = subliminal.providers.addic7ed:Addic7edProvider',
'argenteam = subliminal.providers.argenteam:ArgenteamProvider',
'legendastv = subliminal.providers.legendastv:LegendasTVProvider',
'napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider',
'opensubtitles = subliminal.providers.opensubtitles:OpenSubtitlesProvider',
'podnapisi = subliminal.providers.podnapisi:PodnapisiProvider',
Expand All @@ -87,7 +86,6 @@ def find_version(*file_paths):
],
'babelfish.language_converters': [
'addic7ed = subliminal.converters.addic7ed:Addic7edConverter',
'legendastv = subliminal.converters.legendastv:LegendasTVConverter',
'shooter = subliminal.converters.shooter:ShooterConverter',
'thesubdb = subliminal.converters.thesubdb:TheSubDBConverter',
'tvsubtitles = subliminal.converters.tvsubtitles:TVsubtitlesConverter'
Expand Down
4 changes: 2 additions & 2 deletions subliminal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ 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('--legendastv', type=click.STRING, nargs=2, metavar='USERNAME PASSWORD', help='LegendasTV configuration.', hidden=True)
@click.option('--opensubtitles', type=click.STRING, nargs=2, metavar='USERNAME PASSWORD',
help='OpenSubtitles configuration.')
@click.option('--omdb', type=click.STRING, nargs=1, metavar='APIKEY', help='OMDB API key.')
Expand Down Expand Up @@ -276,7 +276,7 @@ def subliminal(ctx, addic7ed, legendastv, opensubtitles, omdb, cache_dir, debug)
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]}
logger.warning('Credentials for legendastv ignored - provider is no longer supported')
if opensubtitles:
ctx.obj['provider_configs']['opensubtitles'] = {'username': opensubtitles[0], 'password': opensubtitles[1]}
ctx.obj['provider_configs']['opensubtitlesvip'] = {'username': opensubtitles[0], 'password': opensubtitles[1]}
Expand Down
27 changes: 0 additions & 27 deletions subliminal/converters/legendastv.py

This file was deleted.

1 change: 0 additions & 1 deletion 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 = RegistrableExtensionManager('subliminal.providers', [
'addic7ed = subliminal.providers.addic7ed:Addic7edProvider',
'argenteam = subliminal.providers.argenteam:ArgenteamProvider',
'legendastv = subliminal.providers.legendastv:LegendasTVProvider',
'napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider',
'opensubtitles = subliminal.providers.opensubtitles:OpenSubtitlesProvider',
'opensubtitlesvip = subliminal.providers.opensubtitles:OpenSubtitlesVipProvider',
Expand Down
Loading

0 comments on commit 4130a48

Please sign in to comment.