Skip to content

Commit

Permalink
added support for .webp files on HentaiEra and other related sites
Browse files Browse the repository at this point in the history
  • Loading branch information
gan-of-culture committed Jan 10, 2025
1 parent cfd42af commit eb05d4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extractors/htdoujin/htdoujin.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ func extractData(ID string) (*static.Data, error) {
params[0] = "bmp"
case "g":
params[0] = "gif"
case "w":
params[0] = "webp"
}
URLs = append(URLs, &static.URL{
URL: fmt.Sprintf("%s%s/%s/%d.%s", cdn, imageDir[1], gID[1], i, params[0]),
Expand Down
9 changes: 9 additions & 0 deletions extractors/htdoujin/htdoujin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ func TestExtract(t *testing.T) {
Size: 0,
},
},
{
Name: "Single Gallery HentaiEra with webp",
Args: test.Args{
URL: "https://hentaiera.com/gallery/1372600/",
Title: "Fude Oroshi Saya-chan",
Quality: "",
Size: 0,
},
},
{
Name: "Single Gallery HentaiEnvy",
Args: test.Args{
Expand Down

0 comments on commit eb05d4d

Please sign in to comment.