You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is only a temporary solution and I'm using bilibili-get on windows node.js (v12.16.1). If your environment is similar to me, this solution may help you. I guess it'll work on the other environments too.
Please change following lines in extractor.js.
top of the file
// var REGEX_URL_VIDEO = /^https?:\/\/(?:www\.|bangumi\.|)bilibili\.(?:tv|com)\/(?:video\/av(\d+)(?:\/|\/index_(\d+)\.html)?)(?:\?p=(\d+).*)?$/i;
var REGEX_URL_VIDEO = /^https?:\/\/(?:www\.|bangumi\.|)bilibili\.(?:tv|com)\/(?:video\/BV([A-Za-z\d]+)(?:\/|\/index_(\d+)\.html)?)(?:\?p=(\d+).*)?$/i;
According to 【升级公告】AV号全面升级至BV号,the AV tags have been upgraded into BV tags.
The regular expression in lib/extractor.js
var REGEX_URL_VIDEO = /^https?:\/\/(?:www\.|bangumi\.|)bilibili\.(?:tv|com)\/(?:video\/av(\d+)(?:\/|\/index_(\d+)\.html)?)(?:\?p=(\d+).*)?$/i;
is outdated and the video id cannot be extracted so easily as before.
The text was updated successfully, but these errors were encountered: