From be19b5ab2649c2c2bed9265c46b4f8861e62b7e1 Mon Sep 17 00:00:00 2001 From: Kcchouette Date: Sat, 4 Apr 2020 12:53:26 +0200 Subject: [PATCH] Fix time --- youtube_dl/extractor/adn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/adn.py b/youtube_dl/extractor/adn.py index c95ad2173..ac7f58fd5 100644 --- a/youtube_dl/extractor/adn.py +++ b/youtube_dl/extractor/adn.py @@ -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: