plex_directory.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. package plexapi
  2. import "encoding/xml"
  3. // Directory struct
  4. type Directory struct {
  5. Keys []KeyInfo `xml:"-"`
  6. Paths []string `xml:"-"`
  7. XMLName xml.Name `xml:"Directory"`
  8. Locations []Location `xml:"Location"`
  9. Count int `xml:"count,attr"`
  10. Key string `xml:"key,attr"`
  11. Title string `xml:"title,attr"`
  12. Art string `xml:"art,attr"`
  13. Composite string `xml:"composite,attr"`
  14. Filters int `xml:"filters,attr"`
  15. Refreshing int `xml:"refreshing,attr"`
  16. Thumb string `xml:"thumb,attr"`
  17. Type string `xml:"type,attr"`
  18. Agent string `xml:"agent,attr"`
  19. Scanner string `xml:"scanner,attr"`
  20. Language string `xml:"language,attr"`
  21. UUID string `xml:"uuid,attr"`
  22. UpdatedAt string `xml:"updatedAt,attr"`
  23. CreatedAt string `xml:"createdAt,attr"`
  24. AllowSync int `xml:"allowSync,attr"`
  25. }
  26. // Location struct
  27. type Location struct {
  28. XMLName xml.Name `xml:"Location"`
  29. ID int `xml:"id,attr"`
  30. Path string `xml:"path,attr"`
  31. }