dd1024 icon indicating copy to clipboard operation
dd1024 copied to clipboard

网速太慢,怎么可以拿到地址,先本地缓存稍后欣赏~

Open HeLiangHIT opened this issue 6 years ago • 2 comments
trafficstars

是这样的,运行之后直接就开始表演了,100M网速都感觉播放太慢,看靓车的的时候很容易前进快退,如果不能先下载的话用户体验还是不够完美~

HeLiangHIT avatar Oct 27 '19 07:10 HeLiangHIT

是这样的,运行之后直接就开始表演了,100M网速都感觉播放太慢,看靓车的的时候很容易前进快退,如果不能先下载的话用户体验还是不够完美~

老哥, 你要拿到地址吗?

把这个库安装

npm i --save dd1024

然后写一个脚本

const argv = process.argv
const Api = require('dd1024/lib/api')
const dd1024 = new Api
;(async ()=>{
  const plate = argv[2].trim()
  const url = await dd1024.getAvUrl(plate)
  console.log(url)
})();

现在拿到了 url , 不过拿到的地址是 .m3u8, 下载的方式的话, 老哥自己看看, you-get 或者 ffmpeg 应该可以搞定

// 复制到剪贴板
node av.js | pbcopy

至于老哥你说的网络太慢, 这算是国内仅存的能用的车站了吧, 我本来想把几个车站都汇集在一起, 不过大多数网站都被wall

d1y avatar Oct 29 '19 03:10 d1y

Just ps aux | grep mpv

mu001999 avatar Oct 31 '19 06:10 mu001999