Fixed issues with release_info for some providers. #1644

This commit is contained in:
morpheus65535 2021-12-19 09:56:13 -05:00
parent 46a8bd2909
commit 2faed982d9
11 changed files with 11 additions and 24 deletions

View File

@ -36,6 +36,7 @@ class BetaSeriesSubtitle(Subtitle):
self.matches = matches
self.source = source
self.video_release_group = video_release_group
self.release_info = video_name
@property
def id(self):
@ -45,10 +46,6 @@ class BetaSeriesSubtitle(Subtitle):
def download_link(self):
return self.download_url
@property
def release_info(self):
return self.video_name
def get_matches(self, video):
matches = self.matches

View File

@ -36,15 +36,12 @@ class BSPlayerSubtitle(Subtitle):
self.subtype = subtype
self.video = video
self.subid = subid
self.release_info = filename
@property
def id(self):
return self.subid
@property
def release_info(self):
return self.filename
def get_matches(self, video):
matches = set()
matches |= guess_matches(video, guessit(self.filename))

View File

@ -28,6 +28,7 @@ class GreekSubtitlesSubtitle(Subtitle):
self.download_link = download_link
self.hearing_impaired = None
self.encoding = 'windows-1253'
self.release_info = version
@property
def id(self):

View File

@ -50,6 +50,7 @@ class KtuvitSubtitle(Subtitle):
self.ktuvit_id = ktuvit_id
self.subtitle_id = subtitle_id
self.release = release
self.release_info = release
def __repr__(self):
return "<%s [%s] %r [%s:%s]>" % (
@ -64,10 +65,6 @@ class KtuvitSubtitle(Subtitle):
def id(self):
return str(self.subtitle_id)
@property
def release_info(self):
return self.release
def get_matches(self, video):
matches = set()
# episode

View File

@ -42,15 +42,12 @@ class LegendasdivxSubtitle(Subtitle):
self.uploader = data['uploader']
self.wrong_fps = False
self.skip_wrong_fps = skip_wrong_fps
self.release_info = self.description
@property
def id(self):
return self.page_link
@property
def release_info(self):
return self.description
def get_matches(self, video):
matches = set()

View File

@ -26,6 +26,7 @@ class Napisy24Subtitle(Subtitle):
self.hash = hash
self.imdb_id = imdb_id
self.napis_id = napis_id
self.release_info = '' # TODO Try to get the release info from parsing the page
@property
def id(self):

View File

@ -39,6 +39,7 @@ class NekurSubtitle(Subtitle):
self.fps = fps
self.notes = notes
self.matches = None
self.release_info = notes
@property
def id(self):

View File

@ -29,15 +29,12 @@ class RegieLiveSubtitle(Subtitle):
self.video = video
self.rating = rating
self.language = language
self.release_info = filename
@property
def id(self):
return self.page_link
@property
def release_info(self):
return self.filename
def get_matches(self, video):
type_ = "movie" if isinstance(video, Movie) else "episode"
matches = set()

View File

@ -35,6 +35,7 @@ class SubtitriIdSubtitle(Subtitle):
self.year = year
self.imdb_id = imdb_id
self.matches = None
self.release_info = '' # TODO Try to get the release info from parsing the page
@property
def id(self):

View File

@ -35,15 +35,12 @@ class WizdomSubtitle(Subtitle):
self.imdb_id = imdb_id
self.subtitle_id = subtitle_id
self.release = release
self.release_info = release
@property
def id(self):
return str(self.subtitle_id)
@property
def release_info(self):
return self.release
def get_matches(self, video):
matches = set()
# episode

View File

@ -39,6 +39,7 @@ class XSubsSubtitle(Subtitle):
self.download_link = download_link
self.hearing_impaired = None
self.encoding = 'windows-1253'
self.release_info = version
@property
def id(self):