mirror of https://github.com/morpheus65535/bazarr
Force unicode for video path
This commit is contained in:
parent
33954f2459
commit
e023e82e44
|
@ -162,7 +162,7 @@ def download_subtitle(path, language, hi, forced, providers, providers_auth, sce
|
||||||
language_hook=None
|
language_hook=None
|
||||||
"""
|
"""
|
||||||
|
|
||||||
video = get_video(path, title, sceneName, use_scenename, use_mediainfo, providers=providers, media_type=media_type)
|
video = get_video(force_unicode(path), title, sceneName, use_scenename, use_mediainfo, providers=providers, media_type=media_type)
|
||||||
if video:
|
if video:
|
||||||
min_score, max_score, scores = get_scores(video, media_type, min_score_movie_perc=int(minimum_score_movie),
|
min_score, max_score, scores = get_scores(video, media_type, min_score_movie_perc=int(minimum_score_movie),
|
||||||
min_score_series_perc=int(minimum_score))
|
min_score_series_perc=int(minimum_score))
|
||||||
|
@ -318,7 +318,7 @@ def manual_search(path, language, hi, forced, providers, providers_auth, sceneNa
|
||||||
use_postprocessing = settings.general.getboolean('use_postprocessing')
|
use_postprocessing = settings.general.getboolean('use_postprocessing')
|
||||||
postprocessing_cmd = settings.general.postprocessing_cmd
|
postprocessing_cmd = settings.general.postprocessing_cmd
|
||||||
|
|
||||||
video = get_video(path, title, sceneName, use_scenename, use_mediainfo, providers=providers, media_type=media_type)
|
video = get_video(force_unicode(path), title, sceneName, use_scenename, use_mediainfo, providers=providers, media_type=media_type)
|
||||||
if video:
|
if video:
|
||||||
min_score, max_score, scores = get_scores(video, media_type, min_score_movie_perc=int(minimum_score_movie),
|
min_score, max_score, scores = get_scores(video, media_type, min_score_movie_perc=int(minimum_score_movie),
|
||||||
min_score_series_perc=int(minimum_score))
|
min_score_series_perc=int(minimum_score))
|
||||||
|
@ -389,7 +389,7 @@ def manual_download_subtitle(path, language, hi, forced, subtitle, provider, pro
|
||||||
use_postprocessing = settings.general.getboolean('use_postprocessing')
|
use_postprocessing = settings.general.getboolean('use_postprocessing')
|
||||||
postprocessing_cmd = settings.general.postprocessing_cmd
|
postprocessing_cmd = settings.general.postprocessing_cmd
|
||||||
single = settings.general.getboolean('single_language')
|
single = settings.general.getboolean('single_language')
|
||||||
video = get_video(path, title, sceneName, use_scenename, use_mediainfo, providers={provider}, media_type=media_type)
|
video = get_video(force_unicode(path), title, sceneName, use_scenename, use_mediainfo, providers={provider}, media_type=media_type)
|
||||||
if video:
|
if video:
|
||||||
min_score, max_score, scores = get_scores(video, media_type)
|
min_score, max_score, scores = get_scores(video, media_type)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue