This commit is contained in:
2025-04-08 22:00:39 +08:00
parent ae4bdc4984
commit 5f0148dab2
4 changed files with 17 additions and 15 deletions

View File

@@ -20,4 +20,13 @@ func main() {
// print podcast to json
fmt.Printf("podcast count: %+v\n", len(podcast.Items))
item := podcast.Items[0]
fmt.Printf("name: %s, feedUrl: %s\n", item.CollectionName, item.FeedURL)
pod, err := model.LoadFeed(item.FeedURL)
if err != nil {
panic(err)
}
for _, e := range pod.Episodes[:5] {
fmt.Printf("episode: %+v\n", e)
}
}