Merge pull request #929 from josdion/development

Fix #928 - don't raise an exception in case of unsupported archive
pull/943/head^2
morpheus65535 5 years ago committed by GitHub
commit e4460b622f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -188,4 +188,5 @@ class SubsSabBzProvider(Provider):
elif is_zipfile(archive_stream): elif is_zipfile(archive_stream):
return self.process_archive_subtitle_files( ZipFile(archive_stream), language, video, link ) return self.process_archive_subtitle_files( ZipFile(archive_stream), language, video, link )
else: else:
raise ValueError('Not a valid archive') logger.error('Ignore unsupported archive %r', request.headers)
return []

@ -196,4 +196,5 @@ class SubsUnacsProvider(Provider):
elif is_zipfile(archive_stream): elif is_zipfile(archive_stream):
return self.process_archive_subtitle_files( ZipFile(archive_stream), language, video, link ) return self.process_archive_subtitle_files( ZipFile(archive_stream), language, video, link )
else: else:
raise ValueError('Not a valid archive') logger.error('Ignore unsupported archive %r', request.headers)
return []

@ -175,5 +175,5 @@ class YavkaNetProvider(Provider):
elif is_zipfile(archive_stream): elif is_zipfile(archive_stream):
return self.process_archive_subtitle_files( ZipFile(archive_stream), language, video, link ) return self.process_archive_subtitle_files( ZipFile(archive_stream), language, video, link )
else: else:
raise ValueError('Not a valid archive') logger.error('Ignore unsupported archive %r', request.headers)
return []

Loading…
Cancel
Save