mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user