Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Update tik.js tt switched to s_tt #27

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/cmds/tik.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module.exports = {

async function query(url, isMp3 = false) {
const res = await axios.get("https://ssstik.io/en");
const tt = res.data.split(`"tt:'`)[1].split(`'"`)[0];
const tt = res.data.split(`s_tt = '`)[1].split(`',`)[0];
const { data: result } = await axios({
url: "https://ssstik.io/abc?url=dl",
method: "POST",
Expand Down Expand Up @@ -162,4 +162,4 @@ async function query(url, isMp3 = false) {
}
format.downloadUrls = $(allUrls[isMp3 ? allUrls.length - 1 : 0]).attr('href');
return format;
}
}