kuma 2 gadi atpakaļ
vecāks
revīzija
be8e388eaf
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      ytbchat2ass.py

+ 1 - 1
ytbchat2ass.py

@@ -52,7 +52,7 @@ Comment: 0,00:00:00.0,00:00:00.0,Danmaku,标题,0,0,0,,'+title+'\n'
     f = open(code+'.ass', 'w', encoding='utf-8-sig')
     f.write(head)
     for message in chat:
-        vpos = message['time_in_seconds'] - int(delay)
+        vpos = message['time_in_seconds'] - float(delay)
         if vpos > 0:
             vpos_end = vpos+8  # 普通弹幕的时长,默认8秒
         else: