From 3c47d1f627e31486ded84125f4e906820dbd1b54 Mon Sep 17 00:00:00 2001 From: Chihchy Date: Sun, 27 Oct 2024 23:07:49 +0800 Subject: [PATCH] Update parser tests --- .../Parser/Gallery/GalleryDetail.html | 22 +- .../Resources/Parser/Other/EhSetting.html | 219 +++++++++--------- .../Gallery/GalleryDetailParserTests.swift | 28 +-- .../Parser/Other/EhSettingParserTests.swift | 12 +- 4 files changed, 139 insertions(+), 142 deletions(-) diff --git a/EhPandaTests/Resources/Parser/Gallery/GalleryDetail.html b/EhPandaTests/Resources/Parser/Gallery/GalleryDetail.html index ca4bc0f5..d31002db 100644 --- a/EhPandaTests/Resources/Parser/Gallery/GalleryDetail.html +++ b/EhPandaTests/Resources/Parser/Gallery/GalleryDetail.html @@ -1,9 +1,9 @@ -●PIXIV● HYYT [67227995] - E-Hentai Galleries +[Artist] mks - E-Hentai Galleries - + @@ -13,11 +13,11 @@ -
Front Page
Watched
Popular
Torrents
Favorites
My Home
My Uploads
Toplists
Bounties
News
+
Front Page
Watched
Popular
Torrents
Favorites
My Home
My Uploads
Toplists
Bounties
News
-

●PIXIV● HYYT [67227995]

Showing 1 - 40 of 612 images

<1234567...16>
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
<1234567...16>
Posted on 02 November 2023, 12:27 by:   KEYLUN    PM
Uploader Comment
https://www.pixiv.net/users/67227995

=================================================
每天大量更新/Massive update every day

https://e-hentai.org/uploader/KEYLUN
=========================================================
Q群被炸,轉戰TELEGRAM
(中文限:做種&補種&交流) :https://t.me/+-Pwn49-d7uQxN2M1
Posted on 17 September 2021, 17:52 by:   onlyregistere    PM
[Vote+]   [Vote-]
Score +82
Pretty funny combination of decent art and terrible low res fetish tattoo photo bashing, what a waste. At least most of them come with the base image.
This stuff should come with a tag so it can be filtered.
Posted on 07 October 2021, 15:47 by:   Nikolaios    PM
[Vote+]   [Vote-]
Score +18
bro translate the chinese name i cannot find the author
Posted on 07 October 2021, 16:42 by:   yooooooooooooiooo    PM
[Vote+]   [Vote-]
Score +52
我超,晚晚 不要啊
Posted on 08 October 2021, 03:17 by:   zdb493637495    PM
[Vote+]   [Vote-]
Score +49
我超,乐
Posted on 13 November 2021, 06:24 by:   Severusli    PM
[Vote+]   [Vote-]
Score +161
粉色矮子因为未成年人过不了审核逃过一劫
Posted on 25 November 2021, 23:47 by:   0ld0neEye    PM
[Vote+]   [Vote-]
Score +21
Ahegao, womb tattoo... good to see we've already set the low bar for Shenhe art in the first couple of days.
Posted on 26 November 2021, 15:50 by:   chung~    PM
[Vote+]   [Vote-]
Score +48
黑人花式體操
Posted on 26 November 2021, 16:25 by:   唱跳rap篮球    PM
[Vote+]   [Vote-]
Score +10
尼哥尼哥He
Posted on 05 December 2021, 05:39 by:   Farry01    PM
[Vote+]   [Vote-]
Score +125
楼上的ylg密麻麻石蜡,提出现的人物也算ky是吧,你是不是觉得你会个ky的词就是网络弄潮儿了啊
Posted on 07 December 2021, 02:40 by:   WorkSpend street    PM
[Vote+]   [Vote-]
Score +53
倪哥能不能死啊😅
Posted on 07 December 2021, 18:43 by:   samuelmoon    PM
[Vote+]   [Vote-]
Score +95
黑人就该被灭绝
Posted on 16 December 2021, 13:03 by:   hhhhf123    PM
[Vote+]   [Vote-]
Score +28
qq人:乌鸦座飞机!
Posted on 01 January 2022, 11:29 by:   二苇渡江    PM
[Vote+]   [Vote-]
Score +39
申鹤就应该被黑人隔着裤袜草死
Posted on 08 January 2022, 15:48 by:   雪芬12256    PM
[Vote+]   [Vote-]
Score +51
画技忽高忽低,透视也七上八下....不会是半路出家吧?
Posted on 08 January 2022, 18:23 by:   kevinstu7    PM
[Vote+]   [Vote-]
Score +14
xp巨好,如果画的更好就完美了
Posted on 11 January 2022, 05:18 by:   魔女的丝袜    PM
[Vote+]   [Vote-]
Score +14
感觉更像是哥布林但比哥布林还背德
Posted on 12 January 2022, 08:12 by:   ss407935963    PM
[Vote+]   [Vote-]
Score +5
呃呃呃呃好吧
Last edited on 26 April 2022, 22:11.
Posted on 17 February 2022, 09:05 by:   acgs    PM
[Vote+]   [Vote-]
Score +16
倪哥能不能爬啊😋
Posted on 06 March 2022, 09:06 by:   jmc_akatsuki    PM
[Vote+]   [Vote-]
Score +16
p站找不到这个画师了,是删号了还是炸号了?
Posted on 06 March 2022, 14:36 by:   ShaodowNinja    PM
[Vote+]   [Vote-]
Score +19
删作品加换名,问了下说是没事,我暂且蒙古
Posted on 08 March 2022, 14:50 by:   Stella0119    PM
[Vote+]   [Vote-]
Score +12
我超,以前的画都删了,没那些小作文都没那么色了
Posted on 20 March 2022, 00:04 by:   qingjiangxiangbei    PM
[Vote+]   [Vote-]
Score +13
一只喜爱,作者名字
Posted on 07 April 2022, 06:35 by:   CNx1    PM
[Vote+]   [Vote-]
Score +10
没有爱老师的旁白,图的色度大大下降了。
Posted on 07 April 2022, 19:22 by:   YZZ200219    PM
[Vote+]   [Vote-]
Score +12
这位画师的精髓可是小作文啊,这单图不太行啊
Posted on 18 April 2022, 12:59 by:   fengqing123    PM
[Vote+]   [Vote-]
Score +8
可惜没简介了
Posted on 02 May 2022, 04:59 by:   空明幻想    PM
[Vote+]   [Vote-]
Score +12
这个画师的作品在eh上的排序都是反的 怎么回事
Posted on 11 May 2022, 02:59 by:   Yinjiuzui    PM
[Vote+]   [Vote-]
Score +9
可有人存过珍惜小作文资源?(
Posted on 17 June 2022, 15:53 by:   Edwi17    PM
[Vote+]   [Vote-]
Score +57
尼哥不就是现实题材下的哥布林和兽人吗。。。有什么接受不了的,尼哥这一个设定就有流浪汉的脏乱差有黑帮的毒品有体育老师的体格,再加上大吉吧的刻板印象,拿来当黄毛设定不要太方便(别人的评论)
Posted on 18 June 2022, 09:20 by:   ss407935963    PM
[Vote+]   [Vote-]
Score +91
现实里没有强奸和轮奸吗?为什么你们还要看呢?看个本子因为屁大点事骂到画师删作品加改名。我看有尼哥的本子是媚黑,那如果你看了有违法行为的本子敢不敢去自首??更别提r18g的本子了。有些小鬼是真的恶心,纯低能。
Posted on 06 July 2022, 22:43 by:   gftrym    PM
[Vote+]   [Vote-]
Score +43
这评论区太脑瘫了。
Posted on 19 July 2022, 10:48 by:   hentaisang52    PM
[Vote+]   [Vote-]
Score +12
没文字感觉没味道,每次简介的小作文可是精华啊
Posted on 09 September 2022, 14:39 by:   huifeidehaitun    PM
[Vote+]   [Vote-]
Score +6
原来还有小作文,看了这么多次,都不知道QAQ
Posted on 12 September 2022, 07:29 by:   fanboshi    PM
[Vote+]   [Vote-]
Score +43
整个星球的黑人加起来都不够你们二次元的♠去榨的
Posted on 17 September 2022, 06:29 by:   seedt    PM
[Vote+]   [Vote-]
Score +10
所以说什么时候把留学牲宿舍拆了 把negro,学渣棒那些遣返捏
Posted on 05 May 2023, 14:25 by:   Bakster123    PM
[Vote+]   [Vote-]
Score +15
This artist shows some creativity in camera angles and poses, not too far from the generic ones but enough to catch the eye.

I feel that if they invest more in this, they will gain a foothold at a new level.
Posted on 05 May 2023, 15:19 by:   gunpowderfans    PM
[Vote+]   [Vote-]
Score +6
什么时候画马的
Posted on 05 May 2023, 17:57 by:   shuyuuuuu    PM
[Vote+]   [Vote-]
Score +24
tmd截肢标签放第一个,结果翻了快三百页才看到截肢图😡
Posted on 06 May 2023, 05:02 by:   Nicolasbot    PM
[Vote+]   [Vote-]
Score +7
看个黄图都有种族主义是吧,没出生在德三上前线是不是浑身刺挠?
Posted on 24 May 2023, 07:33 by:   Fuck you?    PM
[Vote+]   [Vote-]
Score +6
雷电将军太戳我啦😍😍
Posted on 31 May 2023, 00:31 by:   白兔糖~    PM
[Vote+]   [Vote-]
Score +6
这个作者现在怎么没有赞助了
Posted on 04 June 2023, 16:12 by:   mooyee    PM
[Vote+]   [Vote-]
Score +13
这个作者画米家烧鸡一直很顶的,尤其是崩三图,别家出高质量崩三r18或者r18g图都很少,就这个作者一直出很顶的图
Posted on 04 June 2023, 16:29 by:   茜色的火焰    PM
[Vote+]   [Vote-]
Score +16
我也歧视黑人 但是这种色图里的黑人我没什么感觉
Posted on 05 June 2023, 04:14 by:   黑色騎士    PM
[Vote+]   [Vote-]
Score +6
我宁肯看尼也不想看散呀,这东西在我这和慎二一个量级的(在色图里看见觉得晦气)
Posted on 05 June 2023, 14:48 by:   eric11825    PM
[Vote+]   [Vote-]
Score +6
強烈建議去P站看作者的小作文
Posted on 25 July 2023, 03:09 by:   yxlm9527    PM
[Vote+]   [Vote-]
Score +19
评论区真是卧龙凤雏,我每次看到这种类型的本子就先点开评论区瞅瞅看有没有人才😆
Posted on 25 July 2023, 09:03 by:   yazawayuan    PM
[Vote+]   [Vote-]
Score +3
这位老师的小作文才是精髓啊
Posted on 02 August 2023, 04:50 by:   ussr_without_⑨    PM
[Vote+]   [Vote-]
Score +11
空哥跟重云这个对比笑死我了
Posted on 02 November 2023, 12:32 by:   cpwt4567    PM
[Vote+]   [Vote-]
Score +4
看到我老婆夜兰像母狗一样被人操就觉得好幸福

There are 19 more comments below the viewing threshold - click to show all.

[Post New Comment]

+

[Artist] mks

[アーティスト] mks

Non-H
Posted:2024-10-27 06:20
Parent:2930572
Visible:Yes
Language:Japanese  
File Size:314.3 MiB
Length:156 pages
Favorited:587 times
Rating:
108
Average: 4.74

Showing 1 - 40 of 156 images

<1234>
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
Posted on 27 October 2024, 06:20 by:   Pokom    PM
Uploader Comment
https://www.pixiv.net/users/750220

https://mks.booth.pm/
https://twitter.com/mks_fStD
Posted on 28 August 2022, 07:32 by:   Roobubba    PM
[Vote+]   [Vote-]
Score +109
Some gorgeous scenery there. Makes a refreshing change to see some good, clean stuff.
Posted on 27 November 2022, 04:02 by:   囧斯诺    PM
[Vote+]   [Vote-]
Score +5
真的美极了
Posted on 14 December 2022, 13:09 by:   siyuaner    PM
[Vote+]   [Vote-]
Score +27
在E站,你甚至可以看风景
Posted on 11 January 2023, 05:28 by:   曾俊华    PM
[Vote+]   [Vote-]
Score +19
谁说E站就只能看那些东西?凡是我们所欣赏的,都可以在这里表达出来
Posted on 11 January 2023, 10:59 by:   ddddecade123    PM
[Vote+]   [Vote-]
Score +9
还有没有画这种的大佬啊,迷上了
Posted on 02 July 2023, 03:23 by:   Akrbear    PM
[Vote+]   [Vote-]
Score +7
真的好漂亮啊
Posted on 02 July 2023, 09:34 by:   犯罪高手    PM
[Vote+]   [Vote-]
Score +12
生活不止眼前的苟且,还有诗和远方
Posted on 26 January 2024, 15:35 by:   HQH1301376128    PM
[Vote+]   [Vote-]
Score +21
想到了小时候放学去同学家打游戏错过时间,在山里骑着自行车回家路过田野的景象,那时候的月亮和星星是真的亮啊,不过有一段路路过坟山还是很怕的
Posted on 27 October 2024, 06:24 by:   黑锋血色    PM
[Vote+]   [Vote-]
Score +7
赛博亚历山大图书馆
- Front -   LoFi   Forums   HentaiVerse   Wiki   Twitter   ToS   Advertise - + Front +   LoFi   Forums   HentaiVerse   Wiki   Twitter   ToS   Advertise +
diff --git a/EhPandaTests/Resources/Parser/Other/EhSetting.html b/EhPandaTests/Resources/Parser/Other/EhSetting.html index c0dc54df..b575cfe4 100644 --- a/EhPandaTests/Resources/Parser/Other/EhSetting.html +++ b/EhPandaTests/Resources/Parser/Other/EhSetting.html @@ -1,10 +1,10 @@ - - + + E-Hentai Galleries - The Free Hentai Doujinshi, Manga and Image Gallery System - + @@ -20,21 +20,7 @@ return false; } - -

-[Overview] -  [My Stats] -  [My Settings] -  [My Tags] -  [Hentai@Home] -  [Donations] -  [Hath Perks] -  [Hath Exchange] -  [GP Exchange] -  [Credit Log] -  [Karma Log] -

- +
@@ -56,6 +42,19 @@
-

Favorites

@@ -254,13 +253,72 @@

Favorites

+
-

You can also select your default sort order for galleries on your favorites page. Note that favorites added prior to the March 2016 revamp did not store a timestamp, and will use the gallery posted time regardless of this setting.

+

Default sort order for galleries on your favorites page:

+ + +

Search Result Count

+ +
+

How many results would you like per page for the index/search page and torrent search pages? (Hath Perk: Paging Enlargement Required)

+
+

+

+

+
+
+ + +

Thumbnail Settings

+ +
+

How would you like the mouse-over thumbnails on the front page to load when using Minimal or Compact display mode?

+
+

+

+
+
+ +
+

You can set a default thumbnail configuration for all galleries you visit.

+
+ + + + + + + + + +
Size: +
+
+
Rows: +
+
+
+
+
+ + +

Thumbnail Scaling

+ +
+ + + + + +
%Thumbnails on the thumbnail and extended gallery list views can be scaled to a custom value between 75% and 150%.
+
+

Ratings

@@ -273,6 +331,7 @@

Ratings

+

Tag Watching Threshold

@@ -285,7 +344,6 @@

Tag Watching Threshold

-

Tag Filtering Threshold

@@ -298,7 +356,7 @@

Tag Filtering Threshold

- +

Show Filtered Removal Count

@@ -460,62 +518,6 @@

Excluded Uploaders

You are currently using 0 of 1000 exclusion slots.

- - -

Search Result Count

- -
-

How many results would you like per page for the index/search page and torrent search pages? (Hath Perk: Paging Enlargement Required)

-
-

-

-

-
-
- -

Thumbnail Settings

- -
-

How would you like the mouse-over thumbnails on the front page to load when using List Mode?

-
-

-

-
-
-
-

You can set a default thumbnail configuration for all galleries you visit.

-
- - - - - - - - - -
Size: -
-
-
Rows: -
-
-
-
-
- - -

Thumbnail Scaling

- -
- - - - - -
%Thumbnails on the thumbnail and extended gallery list views can be scaled to a custom value between 75% and 150%.
-
-

Viewport Override

@@ -567,16 +569,6 @@

Gallery Page Numbering

- -

Original Images

- -
-

Use original images instead of the resampled versions where available?

-
-

-

-
-

Multi-Page Viewer

@@ -609,6 +601,11 @@

Multi-Page Viewer

+ +
+ Front +   LoFi   Forums   HentaiVerse   Wiki   Twitter   ToS   Advertise +
diff --git a/EhPandaTests/Tests/Parser/Gallery/GalleryDetailParserTests.swift b/EhPandaTests/Tests/Parser/Gallery/GalleryDetailParserTests.swift index 527eddd7..86470902 100644 --- a/EhPandaTests/Tests/Parser/Gallery/GalleryDetailParserTests.swift +++ b/EhPandaTests/Tests/Parser/Gallery/GalleryDetailParserTests.swift @@ -14,27 +14,27 @@ class GalleryDetailParserTests: XCTestCase, TestHelper { let document = try htmlDocument(filename: .galleryDetail) let (detail, state) = try Parser.parseGalleryDetail(doc: document, gid: "2725078") XCTAssertEqual(detail.gid, "2725078") - XCTAssertEqual(detail.title, "●PIXIV● HYYT [67227995]") - XCTAssertEqual(detail.jpnTitle, nil) + XCTAssertEqual(detail.title, "[Artist] mks") + XCTAssertEqual(detail.jpnTitle, "[アーティスト] mks") XCTAssertFalse(detail.isFavorited) XCTAssertEqual(detail.visibility, .yes) XCTAssertEqual(detail.rating, 4.5) XCTAssertEqual(detail.userRating, 0) - XCTAssertEqual(detail.ratingCount, 569) - XCTAssertEqual(detail.category, .imageSet) + XCTAssertEqual(detail.ratingCount, 108) + XCTAssertEqual(detail.category, .nonH) XCTAssertEqual(detail.language, .japanese) - XCTAssertEqual(detail.uploader, "KEYLUN") - XCTAssertEqual(detail.coverURL?.absoluteString, "https://ehgt.org/5e/b5/5eb550886fe58da8c780d9ab9182717ae9bcda91-604248-2235-3016-jpg_250.jpg") - XCTAssertEqual(detail.archiveURL?.absoluteString, "https://e-hentai.org/archiver.php?gid=0000000&token=0000000000&or=471924--76094077f7be1ee86673ef75c45e0d382961dc9c") - XCTAssertEqual(detail.parentURL?.absoluteString, "https://e-hentai.org/g/2624293/78cf5e78a5/") - XCTAssertEqual(detail.favoritedCount, 9218) - XCTAssertEqual(detail.pageCount, 612) - XCTAssertEqual(detail.sizeCount, 657.6) + XCTAssertEqual(detail.uploader, "Pokom") + XCTAssertEqual(detail.coverURL?.absoluteString, "https://ehgt.org/03/08/0308268821e99628b05a19fa54e2fc0fa9ad8f4b-1705560-1012-1470-png_250.jpg") + XCTAssertEqual(detail.archiveURL?.absoluteString, "https://e-hentai.org/archiver.php?gid=3103480&token=0000000000&or=480566--44111f81616a100ccab3d9be8ac8b5adedb5d44e") + XCTAssertEqual(detail.parentURL?.absoluteString, "https://e-hentai.org/g/2930572/daf4b9880d/") + XCTAssertEqual(detail.favoritedCount, 587) + XCTAssertEqual(detail.pageCount, 156) + XCTAssertEqual(detail.sizeCount, 314.3) XCTAssertEqual(detail.sizeType, "MiB") - XCTAssertEqual(detail.torrentCount, 5) - XCTAssertEqual(state.tags.count, 4) + XCTAssertEqual(detail.torrentCount, 1) + XCTAssertEqual(state.tags.count, 1) XCTAssertEqual(state.previewURLs.count, 40) XCTAssertEqual(state.previewConfig, .normal(rows: 4)) - XCTAssertEqual(state.comments.count, 49) + XCTAssertEqual(state.comments.count, 10) } } diff --git a/EhPandaTests/Tests/Parser/Other/EhSettingParserTests.swift b/EhPandaTests/Tests/Parser/Other/EhSettingParserTests.swift index 61639d94..b97a2bf2 100644 --- a/EhPandaTests/Tests/Parser/Other/EhSettingParserTests.swift +++ b/EhPandaTests/Tests/Parser/Other/EhSettingParserTests.swift @@ -12,7 +12,7 @@ import XCTest class EhSettingParserTests: XCTestCase, TestHelper { func testExample() throws { let document = try htmlDocument(filename: .ehSetting) - let ehSetting = try Parser.parseEhSetting(doc: document) + let ehSetting = try Parser.parseEhSetting(doc: document, galleryHost: .ehentai) testEhProfiles(ehSetting.ehProfiles) testCapability(ehSetting: ehSetting) testRemainingStuff(ehSetting: ehSetting) @@ -45,8 +45,8 @@ class EhSettingParserTests: XCTestCase, TestHelper { XCTAssertEqual(ehSetting.capableSearchResultCount, .oneHundred) XCTAssertEqual(ehSetting.capableSearchResultCounts, [.twentyFive, .fifty, .oneHundred]) - XCTAssertEqual(ehSetting.capableThumbnailConfigSize, .large) - XCTAssertEqual(ehSetting.capableThumbnailConfigSizes, EhSetting.ThumbnailSize.allCases) + XCTAssertEqual(ehSetting.thumbnailConfigSize, .normal) + XCTAssertEqual(ehSetting.capableThumbnailConfigSizes, [.normal, .large]) XCTAssertEqual(ehSetting.capableThumbnailConfigRowCount, .forty) XCTAssertEqual(ehSetting.capableThumbnailConfigRowCounts, EhSetting.ThumbnailRowCount.allCases) @@ -75,16 +75,16 @@ class EhSettingParserTests: XCTestCase, TestHelper { XCTAssertEqual(ehSetting.showFilteredRemovalCount, true) XCTAssertEqual(ehSetting.excludedLanguages, .init(repeating: false, count: 50)) XCTAssertEqual(ehSetting.excludedUploaders, "") - XCTAssertEqual(ehSetting.searchResultCount, .twentyFive) + XCTAssertEqual(ehSetting.searchResultCount, .oneHundred) XCTAssertEqual(ehSetting.thumbnailLoadTiming, .onMouseOver) - XCTAssertEqual(ehSetting.thumbnailConfigSize, .large) + XCTAssertEqual(ehSetting.thumbnailConfigSize, .normal) XCTAssertEqual(ehSetting.thumbnailConfigRows, .four) XCTAssertEqual(ehSetting.thumbnailScaleFactor, 100) XCTAssertEqual(ehSetting.viewportVirtualWidth, 0) XCTAssertEqual(ehSetting.commentsSortOrder, .oldest) XCTAssertEqual(ehSetting.commentVotesShowTiming, .onHoverOrClick) XCTAssertEqual(ehSetting.tagsSortOrder, .alphabetical) - XCTAssertEqual(ehSetting.galleryShowPageNumbers, false) + XCTAssertEqual(ehSetting.galleryPageNumbering, .none) XCTAssertEqual(ehSetting.useOriginalImages, false) XCTAssertEqual(ehSetting.useMultiplePageViewer, true) XCTAssertEqual(ehSetting.multiplePageViewerStyle, .alignLeftScaleIfOverWidth)