bazarr/custom_libs/subliminal_patch/providers
JayZed 5749971d67
Improved whisper provider to not throttle when unsupported audio language is encountered. #2474
As we have noted before, bad input data should be no reason to throttle a provider.
In this case, if the input language was not supported by whisper, we were raising a ValueError that was never caught and causing an error in the whisper provider for which it was throttled.
Instead, we are now detecting this case and logging an error message.
However, given that the input language was not one of the 99 currently known to whisper, it's probably a mislabeled audio track. If the user desired output language is English, then we will tell whisper that the input audio is also English and ask it to transcribe it. Whisper does a very good job of transcribing almost anything to English, so it's worth a try.
This should address the throttling in issue #2474.
2024-04-29 22:11:47 -04:00
..
__init__.py
_agent_list.py
addic7ed.py
animetosho.py Fixed animetosho provider empty subtitle name. #2468 2024-04-24 20:27:04 -04:00
argenteamdump.py
assrt.py
avistaz.py
avistaz_network.py
betaseries.py Fixed betaseries provider when series doesn't exist. #2431 2024-03-18 20:28:19 -04:00
bsplayer.py
cinemaz.py
embeddedsubtitles.py Embedded Subtitles provider: handle FileNotFoundError 2024-04-23 17:20:36 -04:00
gestdown.py
greeksubs.py
greeksubtitles.py
hdbits.py Improved multiple exceptions catching and fixed some other providers issues 2024-03-16 22:10:50 -04:00
hosszupuska.py
karagarga.py
ktuvit.py Improved multiple exceptions catching and fixed some other providers issues 2024-03-16 22:10:50 -04:00
legendasdivx.py Added minimal Python 3.12 compatibility. Not yet official support. 2024-04-21 21:31:16 -04:00
mixins.py
napiprojekt.py
napisy24.py
nekur.py
opensubtitles.py
opensubtitlescom.py
podnapisi.py
regielive.py
shooter.py
soustitreseu.py
subdivx.py Improved multiple exceptions catching and fixed some other providers issues 2024-03-16 22:10:50 -04:00
subf2m.py
subs4free.py
subs4series.py
subscene.py
subscene_cloudscraper.py
subscenter.py
subssabbz.py
subsunacs.py
subsynchro.py
subtitrarinoi.py
subtitriid.py
subtitulamostv.py
supersubtitles.py
titlovi.py
titrari.py
titulky.py
tusubtitulo.py
tvsubtitles.py
utils.py
whisperai.py Improved whisper provider to not throttle when unsupported audio language is encountered. #2474 2024-04-29 22:11:47 -04:00
wizdom.py
xsubs.py
yavkanet.py
yifysubtitles.py
zimuku.py