Skip to content

Commit

Permalink
🕑更新了作品发布时间数据
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejianxianzun committed May 6, 2024
1 parent 8406ec8 commit 2deb27d
Show file tree
Hide file tree
Showing 21 changed files with 336 additions and 46 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ TODO:日语文本需要加粗显示关键字,但是我不懂日语,所以现

- 自动合并系列小说

## 17.0.0 2024/05/07
## 17.0.0 2024/05/06

### 可以设置慢速抓取时的间隔时间了
### ⚙️可以设置慢速抓取时的间隔时间了

![](/notes/images/20240506_232810.png)

Expand Down Expand Up @@ -53,6 +53,8 @@ https://github.com/xuejianxianzun/PixivBatchDownloader/issues/399

虽然有时使用最佳质量依然无法完全避免色差,但是比之前还是要好很多。

### 🕑更新了作品发布时间数据

## 16.9.0 2024/03/30

### ✨新增功能:保存作品简介
Expand Down
6 changes: 4 additions & 2 deletions dist/README-ZH-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@

## 線上安裝

1. **Chromium 核心**的瀏覽器可以從 **[Chrome Web Store](https://chrome.google.com/webstore/detail/powerful-pixiv-downloader/dkndmhgdcmjdmkdonmbgjpijejdcilfh)** 安裝本擴充功能。
**Chromium 核心**的瀏覽器可以從 **[Chrome Web Store](https://chrome.google.com/webstore/detail/powerful-pixiv-downloader/dkndmhgdcmjdmkdonmbgjpijejdcilfh)** 安裝本擴充功能。

**注意:** 有時 Chrome Web Store 上的擴充功能可能不是最新版本。如果有需要,你可以離線安裝。
推薦在 PC 瀏覽器上使用。如果你需要在 Android 系統上使用,可以使用 Kiwi 瀏覽器安裝此擴充套件。具體說明:

[怎么在安卓上使用](https://xuejianxianzun.github.io/PBDWiki/#/zh-cn/%E5%9C%A8%E7%BA%BF%E5%AE%89%E8%A3%85?id=android)

## 離線安裝

Expand Down
6 changes: 4 additions & 2 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@

## 在线安装

1. **Chromium 内核**的浏览器可以从 **[Chrome Web Store](https://chrome.google.com/webstore/detail/powerful-pixiv-downloader/dkndmhgdcmjdmkdonmbgjpijejdcilfh)** 安装本扩展。
**Chromium 内核**的浏览器可以从 **[Chrome Web Store](https://chrome.google.com/webstore/detail/powerful-pixiv-downloader/dkndmhgdcmjdmkdonmbgjpijejdcilfh)** 安装本扩展。

**注意:** 有时候 Chrome Web Store 上的扩展可能不是最新版本。如果有需要,你可以离线安装。
推荐在 PC 浏览器上使用。如果你需要在 Android 系统上使用,可以使用 Kiwi 浏览器安装此扩展。具体说明:

[怎么在安卓上使用](https://xuejianxianzun.github.io/PBDWiki/#/zh-cn/%E5%9C%A8%E7%BA%BF%E5%AE%89%E8%A3%85?id=android)

## 离线安装

Expand Down
148 changes: 143 additions & 5 deletions dist/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -25313,12 +25313,12 @@ class WorkPublishTime {
}
bindEvents() {
_utils_SecretSignal__WEBPACK_IMPORTED_MODULE_1__.secretSignal.register('ppdtask1', () => {
// 上次记录到 117360000
this.crawlData(117150000, 117369894);
// 上次记录到 118500000
this.crawlData(117370000, 118505797);
});
_utils_SecretSignal__WEBPACK_IMPORTED_MODULE_1__.secretSignal.register('ppdtask2', () => {
// 上次记录到 21870000
this.crawlData(21830000, 21874434, 'novels');
// 上次记录到 22110000
this.crawlData(21880000, 22119855, 'novels');
});
}
async crawlData(start, end, type = 'illusts') {
Expand Down Expand Up @@ -25370,7 +25370,7 @@ class WorkPublishTime {
catch (error) {
return resolve(this.crawlWork(++id, type));
}
}, 1700);
}, 1600);
});
}
}
Expand Down Expand Up @@ -33421,6 +33421,30 @@ const novelData = [
[21850000, 1711385301000],
[21860001, 1711542015000],
[21870000, 1711691358000],
[21880000, 1711808085000],
[21890000, 1711899903000],
[21900001, 1712048402000],
[21910002, 1712181192000],
[21920000, 1712323980000],
[21930000, 1712451639000],
[21940000, 1712575850000],
[21950000, 1712738176000],
[21960000, 1712907761000],
[21970000, 1713026853000],
[21980001, 1713159855000],
[21990000, 1713304268000],
[22000003, 1713454216000],
[22010000, 1713609088000],
[22020000, 1713709575000],
[22030001, 1713870918000],
[22040000, 1714035851000],
[22050000, 1714183495000],
[22060000, 1714306017000],
[22070000, 1714406420000],
[22080001, 1714561607000],
[22090000, 1714696149000],
[22100000, 1714817914000],
[22110000, 1714917205000],
];


Expand Down Expand Up @@ -45174,6 +45198,120 @@ const illustsData = [
[117340000, 1711644960000],
[117350000, 1711689840000],
[117360000, 1711714980000],
[117370000, 1711734360000],
[117380000, 1711773720000],
[117390000, 1711798440000],
[117400002, 1711815420000],
[117410000, 1711852620000],
[117420000, 1711876320000],
[117430000, 1711892220000],
[117440001, 1711908780000],
[117450000, 1711948740000],
[117460000, 1711972860000],
[117470001, 1711990080000],
[117480000, 1712034000000],
[117490000, 1712061060000],
[117500000, 1712084820000],
[117510000, 1712128140000],
[117520000, 1712150460000],
[117530001, 1712177220000],
[117540000, 1712217600000],
[117550000, 1712238900000],
[117560000, 1712271000000],
[117570000, 1712308140000],
[117580001, 1712327940000],
[117590000, 1712362800000],
[117600000, 1712393580000],
[117610000, 1712412300000],
[117620000, 1712442120000],
[117630000, 1712473020000],
[117640001, 1712491980000],
[117650000, 1712508960000],
[117660000, 1712554620000],
[117670000, 1712580420000],
[117680000, 1712605860000],
[117690000, 1712649840000],
[117700002, 1712670840000],
[117710000, 1712705820000],
[117720000, 1712743980000],
[117730001, 1712763180000],
[117740000, 1712809140000],
[117750000, 1712838840000],
[117760000, 1712867760000],
[117770001, 1712910720000],
[117780000, 1712930820000],
[117790000, 1712962920000],
[117800000, 1712994720000],
[117810000, 1713014820000],
[117820000, 1713041520000],
[117830001, 1713074280000],
[117840003, 1713095100000],
[117850000, 1713110400000],
[117860000, 1713154560000],
[117870000, 1713183120000],
[117880000, 1713205560000],
[117890000, 1713251820000],
[117900000, 1713274440000],
[117910001, 1713305880000],
[117920000, 1713345480000],
[117930001, 1713365400000],
[117940000, 1713406260000],
[117950000, 1713438780000],
[117960000, 1713458340000],
[117970000, 1713505800000],
[117980000, 1713530640000],
[117990000, 1713552300000],
[118000000, 1713591900000],
[118010000, 1713614760000],
[118020000, 1713633240000],
[118030001, 1713672360000],
[118040000, 1713695220000],
[118050000, 1713710580000],
[118060000, 1713746640000],
[118070000, 1713782580000],
[118080000, 1713800700000],
[118090000, 1713846480000],
[118100000, 1713875400000],
[118110000, 1713898800000],
[118120000, 1713944880000],
[118130002, 1713967320000],
[118140000, 1714005120000],
[118150000, 1714042260000],
[118160000, 1714062060000],
[118170000, 1714109820000],
[118180000, 1714135320000],
[118190000, 1714160220000],
[118200000, 1714198080000],
[118210000, 1714220700000],
[118220000, 1714240440000],
[118230000, 1714279020000],
[118240000, 1714303080000],
[118250001, 1714319160000],
[118260000, 1714358340000],
[118270000, 1714384860000],
[118280000, 1714401900000],
[118290000, 1714438620000],
[118300000, 1714471860000],
[118310000, 1714489020000],
[118320000, 1714524660000],
[118330000, 1714556040000],
[118340000, 1714574040000],
[118350000, 1714608900000],
[118360000, 1714642860000],
[118370000, 1714661700000],
[118380000, 1714696980000],
[118390000, 1714726080000],
[118400000, 1714744740000],
[118410000, 1714773360000],
[118420000, 1714804980000],
[118430000, 1714826580000],
[118440000, 1714845000000],
[118450000, 1714882320000],
[118460000, 1714905540000],
[118470000, 1714921200000],
[118480000, 1714955820000],
[118490000, 1714983000000],
[118500000, 1715001000000],
];


Expand Down
2 changes: 1 addition & 1 deletion dist/js/content.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Powerful Pixiv Downloader",
"version": "16.9.0",
"version": "17.0.0",
"manifest_version": 3,
"description": "强大的 Pixiv 批量下载器。Powerful Pixiv batch downloader. 強力な Pixiv ダウンローダー。",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerful-pixiv-downloader",
"version": "16.9.0",
"version": "17.0.0",
"description": "强大的 Pixiv 批量下载器。Powerful Pixiv batch downloader. 強力な Pixiv ダウンローダー。",
"repository": "https://github.com/xuejianxianzun/PixivBatchDownloader",
"author": "xuejianxianzun",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Powerful Pixiv Downloader",
"version": "16.9.0",
"version": "17.0.0",
"manifest_version": 3,
"description": "强大的 Pixiv 批量下载器。Powerful Pixiv batch downloader. 強力な Pixiv ダウンローダー。",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion src/ts/ShowWhatIsNew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ShowWhatIsNew {
let msg = `
<span>${lang.transl('_更新说明v1700')}</span>
`

// <strong><span>${lang.transl('_新增功能')}:</span></strong>
// <span class="blue">${lang.transl('_保存作品的简介')}</span>

Expand Down
15 changes: 8 additions & 7 deletions src/ts/crawl/InitPageBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ abstract class InitPageBase {
}

// 添加其他任意元素(如果有)
protected addAnyElement(): void { }
protected addAnyElement(): void {}

// 初始化任意内容
// 如果有一些代码不能归纳到 init 方法的前面几个方法里,那就放在这里
// 通常用来初始化特有的组件、功能、事件、状态等
protected initAny() { }
protected initAny() {}

// 销毁初始化页面时添加的元素和事件,恢复设置项等
protected destroy(): void {
Expand Down Expand Up @@ -163,7 +163,7 @@ abstract class InitPageBase {
}

// 设置要获取的作品数或页数。有些页面使用,有些页面不使用。使用时再具体定义
protected getWantPage() { }
protected getWantPage() {}

// 获取多图作品设置。因为这个不属于过滤器 filter,所以在这里直接获取
protected getMultipleSetting() {
Expand Down Expand Up @@ -272,7 +272,7 @@ abstract class InitPageBase {
}

// 获取 id 列表,由各个子类具体定义
protected getIdList() { }
protected getIdList() {}

// id 列表获取完毕,开始抓取作品内容页
protected async getIdListFinished() {
Expand Down Expand Up @@ -302,7 +302,8 @@ abstract class InitPageBase {
for (const result of resultList) {
Utils.downloadFile(
result.url,
`ID list-total ${result.total
`ID list-total ${
result.total
}-from ${Tools.getPageTitle()}-${Utils.replaceUnsafeStr(
new Date().toLocaleString()
)}.json`
Expand Down Expand Up @@ -345,7 +346,7 @@ abstract class InitPageBase {
}

// 重设抓取作品列表时使用的变量或标记
protected resetGetIdListStatus() { }
protected resetGetIdListStatus() {}

protected log429ErrorTip = Utils.debounce(() => {
log.error(lang.transl('_抓取被限制时返回空结果的提示'))
Expand Down Expand Up @@ -607,7 +608,7 @@ abstract class InitPageBase {
}

// 抓取完成后,对结果进行排序
protected sortResult() { }
protected sortResult() {}

/**定时抓取的按钮 */
protected addStartTimedCrawlBtn(cb: Function) {
Expand Down
2 changes: 1 addition & 1 deletion src/ts/crawlArtworkPage/InitNewArtworkPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class InitNewArtworkPage extends InitPageBase {
this.addCancelTimedCrawlBtn()
}

protected initAny() { }
protected initAny() {}

protected setFormOption() {
// 个数/页数选项的提示
Expand Down
15 changes: 9 additions & 6 deletions src/ts/crawlArtworkPage/InitSearchArtworkPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,11 +657,13 @@ class InitSearchArtworkPage extends InitPageBase {
</div>
<!--图片部分-->
<div class="imgWrap">
<img src="${settings.replaceSquareThumb
? Tools.convertThumbURLTo540px(data.thumb)
: data.thumb
}" alt="${data.title
}" style="object-fit: contain; object-position: center center;">
<img src="${
settings.replaceSquareThumb
? Tools.convertThumbURLTo540px(data.thumb)
: data.thumb
}" alt="${
data.title
}" style="object-fit: contain; object-position: center center;">
<!-- 动图 svg -->
${ugoiraHTML}
</div>
Expand All @@ -683,7 +685,8 @@ class InitSearchArtworkPage extends InitPageBase {
</div>
</div>
<!--标题名-->
<a target="_blank" class="titleLink" href="/artworks/${data.idNum}">${data.title
<a target="_blank" class="titleLink" href="/artworks/${data.idNum}">${
data.title
}</a>
<!--底部-->
<div class="bottomBar">
Expand Down
2 changes: 1 addition & 1 deletion src/ts/crawlMixedPage/InitBookmarkNewPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class InitBookmarkNewPage extends InitPageBase {
this.addCancelTimedCrawlBtn()
}

protected initAny() { }
protected initAny() {}

protected setFormOption() {
// 个数/页数选项的提示
Expand Down
7 changes: 4 additions & 3 deletions src/ts/crawlMixedPage/InitBookmarkPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ class InitBookmarkPage extends InitPageBase {
for (const result of resultList) {
Utils.downloadFile(
result.url,
`Bookmark list-total ${result.total
`Bookmark list-total ${
result.total
}-from ${Tools.getPageTitle()}-${Utils.replaceUnsafeStr(
new Date().toLocaleString()
)}.json`
Expand Down Expand Up @@ -490,8 +491,8 @@ class InitBookmarkPage extends InitPageBase {
(workData as ArtworkCommonData).illustType === undefined
? 'novels'
: Tools.getWorkTypeString(
(workData as ArtworkCommonData).illustType
),
(workData as ArtworkCommonData).illustType
),
id: workData.id,
})

Expand Down
Loading

0 comments on commit 2deb27d

Please sign in to comment.