no log: update get_providers

This will avoid calling get_binary on each pool
update/get_providers_auth() call.
This commit is contained in:
Vitiko 2022-01-08 15:51:42 -04:00
parent 18d6b99310
commit bf09ae8ec1
1 changed files with 6 additions and 2 deletions

View File

@ -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,
}
}