Fix subliminal's addic7ed provider

This commit is contained in:
Labrys of Knossos 2022-12-09 21:38:21 -05:00
commit 160240fda4
2 changed files with 1 additions and 4 deletions

View file

@ -58,9 +58,6 @@ class RegistrableExtensionManager(ExtensionManager):
raise ValueError('Extension already registered')
ep = EntryPoint.parse(entry_point)
if ep.name in self.names():
raise ValueError('An extension with the same name already exist')
ext = self._load_one_plugin(ep, False, (), {}, False)
self.extensions.append(ext)
if self._extensions_by_name is not None:

View file

@ -231,7 +231,7 @@ class Addic7edProvider(Provider):
def query(self, show_id, series, season, year=None, country=None):
# get the page of the season of the show
logger.info('Getting the page of show id %d, season %d', show_id, season)
r = self.session.get(self.server_url + 'show/%d' % show_id, params={'season': season}, timeout=10)
r = self.session.get(self.server_url + 'show/%d' % show_id, params={'season': season}, timeout=10)
r.raise_for_status()
if not r.content: