mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-03-10 05:43:12 +08:00
no log: pep improvement
This commit is contained in:
parent
b1af4caeeb
commit
3f7abc9ddc
1 changed files with 2 additions and 1 deletions
|
@ -293,7 +293,8 @@ class TitrariProvider(Provider, ProviderSubtitleArchiveMixin):
|
|||
else:
|
||||
subtitle.content = self.get_subtitle_from_archive(subtitle, archive)
|
||||
|
||||
def _get_subtitle_from_archive(self, subtitle, archive):
|
||||
@staticmethod
|
||||
def _get_subtitle_from_archive(subtitle, archive):
|
||||
for name in archive.namelist():
|
||||
# discard hidden files
|
||||
if os.path.split(name)[-1].startswith('.'):
|
||||
|
|
Loading…
Reference in a new issue