VocaDB / vocadb

VocaDB is a Vocaloid Database with translated artists, albums, music videos and more.
https://vocadb.net
Other
323 stars 39 forks source link

Refer to the exact episode when embedding media from bilibili #1344

Open AgFlore opened 5 years ago

AgFlore commented 5 years ago

One bilibili video can contain multiple episodes, each might be a PV for a separate song. For example, the song 虚拟少年 was first released as live performance on the 2017 Luotianyi Concert in Shanghai, and its video is released on Bilibili as the 14th episode of the concert record, https://www.bilibili.com/video/av12802603/?p=14. Currently, if one submit that link as a bilibili media to vocadb, the "p=14" will be ignored, and the p1 episode of the video will be embeded, which is not desired.

If one check https://api.bilibili.com/x/player/pagelist?aid=12802603, which looks like

...{"cid":21707899,"page":14,"from":"vupload","part":"虚拟少年","duration":250,"vid":"","weblink":"","dimension":{"width":0,"height":0,"rotate":0}},...

he shall then find the cid of that specific episode and may embed it in the page.

riipah commented 5 years ago

This might be difficult because the system isn't designed to include multiple parameters. We did that with SoundCloud, but the implementation is a bit complicated.

szc126 commented 2 years ago

Just rediscovered this old comment about a song being hidden behind piapro's "historical revisions" that allow you to reuse the same id. It's somewhat similar. https://vocadb.net/S/7319/discussion

https://piapro.jp/content/wzbannuehci39y5c

(前のバージョンと言うとこから、普通のカラオケ、本家がDLできます)