From b99bc0f44067e0b1fed64d5ef817184d768bc4a5 Mon Sep 17 00:00:00 2001 From: Hanif Dwy Putra S <47862061+hansputera@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:19:36 +0700 Subject: [PATCH 1/3] remove label text --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 061293f9..d8f32b18 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,12 @@ Available on [Wiki](https://github.com/hansputera/tiktok-dl/wiki/Endpoints) - [TTDownloader](https://ttdownloader.com) - [Musically Down](https://musicaldown.com) - [DLTik](https://dltik.com/) -- [TTSave](https://ttsave.app) (Won't work) +- [TTSave](https://ttsave.app) - [DDDTik](https://dddtik.com) - [TikDown](https://tikdown.org) - [DownTik](https://downtik.net) - [LoveTik](https://lovetik.com) - [Tokup](https://tokup.app) -- [TikTokDownloaderOne](https://tiktokdownloader.one) (TTSave alternative) +- [TikTokDownloaderOne](https://tiktokdownloader.one) 🧗‍♀️ Contribution(s) are welcome! From fee31d6e1f75a6217db39a509057da1d36a38695 Mon Sep 17 00:00:00 2001 From: Hanif Dwy Putra S <47862061+hansputera@users.noreply.github.com> Date: Tue, 11 Jan 2022 12:28:21 +0700 Subject: [PATCH 2/3] add tiktok-dl docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d8f32b18..10a4434e 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Video TikTok Downloader using 🧰 NodeJS with Watermark and Non-Watermark! 3. Add environment variable with `REDIS_URL` as the name, and fill the value using your redis url. ## ☁️ Endpoints -Available on [Wiki](https://github.com/hansputera/tiktok-dl/wiki/Endpoints) +Check [this](https://docs.tiktok-dl.tslab.site) out. ## 🔥 Credits + Source From 319c27448a2d0c2e2b7450c88a17c63a5183d6bd Mon Sep 17 00:00:00 2001 From: flolep2607 Date: Wed, 12 Jan 2022 00:04:57 +0100 Subject: [PATCH 3/3] remove the type bug verify body or query is set before using it --- api/download.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/download.ts b/api/download.ts index 3705ef24..186a1dcb 100644 --- a/api/download.ts +++ b/api/download.ts @@ -27,7 +27,7 @@ export default async (req: VercelRequest, res: VercelResponse) => { ow.optional.boolean : ow.optional.string, })); - const provider = getProvider((req.query.type || req.body.type) ?? 'random'); + const provider = getProvider((req.query && req.query.type || req.body && req.body.type) ?? 'random'); if (!provider) { return res.status(400).json({ 'error': 'Invalid provider',