diff --git a/extractors/bilibili/bilibili.go b/extractors/bilibili/bilibili.go index b65a1ba45..f1e2f8346 100644 --- a/extractors/bilibili/bilibili.go +++ b/extractors/bilibili/bilibili.go @@ -18,7 +18,9 @@ import ( ) func init() { - extractors.Register("bilibili", New()) + bilibiliExtractor := New() + extractors.Register("bilibili", bilibiliExtractor) + extractors.Register("b23", bilibiliExtractor) } const ( diff --git a/extractors/bilibili/bilibili_test.go b/extractors/bilibili/bilibili_test.go index 8688f3b44..471861f74 100644 --- a/extractors/bilibili/bilibili_test.go +++ b/extractors/bilibili/bilibili_test.go @@ -59,6 +59,13 @@ func TestBilibili(t *testing.T) { Title: "【8K演示片】B站首发!你的设备还顶得住吗?", }, }, + { + name: "b23 test", + args: test.Args{ + URL: "https://b23.tv/Fc9i7QF", + Title: "【十年榜】2000-2009年最强华语金曲TOP100 P1 100爱转角-罗志祥", + }, + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {