mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-10 09:02:44 +08:00
Improved the fix uppercase mod to better deal with non-alphabetical characters
This commit is contained in:
parent
34d6185346
commit
26082780d5
1 changed files with 3 additions and 1 deletions
|
@ -191,7 +191,9 @@ class SubtitleModifications(object):
|
|||
sub = processor.process(sub)
|
||||
|
||||
if sub.strip():
|
||||
if not sub.isupper():
|
||||
# only consider alphabetic characters to determine if uppercase
|
||||
alpha_sub = ''.join([i for i in sub if i.isalpha()])
|
||||
if alpha_sub and not alpha_sub.isupper():
|
||||
return False
|
||||
|
||||
entry_used = True
|
||||
|
|
Loading…
Reference in a new issue