Skip to content

Commit

Permalink
[internal] update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gan-of-culture committed Oct 6, 2024
1 parent de72810 commit 62365a3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion extractors/hentaifoundry/hentaifoundry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestParseURL(t *testing.T) {
}, {
Name: "Overview Category",
URL: "https://www.hentai-foundry.com/categories/372/Anime-and-Manga/Chobits/pictures",
Want: 15,
Want: 16,
},
}
config.Amount = 50
Expand Down
21 changes: 9 additions & 12 deletions extractors/hentaimama/hentaimama_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,25 @@ func TestExtract(t *testing.T) {
{
Name: "Single Episode using HLS only",
Args: test.Args{
URL: "https://hentaimama.io/episodes/kuroinu-ii-animation-episode-1/",
Title: "Kuroinu II The Animation Episode 1",
Quality: "1280x720",
Size: 446315760,
URL: "https://hentaimama.io/episodes/kuroinu-ii-animation-episode-1/",
Title: "Kuroinu II The Animation Episode 1",
Size: 172537611,
},
},
{
Name: "Single Episode using a single mp4 file",
Args: test.Args{
URL: "https://hentaimama.io/episodes/ura-jutaijima-episode-1/",
Title: "Ura Jutaijima Episode 1",
Quality: "",
Size: 77530809,
URL: "https://hentaimama.io/episodes/ura-jutaijima-episode-1/",
Title: "Ura Jutaijima Episode 1",
Size: 77530809,
},
},
{
Name: "Single Episode using a both mp4 and HLS",
Args: test.Args{
URL: "https://hentaimama.io/episodes/torokase-orgasm-animation-episode-1/",
Title: "Torokase Orgasm The Animation Episode 1",
Quality: "1280x720",
Size: 427589832,
URL: "https://hentaimama.io/episodes/torokase-orgasm-animation-episode-1/",
Title: "Torokase Orgasm The Animation Episode 1",
Size: 186261816,
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions extractors/iwara/iwara_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func TestExtract(t *testing.T) {
Args: test.Args{
URL: "https://www.iwara.tv/video/zwkobu5eevi17m309/14",
Title: "14.舞夜の侍奉Ⅱ💕",
Quality: "540p",
Size: 60567929,
Quality: "Source",
Size: 90608128,
},
},
{
Expand Down
14 changes: 9 additions & 5 deletions parsers/hls/hls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,26 @@ func TestExtract(t *testing.T) {
}{
{
Name: "HLS where stream order is from small to high",
URL: "https://na-02.javprovider.com/hls/K/kuroinu-ii-animation/1/playlist.m3u8",
URL: "https://va04-edge.tmncdn.io/wp-content/uploads/Bubble_de_House_de/episode_1/ja.m3u8",
Headers: map[string]string{
"Referer": "https://hentaimama.io",
"Referer": "https://muchohentai.com/",
},
Want: map[string]*static.Stream{
"0": {
Type: static.DataTypeVideo,
Quality: "1280x720",
Quality: "1920x1080",
},
"1": {
Type: static.DataTypeVideo,
Quality: "842x480",
Quality: "1280x720",
},
"2": {
Type: static.DataTypeVideo,
Quality: "640x360",
Quality: "864x486",
},
"3": {
Type: static.DataTypeAudio,
Quality: "",
},
},
},
Expand Down

0 comments on commit 62365a3

Please sign in to comment.