w-dwload-dlp 1.0.37 → 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 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=uj8hjLyEBmU&ab_channel=%E7%A0%81%E5%86%9C%E9%AB%98%E5%A4%A9` //youtube
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
  ```