fix: view later

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-24 10:55:20 +08:00
parent 33b8902375
commit fcaba24cee

View File

@@ -218,15 +218,18 @@ class AuthorPanel extends StatelessWidget {
void morePanel(BuildContext context) { void morePanel(BuildContext context) {
String? bvid; String? bvid;
getBvid(String? type, dynamic major) => switch (type) { try {
'DYNAMIC_TYPE_AV' => major?.archive?.bvid, getBvid(String? type, dynamic major) => switch (type) {
'DYNAMIC_TYPE_UGC_SEASON' => major?.ugcSeason?.bvid, 'DYNAMIC_TYPE_AV' => major?.archive?.bvid,
_ => null, 'DYNAMIC_TYPE_UGC_SEASON' => major?.ugcSeason?.bvid,
}; _ => null,
bvid = getBvid(item.type, item.modules?.moduleDynamic?.major); };
if (bvid == null && item.orig != null) { bvid = getBvid(item.type, item.modules?.moduleDynamic?.major);
bvid = getBvid(item.type, item.orig?.modules?.moduleDynamic?.major); if (bvid == null && item.orig != null) {
} bvid =
getBvid(item.orig.type, item.orig?.modules?.moduleDynamic?.major);
}
} catch (_) {}
showModalBottomSheet( showModalBottomSheet(
context: context, context: context,