mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-09 15:24:14 -05:00
[PR #143] [CLOSED] Resolve bilibili mobile b23.tv short links to full bilibili URL
#1025
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/143
Author: @TylerLafayette
Created: 6/21/2023
Status: ❌ Closed
Base:
current← Head:bilibili-short-url-support📝 Commits (2)
c2470eabilibili: resolveb23.tvshort links to full bilibili url5ae1cefbilibili: followb23case with abreak;- oops📊 Changes
1 file changed (+9 additions, -0 deletions)
View changed files
📝
src/modules/api.js(+9 -0)📄 Description
This PR allows a user to submit a
b23.tvshortlink, which looks like this:https://b23.tv/lbMyOI9. Bilibili gives you links in this format when you copy a video URL on the mobile app (not on the website afaik). Unlikeyoutu.be, the ID followingb23.tv/isn't the same as the ID in thebilibili.com/video/:idURL, so it's necessary to follow the link to resolve the redirect. The drawback is that this causes an additional request on the backend for b23.tv URLs which might be undesirable to add to cobalt.Thanks in advance for your consideration, cobalt is super useful to me and I appreciate the effort :)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.