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) {
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.
114func GetEpisodeURL(config CurdConfig, id string, epNo int) ([]string, error) { 114func 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,