java版本:
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
Exception in thread "pool-1-thread-1" org.json.JSONException: JSONObject["quality"] not found.
at org.json.JSONObject.get(JSONObject.java:580)
at org.json.JSONObject.getNumber(JSONObject.java:719)
at org.json.JSONObject.getInt(JSONObject.java:742)
at nicelee.bilibili.parsers.impl.AbstractBaseParser.getVideoLinkByFormat(AbstractBaseParser.java:328)
at nicelee.bilibili.parsers.impl.AbstractBaseParser.getVideoLink(AbstractBaseParser.java:231)
at nicelee.bilibili.parsers.InputParser.getVideoLink(InputParser.java:121)
at nicelee.ui.thread.DownloadRunnable.download(DownloadRunnable.java:91)
at nicelee.ui.thread.DownloadRunnable.run(DownloadRunnable.java:60)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
你点击了一次下载按钮...
查询记录BV1uW411f72n-16-p2
匹配BVParser: BV1uW411f72n
InputParser-selectParser/66 : BV1uW411f72n
匹配BVParser: BV1uW411f72n
正在查询MP4/FLV链接...
AbstractBaseParser-getVideoLinkByFormat/312 : https://api.bilibili.com/x/player/wbi/playurl?cid=53736604&bvid=BV1uW411f72n&qn=16&type=&otype=json&fnver=0&fnval=4048&fourk=1&w_rid=d2064c250c0c65eb2c603cab31ebab1e&wts=1706431251
{"code":0,"message":"0","ttl":1,"data":{"v_voucher":"voucher_47e67b0e-0661-4469-bfbf-6d43d53aea60"}}
Exception in thread "pool-1-thread-2" org.json.JSONException: JSONObject["quality"] not found.
at org.json.JSONObject.get(JSONObject.java:580)
at org.json.JSONObject.getNumber(JSONObject.java:719)
at org.json.JSONObject.getInt(JSONObject.java:742)
at nicelee.bilibili.parsers.impl.AbstractBaseParser.getVideoLinkByFormat(AbstractBaseParser.java:328)
at nicelee.bilibili.parsers.impl.AbstractBaseParser.getVideoLink(AbstractBaseParser.java:231)
at nicelee.bilibili.parsers.InputParser.getVideoLink(InputParser.java:121)
at nicelee.ui.thread.DownloadRunnable.download(DownloadRunnable.java:91)
at nicelee.ui.thread.DownloadRunnable.run(DownloadRunnable.java:60)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
我已经确认
问题描述 无法单独/批量下载视频 ,提示quality not found
相关信息
Exception in thread "pool-1-thread-1" org.json.JSONException: JSONObject["quality"] not found. at org.json.JSONObject.get(JSONObject.java:580) at org.json.JSONObject.getNumber(JSONObject.java:719) at org.json.JSONObject.getInt(JSONObject.java:742) at nicelee.bilibili.parsers.impl.AbstractBaseParser.getVideoLinkByFormat(AbstractBaseParser.java:328) at nicelee.bilibili.parsers.impl.AbstractBaseParser.getVideoLink(AbstractBaseParser.java:231) at nicelee.bilibili.parsers.InputParser.getVideoLink(InputParser.java:121) at nicelee.ui.thread.DownloadRunnable.download(DownloadRunnable.java:91) at nicelee.ui.thread.DownloadRunnable.run(DownloadRunnable.java:60) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 你点击了一次下载按钮... 查询记录BV1uW411f72n-16-p2 匹配BVParser: BV1uW411f72n InputParser-selectParser/66 : BV1uW411f72n 匹配BVParser: BV1uW411f72n 正在查询MP4/FLV链接... AbstractBaseParser-getVideoLinkByFormat/312 : https://api.bilibili.com/x/player/wbi/playurl?cid=53736604&bvid=BV1uW411f72n&qn=16&type=&otype=json&fnver=0&fnval=4048&fourk=1&w_rid=d2064c250c0c65eb2c603cab31ebab1e&wts=1706431251 {"code":0,"message":"0","ttl":1,"data":{"v_voucher":"voucher_47e67b0e-0661-4469-bfbf-6d43d53aea60"}}
Exception in thread "pool-1-thread-2" org.json.JSONException: JSONObject["quality"] not found. at org.json.JSONObject.get(JSONObject.java:580) at org.json.JSONObject.getNumber(JSONObject.java:719) at org.json.JSONObject.getInt(JSONObject.java:742) at nicelee.bilibili.parsers.impl.AbstractBaseParser.getVideoLinkByFormat(AbstractBaseParser.java:328) at nicelee.bilibili.parsers.impl.AbstractBaseParser.getVideoLink(AbstractBaseParser.java:231) at nicelee.bilibili.parsers.InputParser.getVideoLink(InputParser.java:121) at nicelee.ui.thread.DownloadRunnable.download(DownloadRunnable.java:91) at nicelee.ui.thread.DownloadRunnable.run(DownloadRunnable.java:60) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)