This commit is contained in:
ByteDream 2022-05-30 12:27:20 +02:00 committed by GitHub
parent 3a7ec02598
commit 35b1cbbdb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -568,7 +568,7 @@ func (c *Crunchyroll) Browse(options BrowseOptions, limit uint) (s []*Series, m
func (c *Crunchyroll) Categories(includeSubcategories bool) (ca []*Category, err error) { func (c *Crunchyroll) Categories(includeSubcategories bool) (ca []*Category, err error) {
tenantCategoriesEndpoint := fmt.Sprintf("https://beta.crunchyroll.com/content/v1/tenant_categories?include_subcategories=%t&locale=%s", tenantCategoriesEndpoint := fmt.Sprintf("https://beta.crunchyroll.com/content/v1/tenant_categories?include_subcategories=%t&locale=%s",
includeSubcategories, c.Locale) includeSubcategories, c.Locale)
resp, err := c.request(tenantCategoriesEndpoin, http.MethodGet) resp, err := c.request(tenantCategoriesEndpoint, http.MethodGet)
if err != nil { if err != nil {
return nil, err return nil, err
} }