Skip to content

Commit

Permalink
[extractor:hentaiyes] updated extractor and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gan-of-culture committed Sep 19, 2023
1 parent 73246d0 commit 1b700a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions extractors/hentaiyes/hentaiyes.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"regexp"

"github.com/gan-of-culture/get-sauce/extractors/htstreaming"
"github.com/gan-of-culture/get-sauce/extractors/nhgroup"
"github.com/gan-of-culture/get-sauce/request"
"github.com/gan-of-culture/get-sauce/static"
"github.com/gan-of-culture/get-sauce/utils"
Expand Down Expand Up @@ -60,9 +60,9 @@ func parseURL(URL string) []string {

func extractData(URL string) (*static.Data, error) {
slug := reSlug.FindStringSubmatch(URL)
embedURL := fmt.Sprintf("%sembed.php?name=%s&source=1", site, slug[1])
embedURL := fmt.Sprintf("%sembed_new.php?name=%s&source=1", site, slug[1])

data, err := htstreaming.ExtractData(embedURL)
data, err := nhgroup.ExtractData(embedURL)
if err != nil {
return nil, err
}
Expand Down
4 changes: 2 additions & 2 deletions extractors/hentaiyes/hentaiyes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func TestExtract(t *testing.T) {
Args: test.Args{
URL: "https://hentaiyes.com/watch/kanpeki-ojou-sama-no-watakushi-ga-dogeza-de-mazo-ochisuru-choroin-na-wakenai-desu-wa-episode-03/",
Title: "kanpeki-ojou-sama-no-watakushi-ga-dogeza-de-mazo-ochisuru-choroin-na-wakenai-desu-wa-episode-03",
Quality: "1280x720",
Size: 123142820,
Quality: "",
Size: 419430132,
},
},
}
Expand Down

0 comments on commit 1b700a7

Please sign in to comment.