feat: support COPY
of a single entry
This commit is contained in:
parent
32fa6353f3
commit
c1e72da7fc
1 changed files with 4 additions and 1 deletions
|
@ -87,7 +87,10 @@ class SRTMerger:
|
|||
source = int(parts[1])
|
||||
if source not in (1, 2):
|
||||
return None
|
||||
start, end = map(int, parts[2].split('-'))
|
||||
if '-' in parts[2]:
|
||||
start, end = map(int, parts[2].split('-'))
|
||||
else:
|
||||
start = end = int(parts[2])
|
||||
if start > end:
|
||||
return None
|
||||
except (ValueError, AttributeError, TypeError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue