From a0dc67f74b1f6e956fcc188eb5f8dcaef4f21b6f Mon Sep 17 00:00:00 2001 From: lambda <> Date: Wed, 26 Nov 2025 03:52:46 +0100 Subject: [PATCH] NBLA: Fix subtitle handling for unshackle --- NBLA/__init__.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/NBLA/__init__.py b/NBLA/__init__.py index 03c85b3..820e8a2 100644 --- a/NBLA/__init__.py +++ b/NBLA/__init__.py @@ -24,13 +24,7 @@ class NebulaSubtitle(Subtitle): STYLE_RE = re.compile('::cue\\(v\\[voice="(.+)"\\]\\) { color: ([^;]+); (.*)}') RGB_RE = re.compile("rgb\\((.+), ?(.+), ?(.+)\\)") - def download( - self, - session: requests.Session, - prepare_drm: partial, - max_workers: Optional[int] = None, - progress: Optional[partial] = None - ): + def download(self, *args, **kwargs): # Track.download chooses file extension based on class name so use # this hack to keep it happy self.__class__.__name__ = "Subtitle" @@ -38,7 +32,7 @@ class NebulaSubtitle(Subtitle): # Skip Subtitle.download and use Track.download directly. The pycaption # calls in Subtitle.download are not needed here and mangle the WebVTT # styling Nebula uses - Track.download(self, session, prepare_drm, max_workers, progress) + Track.download(self, *args, **kwargs) def convert(self, codec: Subtitle.Codec) -> Path: if codec != Subtitle.Codec.SubRip: