zhg.sql 1.4.5 → 1.4.7
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/index.js +1 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -130,9 +130,6 @@ async function tempfiles(path) {
|
|
|
130
130
|
const QualsVideo = ["144", "240", "360", "480", "720", "1080"]
|
|
131
131
|
const QualsAudio = ['32', '64', '128', '192', '256', '320']
|
|
132
132
|
|
|
133
|
-
const downloadFolder = '/home/container'
|
|
134
|
-
if (!fs.existsSync(downloadFolder)) fs.mkdirSync(downloadFolder)
|
|
135
|
-
|
|
136
133
|
async function ytdlv1(url, type, qual = null) {
|
|
137
134
|
let cookie
|
|
138
135
|
const match = cookie?.match(/Expires=([^;]+)/)
|
|
@@ -266,7 +263,7 @@ async function ytdlv1(url, type, qual = null) {
|
|
|
266
263
|
|
|
267
264
|
async function ytdlv2(url, type, quality) {
|
|
268
265
|
const api = {
|
|
269
|
-
base: 'https://media.savetube.
|
|
266
|
+
base: 'https://media.savetube.vip/api',
|
|
270
267
|
cdn: '/random-cdn',
|
|
271
268
|
info: '/v2/info',
|
|
272
269
|
download: '/download'
|