opt ua

opt subtitle

opt playertype

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-26 18:41:11 +08:00
parent a05ecd020b
commit 3a78ead3a6
28 changed files with 218 additions and 221 deletions

View File

@@ -34,7 +34,7 @@ class PgcIntroController extends CommonIntroController {
? int.tryParse(Get.parameters['epId']!)
: null;
late dynamic type =
late final String pgcType =
Get.parameters['type'] == '1' || Get.parameters['type'] == '4'
? '追番'
: '追剧';
@@ -139,9 +139,9 @@ class PgcIntroController extends CommonIntroController {
// (取消)收藏 pgc
@override
Future<void> actionFavVideo({String type = 'choose'}) async {
Future<void> actionFavVideo({bool isQuick = false}) async {
// 收藏至默认文件夹
if (type == 'default') {
if (isQuick) {
SmartDialog.showLoading(msg: '请求中');
queryVideoInFolder().then((res) async {
if (res['status']) {

View File

@@ -176,7 +176,8 @@ class _PgcIntroPageState extends State<PgcIntroPage>
if (isFollowed) {
showPgcFollowDialog(
context: context,
type: pgcIntroController.type,
type:
pgcIntroController.pgcType,
followStatus: followStatus,
onUpdateStatus: (followStatus) {
if (followStatus == -1) {
@@ -195,8 +196,8 @@ class _PgcIntroPageState extends State<PgcIntroPage>
},
child: Text(
isFollowed
? '${pgcIntroController.type}'
: '${pgcIntroController.type}',
? '${pgcIntroController.pgcType}'
: pgcIntroController.pgcType,
),
);
},
@@ -317,7 +318,7 @@ class _PgcIntroPageState extends State<PgcIntroPage>
onTap: () => pgcIntroController.showFavBottomSheet(context),
onLongPress: () => pgcIntroController.showFavBottomSheet(
context,
type: 'longPress',
isLongPress: true,
),
selectStatus: pgcIntroController.hasFav.value,
semanticsLabel: '收藏',