From 515282eed862c706f4ed2ace14f6c51eee631028 Mon Sep 17 00:00:00 2001 From: JayZed Date: Fri, 14 Mar 2025 17:43:29 -0400 Subject: [PATCH] Multiple providers - Removed overwrite of provider language object --- custom_libs/subliminal_patch/providers/avistaz_network.py | 1 - custom_libs/subliminal_patch/providers/bsplayer.py | 1 - custom_libs/subliminal_patch/providers/legendasdivx.py | 1 - custom_libs/subliminal_patch/providers/soustitreseu.py | 2 +- custom_libs/subliminal_patch/providers/subsynchro.py | 1 - custom_libs/subliminal_patch/providers/titulky.py | 1 - custom_libs/subliminal_patch/providers/tusubtitulo.py | 1 - 7 files changed, 1 insertion(+), 7 deletions(-) diff --git a/custom_libs/subliminal_patch/providers/avistaz_network.py b/custom_libs/subliminal_patch/providers/avistaz_network.py index 61afefcbf..5d47f333b 100644 --- a/custom_libs/subliminal_patch/providers/avistaz_network.py +++ b/custom_libs/subliminal_patch/providers/avistaz_network.py @@ -217,7 +217,6 @@ class AvistazNetworkSubtitle(Subtitle): super().__init__(language, page_link=page_link) self.provider_name = provider_name self.hearing_impaired = None - self.language = language self.filename = filename self.release_info = release self.page_link = page_link diff --git a/custom_libs/subliminal_patch/providers/bsplayer.py b/custom_libs/subliminal_patch/providers/bsplayer.py index de979a1b7..edf1efa21 100644 --- a/custom_libs/subliminal_patch/providers/bsplayer.py +++ b/custom_libs/subliminal_patch/providers/bsplayer.py @@ -30,7 +30,6 @@ class BSPlayerSubtitle(Subtitle): def __init__(self, language, filename, subtype, video, link, subid): super(BSPlayerSubtitle, self).__init__(language) - self.language = language self.filename = filename self.page_link = link self.subtype = subtype diff --git a/custom_libs/subliminal_patch/providers/legendasdivx.py b/custom_libs/subliminal_patch/providers/legendasdivx.py index e4d839ed2..00e39671c 100644 --- a/custom_libs/subliminal_patch/providers/legendasdivx.py +++ b/custom_libs/subliminal_patch/providers/legendasdivx.py @@ -36,7 +36,6 @@ class LegendasdivxSubtitle(Subtitle): def __init__(self, language, video, data, skip_wrong_fps=True): super(LegendasdivxSubtitle, self).__init__(language) - self.language = language self.page_link = data['link'] self.hits = data['hits'] self.exact_match = data['exact_match'] diff --git a/custom_libs/subliminal_patch/providers/soustitreseu.py b/custom_libs/subliminal_patch/providers/soustitreseu.py index 727a70458..86697f288 100644 --- a/custom_libs/subliminal_patch/providers/soustitreseu.py +++ b/custom_libs/subliminal_patch/providers/soustitreseu.py @@ -31,7 +31,7 @@ class SoustitreseuSubtitle(Subtitle): provider_name = 'soustitreseu' def __init__(self, language, video, name, data, content, is_perfect_match): - self.language = language + super().__init__(language) self.srt_filename = name self.release_info = name self.page_link = None diff --git a/custom_libs/subliminal_patch/providers/subsynchro.py b/custom_libs/subliminal_patch/providers/subsynchro.py index 9e3c629ec..aad0d6ae7 100644 --- a/custom_libs/subliminal_patch/providers/subsynchro.py +++ b/custom_libs/subliminal_patch/providers/subsynchro.py @@ -38,7 +38,6 @@ class SubsynchroSubtitle(Subtitle): language, hearing_impaired=False, page_link=download_url ) self.download_url = download_url - self.language = language self.file_type = file_type self.release_info = release_info self.filename = filename diff --git a/custom_libs/subliminal_patch/providers/titulky.py b/custom_libs/subliminal_patch/providers/titulky.py index 0e8a6b9a7..d18a644ff 100644 --- a/custom_libs/subliminal_patch/providers/titulky.py +++ b/custom_libs/subliminal_patch/providers/titulky.py @@ -66,7 +66,6 @@ class TitulkySubtitle(Subtitle): self.episode = episode self.releases = [release_info] self.release_info = release_info - self.language = language self.approved = approved self.page_link = page_link self.uploader = uploader diff --git a/custom_libs/subliminal_patch/providers/tusubtitulo.py b/custom_libs/subliminal_patch/providers/tusubtitulo.py index 979c28b5f..ff5af9633 100644 --- a/custom_libs/subliminal_patch/providers/tusubtitulo.py +++ b/custom_libs/subliminal_patch/providers/tusubtitulo.py @@ -37,7 +37,6 @@ class TuSubtituloSubtitle(Subtitle): super(TuSubtituloSubtitle, self).__init__( language, hearing_impaired=False, page_link=sub_dict["download_url"] ) - self.language = language self.sub_dict = sub_dict self.release_info = sub_dict["metadata"] self.found_matches = matches