4.1: better tiktok image downloads and celebrations

This commit is contained in:
wukko
2022-10-27 22:27:20 +06:00
parent 37e44f92ea
commit 02529c0b54
16 changed files with 129 additions and 29 deletions

View File

@@ -336,7 +336,7 @@ async function download(url) {
case "picker":
if (j.audio && j.url) {
changeDownloadButton(2, '?..')
fetch(`${j.audio}&p=1&origin=front`).then(async (res) => {
fetch(`${j.audio}&p=1`).then(async (res) => {
let jp = await res.json();
if (jp.status === "continue") {
changeDownloadButton(2, '>>>');
@@ -356,7 +356,7 @@ async function download(url) {
break;
case "stream":
changeDownloadButton(2, '?..')
fetch(`${j.url}&p=1&origin=front`).then(async (res) => {
fetch(`${j.url}&p=1`).then(async (res) => {
let jp = await res.json();
if (jp.status === "continue") {
changeDownloadButton(2, '>>>'); window.location.href = j.url;