no log: update legendasdivx subtitle id property

This commit is contained in:
Vitiko 2022-04-26 21:34:08 -04:00
parent 23e847290b
commit 4e6fd61188
1 changed files with 4 additions and 1 deletions

View File

@ -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()