Skip to content

Commit

Permalink
[FIX] rule34.paheal.net: updatet detection if post is a video
Browse files Browse the repository at this point in the history
  • Loading branch information
gan-of-culture committed Feb 2, 2023
1 parent cb77b98 commit 1453a70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extractors/rule34/rule34.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func extractData(URL string) (*static.Data, error) {
}

dataType := static.DataTypeImage
if strings.Contains(htmlString, "#Videomain") {
if strings.Contains(htmlString, "Videomain") {
dataType = static.DataTypeVideo
}

Expand Down
2 changes: 1 addition & 1 deletion extractors/rule34/rule34_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func TestMassExtract(t *testing.T) {
config.Amount = 10
elements, err := New().Extract(tt.URL)
if err != nil {
t.Error("elements has error or is too big for single tests")
test.CheckError(t, err)
}
if len(elements) != tt.Want {
t.Errorf("Got: %v - Want: %v", len(elements), tt.Want)
Expand Down

0 comments on commit 1453a70

Please sign in to comment.