summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorVitiko <[email protected]>2022-04-26 21:34:08 -0400
committerVitiko <[email protected]>2022-04-26 21:34:08 -0400
commit4e6fd61188cdee4d7065a4f27740ee23a66ce255 (patch)
treede23f029fa8c68baca85248831e06705cfb07a5c /libs
parent23e847290bc5353cf3b6e21a1e81880cfc17e31d (diff)
downloadbazarr-4e6fd61188cdee4d7065a4f27740ee23a66ce255.tar.gz
bazarr-4e6fd61188cdee4d7065a4f27740ee23a66ce255.zip
no log: update legendasdivx subtitle id property
Diffstat (limited to 'libs')
-rw-r--r--libs/subliminal_patch/providers/legendasdivx.py5
1 files changed, 4 insertions, 1 deletions
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()