Fixed issues with release_info for some providers. #1644

pull/1646/head v1.0.2-beta.10
morpheus65535 3 years ago
parent 46a8bd2909
commit 2faed982d9

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save