Skip to content

Commit

Permalink
Add method to get all podcasts for a given show
Browse files Browse the repository at this point in the history
  • Loading branch information
markspolakovs committed May 16, 2020
1 parent 8609866 commit fa6b99a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions podcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ func (s *Session) GetAllPodcasts(numResults int, page int, includeSuspended bool
return

}

// GetAllShowPodcasts returns all podcasts linked to the given show.
func (s *Session) GetAllShowPodcasts(id int) (result []Podcast, err error) {
err = s.getf("/show/%d/allpodcasts", id).Into(&result)
return
}

0 comments on commit fa6b99a

Please sign in to comment.