Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Fix bilibili
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgeass committed Oct 29, 2022
1 parent 2971587 commit 66f7012
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/components/rich_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,12 @@ class _KRichTextState extends State<KRichText> {
if (bv.contains("?")) {
bv = bv.split('?')[0];
}
if (bv.contains('av')) {
final av = bv.replaceAll('av', '');
return AutoResizeWebView(
url:
'https://player.bilibili.com/player.html?high_quality=1&aid=$av&as_wide=1');
}
return AutoResizeWebView(
url:
'https://player.bilibili.com/player.html?high_quality=1&bvid=$bv&as_wide=1');
Expand Down

0 comments on commit 66f7012

Please sign in to comment.