From 306e888fa4f14c90a4f37c23b70cf83c1d370f95 Mon Sep 17 00:00:00 2001 From: tloook Date: Sat, 7 Oct 2023 10:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/version.txt | 2 +- js/我的哔哩.js | 34 ++++++++-------------------------- 2 files changed, 9 insertions(+), 27 deletions(-) diff --git a/js/version.txt b/js/version.txt index 932f004..b6b668a 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.48beta10 \ No newline at end of file +3.9.48beta11 \ No newline at end of file diff --git a/js/我的哔哩.js b/js/我的哔哩.js index 9d39b68..958667e 100644 --- a/js/我的哔哩.js +++ b/js/我的哔哩.js @@ -167,14 +167,8 @@ var rule = { min = duration.split(':')[0]; sec = duration.split(':')[1]; } catch (e) { - if (duration >= 3600) { - let rSAH = duration % 3600; - min = Math.floor(rSAH / 60); - sec = rSAH % 60; - } else { - min = Math.floor(duration / 60); - sec = duration % 60; - } + min = Math.floor(duration / 60); + sec = duration % 60; } if (isNaN(parseInt(duration))) { return '无效输入'; @@ -260,14 +254,8 @@ var rule = { min = duration.split(':')[0]; sec = duration.split(':')[1]; } catch (e) { - if (duration >= 3600) { - let rSAH = duration % 3600; - min = Math.floor(rSAH / 60); - sec = rSAH % 60; - } else { - min = Math.floor(duration / 60); - sec = duration % 60; - } + min = Math.floor(duration / 60); + sec = duration % 60; } if (isNaN(parseInt(duration))) { return '无效输入'; @@ -400,7 +388,7 @@ var rule = { let playurls = []; ja.forEach(function(tmpJo) { let cid = tmpJo.cid; - let part = tmpJo.part.replace('#', '﹟').replace('$', '﹩'); + let part = tmpJo.part.replaceAll('#', '﹟').replaceAll('$', '﹩'); playurls.push( part + '$' + aid + '_' + cid ) @@ -410,7 +398,7 @@ var rule = { playurls = []; relatedData.forEach(function(rd) { let ccid = rd.cid; - let title = rd.title.replace('#', '﹟').replace('$', '﹩'); + let title = rd.title.replaceAll('#', '﹟').replaceAll('$', '﹩'); let aaid = rd.aid; playurls.push( title + '$' + aaid + '_' + ccid @@ -434,14 +422,8 @@ var rule = { min = duration.split(':')[0]; sec = duration.split(':')[1]; } catch (e) { - if (duration >= 3600) { - let rSAH = duration % 3600; - min = Math.floor(rSAH / 60); - sec = rSAH % 60; - } else { - min = Math.floor(duration / 60); - sec = duration % 60; - } + min = Math.floor(duration / 60); + sec = duration % 60; } if (isNaN(parseInt(duration))) { return '无效输入';