googleplay.go 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
  2. // SPDX-License-Identifier: Apache-2.0
  3. package googleplay // import "miniflux.app/v2/internal/reader/googleplay"
  4. // Specs:
  5. // https://support.google.com/googleplay/podcasts/answer/6260341
  6. // https://www.google.com/schemas/play-podcasts/1.0/play-podcasts.xsd
  7. type GooglePlayChannelElement struct {
  8. GooglePlayAuthor string `xml:"http://www.google.com/schemas/play-podcasts/1.0 author"`
  9. GooglePlayEmail string `xml:"http://www.google.com/schemas/play-podcasts/1.0 email"`
  10. GooglePlayImage GooglePlayImageElement `xml:"http://www.google.com/schemas/play-podcasts/1.0 image"`
  11. GooglePlayDescription string `xml:"http://www.google.com/schemas/play-podcasts/1.0 description"`
  12. GooglePlayCategory GooglePlayCategoryElement `xml:"http://www.google.com/schemas/play-podcasts/1.0 category"`
  13. }
  14. type GooglePlayItemElement struct {
  15. GooglePlayAuthor string `xml:"http://www.google.com/schemas/play-podcasts/1.0 author"`
  16. GooglePlayDescription string `xml:"http://www.google.com/schemas/play-podcasts/1.0 description"`
  17. GooglePlayExplicit string `xml:"http://www.google.com/schemas/play-podcasts/1.0 explicit"`
  18. GooglePlayBlock string `xml:"http://www.google.com/schemas/play-podcasts/1.0 block"`
  19. GooglePlayNewFeedURL string `xml:"http://www.google.com/schemas/play-podcasts/1.0 new-feed-url"`
  20. }
  21. type GooglePlayImageElement struct {
  22. Href string `xml:"href,attr"`
  23. }
  24. type GooglePlayCategoryElement struct {
  25. Text string `xml:"text,attr"`
  26. }