Skip to content

Commit

Permalink
Merge pull request #16 from hansputera/dev
Browse files Browse the repository at this point in the history
v1.4.1
  • Loading branch information
hansputera authored Jan 12, 2022
2 parents d797e40 + 7e7ed99 commit e261722
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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!
2 changes: 1 addition & 1 deletion api/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

1 comment on commit e261722

@vercel
Copy link

@vercel vercel bot commented on e261722 Jan 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.