Fixes #591. Keeping separators for single characters

This commit is contained in:
Rato
2019-02-23 18:21:21 +01:00
parent 53e8e8626e
commit cdea6741f5
2 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def _potential_before(i, input_string):
:return:
:rtype: bool
"""
return i - 2 >= 0 and input_string[i] in seps and input_string[i - 2] in seps and input_string[i - 1] not in seps
return i - 1 >= 0 and input_string[i] in seps and input_string[i - 2] in seps and input_string[i - 1] not in seps
def _potential_after(i, input_string):
+13 -1
View File
@@ -4592,7 +4592,7 @@
type: episode
? S.W.A.T.2017.S01E21.Treibjagd.German.Dubbed.DL.AmazonHD.x264-TVS
: title: S W.A.T.
: title: S.W.A.T.
year: 2017
season: 1
episode: 21
@@ -4605,3 +4605,15 @@
video_codec: H.264
release_group: TVS
type: episode
? S.W.A.T.2017.S01E16.READNFO.720p.HDTV.x264-KILLERS
: title: S.W.A.T.
year: 2017
season: 1
episode: 16
other: Read NFO
screen_size: 720p
source: HDTV
video_codec: H.264
release_group: KILLERS
type: episode