public class BilibiliVideoAPI extends Object
| 构造器和说明 |
|---|
BilibiliVideoAPI() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
bv2Av(String bid)
bv号转av号
|
List<BilibiliDownloaderThread> |
download(File targetFile,
int threadNum)
下载视频
|
static String |
getCid(String aid)
获取视频cid
|
BilibiliVideoUrl |
getVideoUrlList() |
BilibiliVideoAPI |
getVideoUrlV1(String bid)
获取视频链接 免登陆1080p(无法直接访问下载) 可能会有多个文件
|
public static String bv2Av(String bid) throws IOException
bid - bv号IOException - Exceptionpublic static String getCid(String aid) throws IOException
aid - aidIOException - Exceptionpublic BilibiliVideoAPI getVideoUrlV1(String bid) throws IOException
bid - 视频bid(bvxxxxx)IOException - Exceptionpublic BilibiliVideoUrl getVideoUrlList()
public List<BilibiliDownloaderThread> download(File targetFile, int threadNum) throws Exception
targetFile - 目标文件threadNum - 线程数Exception - ExceptionCopyright © 2021. All rights reserved.