mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 17:17:12 +00:00
Merge pull request #873 from josdion/development
do not show release info if it contains only whitespace characters
This commit is contained in:
commit
08a38f6505
1 changed files with 7 additions and 2 deletions
|
@ -346,10 +346,15 @@ def manual_search(path, language, hi, forced, providers, providers_auth, sceneNa
|
||||||
not_matched = scores - matches
|
not_matched = scores - matches
|
||||||
s.score = score
|
s.score = score
|
||||||
|
|
||||||
releases = ['n/a']
|
releases = []
|
||||||
if hasattr(s, 'release_info'):
|
if hasattr(s, 'release_info'):
|
||||||
if s.release_info is not None:
|
if s.release_info is not None:
|
||||||
releases = s.release_info.split(',')
|
for s_item in s.release_info.split(','):
|
||||||
|
if s_item.strip():
|
||||||
|
releases.append(s_item)
|
||||||
|
|
||||||
|
if len(releases) == 0:
|
||||||
|
releases = ['n/a']
|
||||||
|
|
||||||
subtitles_list.append(
|
subtitles_list.append(
|
||||||
dict(score=round((score / max_score * 100), 2),
|
dict(score=round((score / max_score * 100), 2),
|
||||||
|
|
Loading…
Reference in a new issue