w-dwload-dlp 1.0.36 → 1.0.38
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/README.md +10 -1
- package/dist/w-dwload-dlp.umd.js +2 -2
- package/dist/w-dwload-dlp.umd.js.map +1 -1
- package/docs/WDwloadDlp.mjs.html +108 -57
- package/docs/autoDownloadFiles.mjs.html +64 -30
- package/docs/global.html +16 -11
- package/docs/index.html +1 -1
- package/g.mjs +3 -2
- package/package.json +2 -2
- package/src/WDwloadDlp.mjs +107 -56
- package/src/autoDownloadFiles.mjs +63 -29
- package/test/dw_m3u8.test.mjs +57 -0
- package/test/{WDwloadDlp.test.mjs → dw_mp4.test.mjs} +57 -57
package/README.md
CHANGED
|
@@ -32,8 +32,12 @@ import WDwloadDlp from 'w-dwload-dlp/src/WDwloadDlp.mjs'
|
|
|
32
32
|
async function test() {
|
|
33
33
|
|
|
34
34
|
//url
|
|
35
|
-
let url = `https://www.youtube.com/watch?v=
|
|
35
|
+
let url = `https://www.youtube.com/watch?v=jfXg5ZslKg4&list=RDjfXg5ZslKg4&start_radio=1` //youtube mp4
|
|
36
|
+
// let url = `https://www.youtube.com/watch?v=fTk0mc946dk` //youtube webm
|
|
37
|
+
// let url = `https://www.youtube.com/watch?v=lKoCiBVKQaQ` //youtube webm
|
|
36
38
|
// let url = `https://www.bilibili.com/video/BV1JZ421x7q8/?spm_id_from=333.1073.channel.secondary_floor_video.click` //bilibili
|
|
39
|
+
// let url = `https://ooo.mp4` //直接提供mp4檔
|
|
40
|
+
// let url = `https://cdn.jsdelivr.net/npm/w-demores/res/video/aigen_hls/playlist.m3u8`
|
|
37
41
|
|
|
38
42
|
//fp
|
|
39
43
|
let fp = './test.mp4'
|
|
@@ -49,6 +53,10 @@ async function test() {
|
|
|
49
53
|
funProg,
|
|
50
54
|
})
|
|
51
55
|
|
|
56
|
+
//len
|
|
57
|
+
let len = fs.statSync(fp).size
|
|
58
|
+
console.log('len', len)
|
|
59
|
+
|
|
52
60
|
console.log('done:', fp)
|
|
53
61
|
}
|
|
54
62
|
test()
|
|
@@ -60,5 +68,6 @@ test()
|
|
|
60
68
|
// ...
|
|
61
69
|
// prog 99.00% 98 99
|
|
62
70
|
// prog 100.00% 99 99
|
|
71
|
+
// len 22394508
|
|
63
72
|
// done: ./test.mp4
|
|
64
73
|
```
|