mirror of
https://github.com/lifegpc/pythonscript.git
synced 2026-06-06 11:28:58 +08:00
fix typo
This commit is contained in:
@@ -64,7 +64,7 @@ class Lyric:
|
|||||||
if offset is None:
|
if offset is None:
|
||||||
return
|
return
|
||||||
for i in self._l:
|
for i in self._l:
|
||||||
i['time'] = max(0, round((i['time'] * 1000 - offset) / 1000, 2))
|
i['time'] = max(0, round((i['time'] * 1000 + offset) / 1000, 2))
|
||||||
|
|
||||||
def convert_translate_type(self, dur: Optional[float]):
|
def convert_translate_type(self, dur: Optional[float]):
|
||||||
self._l.sort(key=lambda d: d['time'])
|
self._l.sort(key=lambda d: d['time'])
|
||||||
|
|||||||
Reference in New Issue
Block a user