mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🐞 fix: 修复油管超出小时无法正常限制
This commit is contained in:
parent
5bf9b4885f
commit
1a17050f2b
@ -30,9 +30,9 @@ export function removeParams(url) {
|
||||
}
|
||||
|
||||
export function convertToSeconds(timeStr) {
|
||||
const [minutes, seconds] = timeStr.split(':').map(Number); // 拆分并转换为数字
|
||||
const [hour, minutes, seconds] = timeStr.split(':').map(Number); // 拆分并转换为数字
|
||||
if (!seconds) return timeStr;
|
||||
return minutes * 60 + seconds; // 分钟转化为秒并加上秒数
|
||||
return hour * 3600 + minutes * 60 + seconds; // 分钟转化为秒并加上秒数
|
||||
}
|
||||
|
||||
export async function autoSelectMusicOrVideoSend() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user