mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
subtitle: missing r-prefix
This commit is contained in:
parent
7ed21ae16b
commit
c95c51fa5d
@ -113,7 +113,7 @@ class subtitle(object):
|
||||
TAG_RE = re.compile(r'<[^>]+>')
|
||||
bad_char = re.compile(r'\x96')
|
||||
for i in ssubdata.readlines():
|
||||
sync = re.search("<SYNC Start=(\d+)>", i)
|
||||
sync = re.search(r"<SYNC Start=(\d+)>", i)
|
||||
if sync:
|
||||
if int(sync.group(1)) != int(timea):
|
||||
if data != " \r":
|
||||
@ -140,9 +140,9 @@ class subtitle(object):
|
||||
block = 0
|
||||
subnr = False
|
||||
for i in ssubdata.readlines():
|
||||
match = re.search("^[\r\n]+", i)
|
||||
match2 = re.search("([\d:\.]+ --> [\d:\.]+)", i)
|
||||
match3 = re.search("^(\d+)\s", i)
|
||||
match = re.search(r"^[\r\n]+", i)
|
||||
match2 = re.search(r"([\d:\.]+ --> [\d:\.]+)", i)
|
||||
match3 = re.search(r"^(\d+)\s", i)
|
||||
if i[:6] == "WEBVTT":
|
||||
pass
|
||||
elif match and number_b > 1:
|
||||
|
Loading…
Reference in New Issue
Block a user