1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00
This commit is contained in:
Kcchouette 2020-04-04 12:53:26 +02:00 committed by GitHub
parent 049c0486bb
commit be19b5ab26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ class ADNIE(InfoExtractor):
@staticmethod
def _ass_subtitles_timecode(seconds):
return '%01d:%02d:%02d.%02d' % (seconds / 3600, (seconds % 3600) / 60, seconds % 60, (seconds % 1) * 100)
return '%01d:%02d:%02d.%02d' % (seconds / 3600, (seconds % 3600) / 60, seconds % 60, (round(seconds % 1, 2)) * 100)
def _get_subtitles(self, sub_path, video_id):
if not sub_path: