fix: media type

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-27 14:04:01 +08:00
parent 64672dbdf9
commit 0e8502b087
5 changed files with 18 additions and 10 deletions

View File

@@ -113,7 +113,11 @@ class MemberVideoCtr extends CommonController {
'oid': IdUtils.bv2av(element.bvid!), // TODO: continue playing
'favTitle':
'$username: ${title ?? episodicButton?.text ?? '播放全部'}',
'count': count.value,
if (seriesId == null) 'count': count.value,
if (seasonId != null || seriesId != null)
'mediaType': RegExp(r'page_type=([\d]+)')
.firstMatch('${episodicButton?.uri}')
?.group(1),
},
);
break;