Commit 2d3c8ff3d8
Unsigned
Layout: unified · split
internal/anime_list.go +1 −1
| @@ -58,7 +58,7 @@ func SearchAnime(query, mode string) (map[string]string, error) { | |||
| 58 | // Prepare the anime list | 58 | // Prepare the anime list |
| 59 | animeList := make(map[string]string) | 59 | animeList := make(map[string]string) |
| 60 | 60 | ||
| 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) { |
| 62 | shows(search: $search, limit: $limit, page: $page, translationType: $translationType, countryOrigin: $countryOrigin) { | 62 | shows(search: $search, limit: $limit, page: $page, translationType: $translationType, countryOrigin: $countryOrigin) { |
| 63 | edges { | 63 | edges { |
| 64 | _id | 64 | _id |
internal/episode_url.go +1 −1
| @@ -112,7 +112,7 @@ func extractLinks(provider_id string) map[string]interface{} { | |||
| 112 | // - []string: a list of links for specified episode. | 112 | // - []string: a list of links for specified episode. |
| 113 | // - error: an error if the episode is not found or if there is an issue during the search. | 113 | // - error: an error if the episode is not found or if there is an issue during the search. |
| 114 | func GetEpisodeURL(config CurdConfig, id string, epNo int) ([]string, error) { | 114 | func 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}}` |
| 116 | 116 | ||
| 117 | variables := map[string]string{ | 117 | variables := map[string]string{ |
| 118 | "showId": id, | 118 | "showId": id, |