Previously, the Smartideo plug-in was used to reprint the video of Station B, which only needed to copy and paste the video address into the article. Station B is the only video site that has no advertising at present. However, recently, the ID number of the video link suffix of Station B changed from av to BV, and the function of the plug-in failed.
Some users have reported to the plug-in author that the author did not respond. Try to modify the plug-in first and find this code:
'#https?:// www\.bilibili\.com/video/av(?: (?<video_id1>\d+)/(?:index_|\#page=)(?<video_id2>\d+)|(?<video_id>\d+))#i',
The av is changed to BV, and the ID of BV is changed from pure number of the original av to number+large and small letters. The original code can no longer obtain the ID number. Add regular [a-z0-9_= -]+to obtain the ID number.
'#https?:// www\.bilibili\.com/video/BV(?: (?<video_id1>[a-z0-9_=\-]+)/(?:index_|\#page=)(?<video_id2>[a-z0-9_=\-]+)|(?<video_id>[a-z0-9_=\-]+))#i',
The result was very disappointing. The player window was displayed and the ID was obtained, but the video could not be loaded If you have time to study it again, or some expert can help you solve it, but even if the modification is successful, the av link originally added to the article may also fail.
Here is a simple way to get the original av link:
Open the video link of station B: for example
https://www.bilibili.com/video/BV1WW411b7NQ
Viewing the source code and searching the av will find the following in the meta tag:
<meta data-vue-meta="true" itemprop="url" content=" https://www.bilibili.com/video/av17792443/ ">
The following link is the original av link, which can be added to the article.
https://www.bilibili.com/video/av17792443
Someone on the Internet has developed a conversion tool, which can also be found, but it is most convenient to view the source code directly on the computer.
Related articles: Let Smartideo, the video playback plug-in of WordPress, support the BV number of station B
Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!