frostpv 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/index.js +6 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -72,6 +72,12 @@ const linkCant = [{
72
72
 
73
73
  // Function to check if a link corresponds to a video platform
74
74
  const isVideoLink = (link) => {
75
+ try {
76
+ const u = new URL(link);
77
+ const host = (u.hostname || '').toLowerCase();
78
+ // Allow localized Pinterest subdomains (e.g., br.pinterest.com, en.pinterest.com)
79
+ if (host.endsWith('pinterest.com')) return true;
80
+ } catch (_) {}
75
81
  return videoPlatforms.some(platform => link.startsWith(platform));
76
82
  };
77
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frostpv",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "downloads",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
15
  "axios": "1.12.0",
16
- "btch-downloader": "5.0.14",
16
+ "btch-downloader": "6.0.20",
17
17
  "btch-downloader-old": "npm:btch-downloader@4.0.15",
18
18
  "express": "^5.1.0",
19
19
  "ffmpeg-ffprobe-static": "^6.1.1-rc.5",