opt video scheme

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-27 11:20:03 +08:00
parent fa348db7c5
commit 110469961d
5 changed files with 32 additions and 19 deletions

View File

@@ -736,7 +736,7 @@ abstract final class PageUtils {
int? pgcType,
String? cover,
String? title,
int? progress,
int? progress, // milliseconds
Map? extraArguments,
bool off = false,
}) {
@@ -773,7 +773,7 @@ abstract final class PageUtils {
static bool viewPgcFromUri(
String uri, {
bool isPgc = true,
String? progress,
int? progress, // milliseconds
int? aid,
}) {
RegExpMatch? match = _pgcRegex.firstMatch(uri);
@@ -817,7 +817,7 @@ abstract final class PageUtils {
static Future<void> viewPgc({
dynamic seasonId,
dynamic epId,
String? progress,
int? progress, // milliseconds
}) async {
try {
SmartDialog.showLoading(msg: '资源获取中');
@@ -837,7 +837,7 @@ abstract final class PageUtils {
seasonId: response.seasonId,
epId: episode.epId,
cover: episode.cover,
progress: progress == null ? null : int.tryParse(progress),
progress: progress,
extraArguments: {
'pgcApi': true,
'pgcItem': response,
@@ -886,7 +886,7 @@ abstract final class PageUtils {
epId: episode.epId,
pgcType: response.type,
cover: episode.cover,
progress: progress == null ? null : int.tryParse(progress),
progress: progress,
extraArguments: {
'pgcItem': response,
},