feat: port 5 Madara sources (manhwacomics, manhwaget, manhwajoy, toon18, mangadia)
This commit is contained in:
@@ -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()) }
|
||||
@@ -0,0 +1,8 @@
|
||||
package mangadia
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"goyomi/internal/sourcetest"
|
||||
)
|
||||
|
||||
func TestSource(t *testing.T) { sourcetest.Run(t, New(), "MangaDia", "en") }
|
||||
@@ -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") }
|
||||
@@ -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()) }
|
||||
@@ -0,0 +1,8 @@
|
||||
package manhwaget
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"goyomi/internal/sourcetest"
|
||||
)
|
||||
|
||||
func TestSource(t *testing.T) { sourcetest.Run(t, New(), "ManhwaGet", "en") }
|
||||
@@ -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()) }
|
||||
@@ -0,0 +1,8 @@
|
||||
package manhwajoy
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"goyomi/internal/sourcetest"
|
||||
)
|
||||
|
||||
func TestSource(t *testing.T) { sourcetest.Run(t, New(), "ManhwaJoy", "en") }
|
||||
@@ -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()) }
|
||||
@@ -0,0 +1,8 @@
|
||||
package toon18
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"goyomi/internal/sourcetest"
|
||||
)
|
||||
|
||||
func TestSource(t *testing.T) { sourcetest.Run(t, New(), "Toon18", "en") }
|
||||
Reference in New Issue
Block a user