Skip to content

GetLibraryLabels 404s #65

@chrishoage

Description

@chrishoage

The current method 404s. The correct endpoint is

	query := fmt.Sprintf("%s/library/sections/%s/label?type=%s", p.URL, sectionKey, sectionIndex)

with a struct of

type LibraryLabels struct {
	MediaContainer struct {
		ElementType     string `json:"_elementType"`
		AllowSync       bool   `json:"allowSync"`
		Art             string `json:"art"`
		Content         string `json:"content"`
		Identifier      string `json:"identifier"`
		MediaTagPrefix  string `json:"mediaTagPrefix"`
		MediaTagVersion int    `json:"mediaTagVersion"`
		Thumb           string `json:"thumb"`
		Title1          string `json:"title1"`
		Title2          string `json:"title2"`
		ViewGroup       string `json:"viewGroup"`
		ViewMode        int    `json:"viewMode"`
		Directory       []struct {
			FastKey string `json:"fastKey"`
			Key     string `json:"key"`
			Title   string `json:"title"`
		} `json:"Directory"`
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions