Skip to content

Commit

Permalink
[FIX] hstream.moe: updated source URL regex
Browse files Browse the repository at this point in the history
  • Loading branch information
gan-of-culture committed Dec 27, 2022
1 parent 8c60881 commit d658dbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extractors/hentaidude/hentaidude_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestParseURL(t *testing.T) {
}, {
Name: "Landing page",
URL: "https://hentaidude.com/",
Want: 20,
Want: 30,
}, {
Name: "Orderby",
URL: "https://hentaidude.com/?orderby=date",
Expand Down
4 changes: 2 additions & 2 deletions extractors/hstream/hstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

const site = "https://hstream.moe/"

var reVideoSources = regexp.MustCompile(`https://stream.hstream.moe/\d+/[\w.]+/[\w./]+\.(?:mp4|webm)`)
var reCaptionSource = regexp.MustCompile(`https://stream.hstream.moe/\d+/[\w.]+/[\w./]+\.ass`)
var reVideoSources = regexp.MustCompile(`https://.+/\d+/[\w.]+/[\w./]+\.(?:mp4|webm)`)
var reCaptionSource = regexp.MustCompile(`https://.+/\d+/[\w.]+/[\w./]+\.ass`)

type extractor struct{}

Expand Down

0 comments on commit d658dbb

Please sign in to comment.