mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 字幕时间为int时出错
This commit is contained in:
@@ -520,7 +520,7 @@ class VideoHttp {
|
|||||||
}
|
}
|
||||||
List<Map<String, String>> subtitlesVtt = [];
|
List<Map<String, String>> subtitlesVtt = [];
|
||||||
|
|
||||||
String subtitleTimecode(double seconds) {
|
String subtitleTimecode(num seconds) {
|
||||||
int h = (seconds / 3600).floor();
|
int h = (seconds / 3600).floor();
|
||||||
int m = ((seconds % 3600) / 60).floor();
|
int m = ((seconds % 3600) / 60).floor();
|
||||||
int s = (seconds % 60).floor();
|
int s = (seconds % 60).floor();
|
||||||
|
|||||||
Reference in New Issue
Block a user