Return video without watermark
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4aaf24f3b3
commit
f6a890170c
4
index.js
4
index.js
|
@ -15,7 +15,7 @@ app.get('/user/:user', async (req, res) => {
|
||||||
"home_page_url": `https://tiktok.com/@${user}`,
|
"home_page_url": `https://tiktok.com/@${user}`,
|
||||||
"items": []
|
"items": []
|
||||||
}
|
}
|
||||||
let posts = await scraper.user(user, { number: 10 })
|
let posts = await scraper.user(user, { number: 10, noWaterMark: true })
|
||||||
for (const post of posts.collector) {
|
for (const post of posts.collector) {
|
||||||
feed.items.push({
|
feed.items.push({
|
||||||
"id": post.id,
|
"id": post.id,
|
||||||
|
@ -25,7 +25,7 @@ app.get('/user/:user', async (req, res) => {
|
||||||
"date_published": new Date(parseInt(post.createTime, 10) * 1000),
|
"date_published": new Date(parseInt(post.createTime, 10) * 1000),
|
||||||
"attachments": [
|
"attachments": [
|
||||||
{
|
{
|
||||||
"url": post.videoUrl,
|
"url": post.videoUrlNoWaterMark,
|
||||||
"mime_type": "video/mp4"
|
"mime_type": "video/mp4"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Reference in New Issue