feat: port 5 Madara sources (manhwacomics, manhwaget, manhwajoy, toon18, mangadia)

This commit is contained in:
achmad
2026-05-14 23:55:24 +07:00
parent 77c2616224
commit 380d6d12ad
10 changed files with 124 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package mangadia
import (
"goyomi/internal/registry"
base "goyomi/sources/base/madara"
)
func New() *base.Source {
return base.New(base.Config{
Name: "MangaDia",
BaseURL: "https://mangadia.com",
Lang: "en",
UseNewChapterEndpoint: true,
})
}
func init() { registry.Register(New()) }
+8
View File
@@ -0,0 +1,8 @@
package mangadia
import (
"testing"
"goyomi/internal/sourcetest"
)
func TestSource(t *testing.T) { sourcetest.Run(t, New(), "MangaDia", "en") }
+18
View File
@@ -0,0 +1,18 @@
package manhwacomics
import (
"goyomi/internal/registry"
base "goyomi/sources/base/madara"
)
func New() *base.Source {
return base.New(base.Config{
Name: "ManhwaComics",
BaseURL: "https://manhwacomics.com",
Lang: "en",
MangaSubString: "manhwa",
UseNewChapterEndpoint: true,
})
}
func init() { registry.Register(New()) }
@@ -0,0 +1,8 @@
package manhwacomics
import (
"testing"
"goyomi/internal/sourcetest"
)
func TestSource(t *testing.T) { sourcetest.Run(t, New(), "ManhwaComics", "en") }
+16
View File
@@ -0,0 +1,16 @@
package manhwaget
import (
"goyomi/internal/registry"
base "goyomi/sources/base/madara"
)
func New() *base.Source {
return base.New(base.Config{
Name: "ManhwaGet",
BaseURL: "https://manhwaget.com",
Lang: "en",
})
}
func init() { registry.Register(New()) }
+8
View File
@@ -0,0 +1,8 @@
package manhwaget
import (
"testing"
"goyomi/internal/sourcetest"
)
func TestSource(t *testing.T) { sourcetest.Run(t, New(), "ManhwaGet", "en") }
+17
View File
@@ -0,0 +1,17 @@
package manhwajoy
import (
"goyomi/internal/registry"
base "goyomi/sources/base/madara"
)
func New() *base.Source {
return base.New(base.Config{
Name: "ManhwaJoy",
BaseURL: "https://manhwajoy.com",
Lang: "en",
UseNewChapterEndpoint: true,
})
}
func init() { registry.Register(New()) }
+8
View File
@@ -0,0 +1,8 @@
package manhwajoy
import (
"testing"
"goyomi/internal/sourcetest"
)
func TestSource(t *testing.T) { sourcetest.Run(t, New(), "ManhwaJoy", "en") }
+16
View File
@@ -0,0 +1,16 @@
package toon18
import (
"goyomi/internal/registry"
base "goyomi/sources/base/madara"
)
func New() *base.Source {
return base.New(base.Config{
Name: "Toon18",
BaseURL: "https://toon18.to",
Lang: "en",
})
}
func init() { registry.Register(New()) }
+8
View File
@@ -0,0 +1,8 @@
package toon18
import (
"testing"
"goyomi/internal/sourcetest"
)
func TestSource(t *testing.T) { sourcetest.Run(t, New(), "Toon18", "en") }