mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: pgclabel data
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import 'package:PiliPalaX/common/widgets/image_save.dart';
|
import 'package:PiliPalaX/common/widgets/image_save.dart';
|
||||||
|
import 'package:PiliPalaX/models/model_hot_video_item.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@@ -77,7 +78,8 @@ class VideoCardH extends StatelessWidget {
|
|||||||
SmartDialog.showToast('课堂视频暂不支持播放');
|
SmartDialog.showToast('课堂视频暂不支持播放');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (videoItem.pgcLabel?.isNotEmpty == true &&
|
if (videoItem is HotVideoItemModel &&
|
||||||
|
videoItem.pgcLabel?.isNotEmpty == true &&
|
||||||
videoItem.redirectUrl?.isNotEmpty == true) {
|
videoItem.redirectUrl?.isNotEmpty == true) {
|
||||||
String? id = RegExp(r'(ep|ss)\d+')
|
String? id = RegExp(r'(ep|ss)\d+')
|
||||||
.firstMatch(videoItem.redirectUrl)
|
.firstMatch(videoItem.redirectUrl)
|
||||||
@@ -128,7 +130,8 @@ class VideoCardH extends StatelessWidget {
|
|||||||
width: maxWidth,
|
width: maxWidth,
|
||||||
height: maxHeight,
|
height: maxHeight,
|
||||||
),
|
),
|
||||||
if (videoItem.pgcLabel?.isNotEmpty == true)
|
if (videoItem is HotVideoItemModel &&
|
||||||
|
videoItem.pgcLabel?.isNotEmpty == true)
|
||||||
PBadge(
|
PBadge(
|
||||||
text: videoItem.pgcLabel,
|
text: videoItem.pgcLabel,
|
||||||
top: 6.0,
|
top: 6.0,
|
||||||
|
|||||||
Reference in New Issue
Block a user