Commit 2d3c8ff3d8

2d3c8ff3d85e7f4ccb37f6e682589980a335b5c8

parent: 791a7db16e

Unsigned

Wraient <wraient.911@gmail.com> · 2025-03-09 07:21 UTC

Fix: Typo is a feature

Layout: unified · split

internal/anime_list.go +1 −1
@@ -58,7 +58,7 @@ func SearchAnime(query, mode string) (map[string]string, error) {
5858 // Prepare the anime list
5959 animeList := make(map[string]string)
6060
61 searchGql := `query($search: SearchInput, $limit: Int, $page: Int, $translationType: ValidTranslationTypeEnumType, $countryOrigin: ValidCountryOriginEnumType) {
61 searchGql := `query($search: SearchInput, $limit: Int, $page: Int, $translationType: VaildTranslationTypeEnumType, $countryOrigin: VaildCountryOriginEnumType) {
6262 shows(search: $search, limit: $limit, page: $page, translationType: $translationType, countryOrigin: $countryOrigin) {
6363 edges {
6464 _id
internal/episode_url.go +1 −1
@@ -112,7 +112,7 @@ func extractLinks(provider_id string) map[string]interface{} {
112112// - []string: a list of links for specified episode.
113113// - error: an error if the episode is not found or if there is an issue during the search.
114114func GetEpisodeURL(config CurdConfig, id string, epNo int) ([]string, error) {
115 query := `query($showId:String!,$translationType:ValidTranslationTypeEnumType!,$episodeString:String!){episode(showId:$showId,translationType:$translationType,episodeString:$episodeString){episodeString sourceUrls}}`
115 query := `query($showId:String!,$translationType:VaildTranslationTypeEnumType!,$episodeString:String!){episode(showId:$showId,translationType:$translationType,episodeString:$episodeString){episodeString sourceUrls}}`
116116
117117 variables := map[string]string{
118118 "showId": id,