aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--anime/anime.go4
-rw-r--r--anime/anime.structs.go2
-rw-r--r--anime/client.go2
-rw-r--r--anime/request_handler.go2
-rw-r--r--errhandlers/errhandlers.go2
-rw-r--r--go.mod2
-rw-r--r--manga/client.go2
-rw-r--r--manga/manga.go4
-rw-r--r--manga/manga.structs.go4
-rw-r--r--manga/request_handler.go2
-rw-r--r--user/anime/animelist.go6
-rw-r--r--user/anime/animelist.structs.go2
-rw-r--r--user/anime/client.go2
-rw-r--r--user/anime/request_handler.go2
-rw-r--r--user/anime/update_animelist.go2
-rw-r--r--user/client.go2
-rw-r--r--user/manga/client.go2
-rw-r--r--user/manga/mangalist.go6
-rw-r--r--user/manga/mangalist.structs.go2
-rw-r--r--user/manga/request_handler.go2
-rw-r--r--user/manga/update_mangalist.go2
-rw-r--r--user/request_handler.go2
-rw-r--r--util/structs.go4
23 files changed, 31 insertions, 31 deletions
diff --git a/anime/anime.go b/anime/anime.go
index f3bb691..794ab19 100644
--- a/anime/anime.go
+++ b/anime/anime.go
@@ -20,8 +20,8 @@ import (
"encoding/json"
"fmt"
"strconv"
- e "github.com/MikunoNaka/MAL2Go/v3/errhandlers"
- u "github.com/MikunoNaka/MAL2Go/v3/util"
+ e "github.com/MikunoNaka/MAL2Go/v4/errhandlers"
+ u "github.com/MikunoNaka/MAL2Go/v4/util"
)
const BASE_URL string = "https://api.myanimelist.net/v2/anime"
diff --git a/anime/anime.structs.go b/anime/anime.structs.go
index 0dd689e..3db166a 100644
--- a/anime/anime.structs.go
+++ b/anime/anime.structs.go
@@ -17,7 +17,7 @@
package anime
import (
- u "github.com/MikunoNaka/MAL2Go/v3/util"
+ u "github.com/MikunoNaka/MAL2Go/v4/util"
)
type AnimeStatistics struct {
diff --git a/anime/client.go b/anime/client.go
index 1ce3dd2..aa4962f 100644
--- a/anime/client.go
+++ b/anime/client.go
@@ -17,7 +17,7 @@
package anime
import (
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
)
type Client util.DefaultClient
diff --git a/anime/request_handler.go b/anime/request_handler.go
index e5521fd..0da337e 100644
--- a/anime/request_handler.go
+++ b/anime/request_handler.go
@@ -21,7 +21,7 @@ import (
"log"
"net/http"
"encoding/json"
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
"errors"
)
diff --git a/errhandlers/errhandlers.go b/errhandlers/errhandlers.go
index 7b83c74..ca561b6 100644
--- a/errhandlers/errhandlers.go
+++ b/errhandlers/errhandlers.go
@@ -17,7 +17,7 @@
package errhandlers
import (
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
)
// this is only for anime fields
diff --git a/go.mod b/go.mod
index c311947..a3ef650 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
-module github.com/MikunoNaka/MAL2Go/v3
+module github.com/MikunoNaka/MAL2Go/v4
go 1.17
diff --git a/manga/client.go b/manga/client.go
index 5847ed8..b674854 100644
--- a/manga/client.go
+++ b/manga/client.go
@@ -17,7 +17,7 @@
package manga
import (
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
)
type Client util.DefaultClient
diff --git a/manga/manga.go b/manga/manga.go
index a4a1505..ff18bd7 100644
--- a/manga/manga.go
+++ b/manga/manga.go
@@ -19,8 +19,8 @@ package manga
import (
"encoding/json"
"strconv"
- e "github.com/MikunoNaka/MAL2Go/v3/errhandlers"
- u "github.com/MikunoNaka/MAL2Go/v3/util"
+ e "github.com/MikunoNaka/MAL2Go/v4/errhandlers"
+ u "github.com/MikunoNaka/MAL2Go/v4/util"
)
const BASE_URL string = "https://api.myanimelist.net/v2/manga"
diff --git a/manga/manga.structs.go b/manga/manga.structs.go
index 061741d..78a299b 100644
--- a/manga/manga.structs.go
+++ b/manga/manga.structs.go
@@ -17,8 +17,8 @@
package manga
import (
- "github.com/MikunoNaka/MAL2Go/v3/util"
- a "github.com/MikunoNaka/MAL2Go/v3/anime"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
+ a "github.com/MikunoNaka/MAL2Go/v4/anime"
)
type Magazine struct {
diff --git a/manga/request_handler.go b/manga/request_handler.go
index ae95313..738fe91 100644
--- a/manga/request_handler.go
+++ b/manga/request_handler.go
@@ -21,7 +21,7 @@ import (
"log"
"net/http"
"encoding/json"
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
"errors"
)
diff --git a/user/anime/animelist.go b/user/anime/animelist.go
index 6c8453c..3ed101e 100644
--- a/user/anime/animelist.go
+++ b/user/anime/animelist.go
@@ -20,9 +20,9 @@ import (
"encoding/json"
"strconv"
"fmt"
- a "github.com/MikunoNaka/MAL2Go/v3/anime"
- e "github.com/MikunoNaka/MAL2Go/v3/errhandlers"
- u "github.com/MikunoNaka/MAL2Go/v3/util"
+ a "github.com/MikunoNaka/MAL2Go/v4/anime"
+ e "github.com/MikunoNaka/MAL2Go/v4/errhandlers"
+ u "github.com/MikunoNaka/MAL2Go/v4/util"
)
const BASE_URL string = "https://api.myanimelist.net/v2"
diff --git a/user/anime/animelist.structs.go b/user/anime/animelist.structs.go
index 3097c12..6f2417b 100644
--- a/user/anime/animelist.structs.go
+++ b/user/anime/animelist.structs.go
@@ -17,7 +17,7 @@
package anime
import (
- "github.com/MikunoNaka/MAL2Go/v3/anime"
+ "github.com/MikunoNaka/MAL2Go/v4/anime"
)
type animeListRaw struct {
diff --git a/user/anime/client.go b/user/anime/client.go
index 1ce3dd2..aa4962f 100644
--- a/user/anime/client.go
+++ b/user/anime/client.go
@@ -17,7 +17,7 @@
package anime
import (
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
)
type Client util.DefaultClient
diff --git a/user/anime/request_handler.go b/user/anime/request_handler.go
index 58474ee..9ca1cb4 100644
--- a/user/anime/request_handler.go
+++ b/user/anime/request_handler.go
@@ -24,7 +24,7 @@ import (
"strconv"
"strings"
"errors"
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
)
type UpdateResponse struct {
diff --git a/user/anime/update_animelist.go b/user/anime/update_animelist.go
index 111572a..dfec5e7 100644
--- a/user/anime/update_animelist.go
+++ b/user/anime/update_animelist.go
@@ -16,7 +16,7 @@
package anime
import (
- e "github.com/MikunoNaka/MAL2Go/v3/errhandlers"
+ e "github.com/MikunoNaka/MAL2Go/v4/errhandlers"
"fmt"
"net/url"
"strconv"
diff --git a/user/client.go b/user/client.go
index a26856d..3681640 100644
--- a/user/client.go
+++ b/user/client.go
@@ -17,7 +17,7 @@
package user
import (
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
)
type Client util.DefaultClient
diff --git a/user/manga/client.go b/user/manga/client.go
index 5847ed8..b674854 100644
--- a/user/manga/client.go
+++ b/user/manga/client.go
@@ -17,7 +17,7 @@
package manga
import (
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
)
type Client util.DefaultClient
diff --git a/user/manga/mangalist.go b/user/manga/mangalist.go
index 8408bde..7843432 100644
--- a/user/manga/mangalist.go
+++ b/user/manga/mangalist.go
@@ -20,9 +20,9 @@ import (
"encoding/json"
"strconv"
"fmt"
- e "github.com/MikunoNaka/MAL2Go/v3/errhandlers"
- u "github.com/MikunoNaka/MAL2Go/v3/util"
- m "github.com/MikunoNaka/MAL2Go/v3/manga"
+ e "github.com/MikunoNaka/MAL2Go/v4/errhandlers"
+ u "github.com/MikunoNaka/MAL2Go/v4/util"
+ m "github.com/MikunoNaka/MAL2Go/v4/manga"
)
const BASE_URL string = "https://api.myanimelist.net/v2"
diff --git a/user/manga/mangalist.structs.go b/user/manga/mangalist.structs.go
index 3f338ae..f7cf97d 100644
--- a/user/manga/mangalist.structs.go
+++ b/user/manga/mangalist.structs.go
@@ -17,7 +17,7 @@
package manga
import (
- "github.com/MikunoNaka/MAL2Go/v3/manga"
+ "github.com/MikunoNaka/MAL2Go/v4/manga"
)
type mangaListRaw struct {
diff --git a/user/manga/request_handler.go b/user/manga/request_handler.go
index 7d89402..be7ff17 100644
--- a/user/manga/request_handler.go
+++ b/user/manga/request_handler.go
@@ -24,7 +24,7 @@ import (
"strconv"
"strings"
"errors"
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
)
type UpdateResponse struct {
diff --git a/user/manga/update_mangalist.go b/user/manga/update_mangalist.go
index f062be9..5dda7b4 100644
--- a/user/manga/update_mangalist.go
+++ b/user/manga/update_mangalist.go
@@ -16,7 +16,7 @@
package manga
import (
- e "github.com/MikunoNaka/MAL2Go/v3/errhandlers"
+ e "github.com/MikunoNaka/MAL2Go/v4/errhandlers"
"fmt"
"net/url"
"strconv"
diff --git a/user/request_handler.go b/user/request_handler.go
index df66abf..4571b0b 100644
--- a/user/request_handler.go
+++ b/user/request_handler.go
@@ -20,7 +20,7 @@ import (
"io/ioutil"
"log"
"net/http"
- "github.com/MikunoNaka/MAL2Go/v3/util"
+ "github.com/MikunoNaka/MAL2Go/v4/util"
"errors"
"encoding/json"
)
diff --git a/util/structs.go b/util/structs.go
index 798b8e0..cee0e3d 100644
--- a/util/structs.go
+++ b/util/structs.go
@@ -27,7 +27,7 @@ var DefaultFields []string = []string{
"popularity", "num_list_users",
"num_scoring_users", "nsfw", "created_at",
"updated_at", "media_type", "status",
- "genres", "my_list_status", "num_episodes",
+ "genres", "my_list_status", "list_status", "num_episodes",
"start_season", "broadcast", "source",
"average_episode_duration", "rating",
"pictures", "background", "related_anime",
@@ -42,7 +42,7 @@ var DefaultMangaFields []string = []string{
"synopsis", "mean", "rank",
"popularity", "num_list_users", "num_scoring_users",
"nsfw", "created_at", "media_type",
- "status", "genres", "my_list_status",
+ "status", "genres", "my_list_status", "list_status",
"num_volumes", "num_chapters", "authors",
"pictures", "background", "related_anime",
"related_manga", "recommendations", "serialization",