mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-01 04:22:07 +08:00
Update embeddedsubtitles provider: use original_path instead of name
This commit is contained in:
parent
d0b93a7b35
commit
048307e429
2 changed files with 6 additions and 1 deletions
|
@ -142,7 +142,11 @@ class EmbeddedSubtitlesProvider(Provider):
|
|||
return subtitles
|
||||
|
||||
def list_subtitles(self, video, languages):
|
||||
return self.query(video.name, languages)
|
||||
if not os.path.isfile(video.original_path):
|
||||
logger.debug("Ignoring inexistent file: %s", video.original_path)
|
||||
return []
|
||||
|
||||
return self.query(video.original_path, languages)
|
||||
|
||||
def download_subtitle(self, subtitle):
|
||||
path = self._get_subtitle_path(subtitle)
|
||||
|
|
|
@ -28,3 +28,4 @@ class Video(Video_):
|
|||
self.external_subtitle_languages = set()
|
||||
self.streaming_service = streaming_service
|
||||
self.edition = edition
|
||||
self.original_path = name
|
||||
|
|
Loading…
Reference in a new issue