mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: view later
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -218,6 +218,7 @@ class AuthorPanel extends StatelessWidget {
|
|||||||
|
|
||||||
void morePanel(BuildContext context) {
|
void morePanel(BuildContext context) {
|
||||||
String? bvid;
|
String? bvid;
|
||||||
|
try {
|
||||||
getBvid(String? type, dynamic major) => switch (type) {
|
getBvid(String? type, dynamic major) => switch (type) {
|
||||||
'DYNAMIC_TYPE_AV' => major?.archive?.bvid,
|
'DYNAMIC_TYPE_AV' => major?.archive?.bvid,
|
||||||
'DYNAMIC_TYPE_UGC_SEASON' => major?.ugcSeason?.bvid,
|
'DYNAMIC_TYPE_UGC_SEASON' => major?.ugcSeason?.bvid,
|
||||||
@@ -225,8 +226,10 @@ class AuthorPanel extends StatelessWidget {
|
|||||||
};
|
};
|
||||||
bvid = getBvid(item.type, item.modules?.moduleDynamic?.major);
|
bvid = getBvid(item.type, item.modules?.moduleDynamic?.major);
|
||||||
if (bvid == null && item.orig != null) {
|
if (bvid == null && item.orig != null) {
|
||||||
bvid = getBvid(item.type, item.orig?.modules?.moduleDynamic?.major);
|
bvid =
|
||||||
|
getBvid(item.orig.type, item.orig?.modules?.moduleDynamic?.major);
|
||||||
}
|
}
|
||||||
|
} catch (_) {}
|
||||||
|
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
|
|||||||
Reference in New Issue
Block a user