Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QuickSearchSeriesJSON ¶ added in v1.1.0
QuickSearchSeriesJSON performs a quick search for a series on NovelUpdates It takes a series name as a parameter and returns the quick search results in JSON format as a byte slice.
func SearchSeriesJSON ¶
SearchSeriesJSON performs a search for a series on NovelUpdates It takes a series name as a parameter and returns the search results in JSON format as a byte slice.
Types ¶
type QuickSearchResult ¶ added in v1.1.0
type QuickSearchResult struct { Title string `json:"title"` ID string `json:"id"` URL string `json:"url"` Image string `json:"image"` }
func QuickSearchSeries ¶ added in v1.1.0
func QuickSearchSeries(seriesName string) ([]*QuickSearchResult, error)
QuickSearchSeries performs a quick search for a series on NovelUpdates It takes a series name as a parameter and returns the parsed results.
type SearchResult ¶
type SearchResult struct { Title string `json:"title"` ID string `json:"id"` URL string `json:"url"` Image string `json:"image"` SearchRating string `json:"search_rating"` Description string `json:"description"` Releases string `json:"releases"` UpdateFreq string `json:"update_freq"` NuReaders string `json:"nu_readers"` NuReviews string `json:"nu_reviews"` LastUpdated string `json:"last_updated"` Genres []map[string]string `json:"genres"` }
func SearchSeries ¶
func SearchSeries(seriesName string) ([]*SearchResult, error)
SearchSeries performs a search for a series on NovelUpdates It takes a series name as a parameter and returns the parsed results.
func (*SearchResult) ToJSON ¶
func (searchResults *SearchResult) ToJSON(indent ...int) ([]byte, error)
ToJSON converts SearchResult to JSON format with customizable indentation. If the indent parameter is provided and is a positive integer within a reasonable range, it determines the number of spaces for indentation; otherwise, it defaults to 2 spaces.
type SeriesResult ¶
type SeriesResult struct { Title string `json:"title"` Image string `json:"image"` Type map[string]string `json:"type"` Genre []map[string]string `json:"genre"` Rating []map[string]string `json:"rating"` Language map[string]string `json:"language"` Authors []map[string]string `json:"authors"` Artists []map[string]string `json:"artists"` Year string `json:"year"` Status string `json:"status"` Licensed string `json:"licensed"` CompletelyTranslated string `json:"completely_translated"` OriginalPublisher map[string]string `json:"original_publisher"` EnglishPublisher map[string]string `json:"english_publisher"` ReleaseFreq string `json:"release_freq"` Description string `json:"description"` AssociatedNames []string `json:"associated_names"` Groups []map[string]string `json:"groups"` Tags []map[string]string `json:"tags"` }
func GetSeriesInfo ¶
func GetSeriesInfo(seriesID string) (*SeriesResult, error)
GetSeriesInfo retrieves detailed information about a series on NovelUpdates It takes a series ID as a parameter and returns the parsed results.
func (*SeriesResult) ToJSON ¶
func (seriesResults *SeriesResult) ToJSON(indent ...int) ([]byte, error)
ToJSON converts SeriesResult to JSON format with customizable indentation. If the indent parameter is provided and is a positive integer within a reasonable range, it determines the number of spaces for indentation; otherwise, it defaults to 2 spaces.