Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ If the browser reaches the localhost callback page but curd does not continue au
- [AniSkip API](https://api.aniskip.com/api-docs) - Get anime intro and outro timings
- [AllAnime Content](https://allanime.to/) - Fetch anime url
- [Senshi Project](https://senshi.to/) - Default provider with Vidcloud HLS streams and MAL-based catalog matching
- [AniPub](https://anipub.xyz/) - Fast JSON catalog APIs with MegaPlay HLS streams
- [AniPub](https://anipub.org/) - Fast JSON catalog APIs with MegaPlay HLS streams
- [AniNeko Content](https://anineko.to/) - Alternative provider with soft/hard sub stream selection
- [Animepahe Content](https://animepahe.pw/) - Alternative provider for 1080p streams
- [Jikan](https://jikan.moe/) - Get filler episode number
Expand Down
2 changes: 1 addition & 1 deletion internal/providers/anipub/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
const userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"

var (
baseURL = "https://anipub.xyz"
baseURL = "https://anipub.org"
megaplayBaseURL = "https://megaplay.buzz"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/providers/anipub/megaplay_decrypt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestResolveMegaplayStreamFallsBackToEnc(t *testing.T) {
t.Cleanup(func() { megaplayBaseURL = originalMega })
megaplayBaseURL = megaplay.URL

streamURL, _, err := resolveMegaplayStream("https://anipub.xyz/video/42/sub", "sub")
streamURL, _, err := resolveMegaplayStream("https://anipub.org/video/42/sub", "sub")
if err != nil {
t.Fatalf("resolveMegaplayStream: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/providers/anipub/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package anipub

import "github.com/wraient/curd/internal/providers"

// Provider implements anipub.xyz catalog search and MegaPlay stream resolution.
// Provider implements anipub.org catalog search and MegaPlay stream resolution.
type Provider struct{}

func (p *Provider) Name() string {
Expand Down
10 changes: 5 additions & 5 deletions internal/providers/anipub/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ func TestEpisodesListCountsLocalEpisodes(t *testing.T) {
}
_ = json.NewEncoder(w).Encode(detailsResponse{
Local: localDetails{
Link: "src=https://anipub.xyz/video/107257/sub",
Link: "src=https://anipub.org/video/107257/sub",
Ep: []episodeLink{
{Link: "src=https://anipub.xyz/video/107259/sub"},
{Link: "src=https://anipub.xyz/video/107260/sub"},
{Link: "src=https://anipub.org/video/107259/sub"},
{Link: "src=https://anipub.org/video/107260/sub"},
},
},
})
Expand Down Expand Up @@ -178,7 +178,7 @@ func TestGetEpisodeStreamsForModeResolvesMegaplay(t *testing.T) {
}
_ = json.NewEncoder(w).Encode(detailsResponse{
Local: localDetails{
Link: "src=https://anipub.xyz/video/107257/sub",
Link: "src=https://anipub.org/video/107257/sub",
},
})
}))
Expand Down Expand Up @@ -247,7 +247,7 @@ func TestResolveMegaplayStreamUsesDubMode(t *testing.T) {
t.Cleanup(func() { megaplayBaseURL = originalMega })
megaplayBaseURL = megaplay.URL

streamURL, subtitle, err := resolveMegaplayStream("https://anipub.xyz/video/42/sub", "dub")
streamURL, subtitle, err := resolveMegaplayStream("https://anipub.org/video/42/sub", "dub")
if err != nil {
t.Fatalf("resolveMegaplayStream: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/providers/anipub/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "github.com/wraient/curd/internal/providers"
func init() {
providers.Register(providers.Meta{
Name: "anipub",
Aliases: []string{"anipub.xyz"},
Aliases: []string{"anipub.org"},
Referrer: "https://megaplay.buzz/",
}, func() providers.Provider {
return &Provider{}
Expand Down