From 4e6fd61188cdee4d7065a4f27740ee23a66ce255 Mon Sep 17 00:00:00 2001 From: Vitiko Date: Tue, 26 Apr 2022 21:34:08 -0400 Subject: [PATCH] no log: update legendasdivx subtitle id property --- libs/subliminal_patch/providers/legendasdivx.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/subliminal_patch/providers/legendasdivx.py b/libs/subliminal_patch/providers/legendasdivx.py index c182b8fcd..e808536f4 100644 --- a/libs/subliminal_patch/providers/legendasdivx.py +++ b/libs/subliminal_patch/providers/legendasdivx.py @@ -47,7 +47,10 @@ class LegendasdivxSubtitle(Subtitle): @property def id(self): - return f"legendasdivx_{self.video.imdb_id}_{self.release_info}_{self.uploader}" + try: + return self.page_link.split("=")[-1] + except IndexError: + return f"legendasdivx_{self.video.imdb_id}_{self.release_info}_{self.uploader}" def get_matches(self, video): matches = set()