fix typos

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-05 11:35:47 +08:00
parent b4a46133be
commit ea52dd4484
51 changed files with 162 additions and 162 deletions

View File

@@ -52,7 +52,7 @@ class DownloadPageController extends GetxController
..cover = entry.cover
..sortKey = aSortKey;
}
page.entrys.add(entry);
page.entries.add(entry);
} else {
list.add(
DownloadPageInfo(
@@ -62,7 +62,7 @@ class DownloadPageController extends GetxController
cover: entry.cover,
sortKey: entry.sortKey,
seasonType: entry.ep?.seasonType,
entrys: [entry],
entries: [entry],
),
);
}
@@ -82,7 +82,7 @@ class DownloadPageController extends GetxController
final watchProgress = GStorage.watchProgress;
for (var page in allChecked) {
await watchProgress.deleteAll(
page.entrys.map((e) => e.cid.toString()),
page.entries.map((e) => e.cid.toString()),
);
await _downloadService.deletePage(
pageDirPath: page.dirPath,

View File

@@ -70,7 +70,7 @@ class _DownloadDetailPageState extends State<DownloadDetailPage>
final list =
_controller.pages
.firstWhereOrNull((e) => e.pageId == widget.pageId)
?.entrys
?.entries
?..sort((a, b) => a.sortKey.compareTo(b.sortKey));
if (list != null) {
_downloadItems.value = list;

View File

@@ -68,7 +68,7 @@ class _DownloadPageState extends State<DownloadPage> {
_controller.handleSelect();
final list = <BiliDownloadEntryInfo>[];
for (var page in allChecked) {
list.addAll(page.entrys);
list.addAll(page.entries);
}
final res = await Future.wait(
list.map(
@@ -181,8 +181,8 @@ class _DownloadPageState extends State<DownloadPage> {
),
itemBuilder: (context, index) {
final item = _controller.pages[index];
if (item.entrys.length == 1) {
final entry = item.entrys.first;
if (item.entries.length == 1) {
final entry = item.entries.first;
return DetailItem(
entry: entry,
progress: _progress,
@@ -249,7 +249,7 @@ class _DownloadPageState extends State<DownloadPage> {
title: '确定删除?',
onConfirm: () async {
await GStorage.watchProgress.deleteAll(
pageInfo.entrys.map((e) => e.cid.toString()),
pageInfo.entries.map((e) => e.cid.toString()),
);
_downloadService.deletePage(
pageDirPath: pageInfo.dirPath,
@@ -267,7 +267,7 @@ class _DownloadPageState extends State<DownloadPage> {
onTap: () async {
Get.back();
final res = await Future.wait(
pageInfo.entrys.map(
pageInfo.entries.map(
(e) => _downloadService.downloadDanmaku(
entry: e,
isUpdate: true,
@@ -291,7 +291,7 @@ class _DownloadPageState extends State<DownloadPage> {
);
},
);
final first = pageInfo.entrys.first;
final first = pageInfo.entries.first;
return Material(
type: MaterialType.transparency,
child: InkWell(
@@ -332,7 +332,7 @@ class _DownloadPageState extends State<DownloadPage> {
),
),
PBadge(
text: '${pageInfo.entrys.length}个视频',
text: '${pageInfo.entries.length}个视频',
right: 6.0,
bottom: 6.0,
isBold: false,
@@ -391,7 +391,7 @@ class _DownloadPageState extends State<DownloadPage> {
)
else
const Spacer(),
pageInfo.entrys.first.moreBtn(theme),
pageInfo.entries.first.moreBtn(theme),
],
),
],