mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-15 19:27:42 +08:00
no log: update get_providers
This will avoid calling get_binary on each pool update/get_providers_auth() call.
This commit is contained in:
parent
18d6b99310
commit
bf09ae8ec1
1 changed files with 6 additions and 2 deletions
|
@ -123,6 +123,10 @@ def get_providers():
|
|||
return providers_list
|
||||
|
||||
|
||||
_FFPROBE_BINARY = get_binary("ffprobe")
|
||||
_FFMPEG_BINARY= get_binary("ffmpeg")
|
||||
|
||||
|
||||
def get_providers_auth():
|
||||
return {
|
||||
'addic7ed': {
|
||||
|
@ -208,8 +212,8 @@ def get_providers_auth():
|
|||
'include_srt': settings.embeddedsubtitles.getboolean('include_srt'),
|
||||
'hi_fallback': settings.embeddedsubtitles.getboolean('hi_fallback'),
|
||||
'cache_dir': os.path.join(args.config_dir, "cache"),
|
||||
'ffprobe_path': get_binary("ffprobe"),
|
||||
'ffmpeg_path': get_binary("ffmpeg"),
|
||||
'ffprobe_path': _FFPROBE_BINARY,
|
||||
'ffmpeg_path': _FFMPEG_BINARY,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue