Skip to content

Commit 2d3c8ff

Browse files
committed
Fix: Typo is a feature
1 parent 791a7db commit 2d3c8ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/anime_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.
114114
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}}`
116116

117117
variables := map[string]string{
118118
"showId": id,

0 commit comments

Comments
 (0)