@soyaxell09/zenbot-scraper 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/scrapers/tiktok.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soyaxell09/zenbot-scraper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Scrapers de descarga y búsqueda para bots de WhatsApp — YouTube, TikTok, Facebook, Twitter, Pinterest, MediaFire, GitHub, APK y más.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
package/src/scrapers/tiktok.js
CHANGED
|
@@ -39,6 +39,9 @@ export async function tiktokDownload(url) {
|
|
|
39
39
|
nowatermark: d.play || null,
|
|
40
40
|
watermark: d.wmplay || null,
|
|
41
41
|
audio: d.music || null,
|
|
42
|
+
images: Array.isArray(d.images) && d.images.length > 0
|
|
43
|
+
? d.images.map(img => typeof img === 'string' ? img : img?.url || img?.cover || '')
|
|
44
|
+
: null,
|
|
42
45
|
music: {
|
|
43
46
|
title: d.music_info?.title || '',
|
|
44
47
|
author: d.music_info?.author || '',
|