Documentation ¶
Index ¶
- func AddNewPodcast(dbClient db.Database, url string) error
- func DoesEpisodeExist(dbClient db.Database, title string, pubDate *timestamp.Timestamp) (bool, error)
- func DoesPodcastExist(dbClient db.Database, rssURL string) bool
- func FindEpisodeByID(dbClient db.Database, id *protos.ObjectID) (*protos.Episode, error)
- func FindEpisodeBySeason(dbClient db.Database, podID *protos.ObjectID, seasonNum int, episodeNum int) (*protos.Episode, error)
- func FindEpisodesByRange(dbClient db.Database, podcastID *protos.ObjectID, start int64, end int64) ([]*protos.Episode, error)
- func FindLatestEpisode(dbClient db.Database, podcastID *protos.ObjectID) (*protos.Episode, error)
- func FindLength(r io.Reader, fileLength int64) int64
- func FindPodcastByID(dbClient db.Database, id *protos.ObjectID) (*protos.Podcast, error)
- func FindPodcastsByIDs(dbClient db.Database, ids []*protos.ObjectID) ([]*protos.Podcast, error)
- func FindPodcastsByRange(dbClient db.Database, start, end int) ([]*protos.Podcast, error)
- func GetPodcastResp(url string) (io.ReadCloser, int64, error)
- func SearchPodcasts(dbClient db.Database, search string) ([]*protos.Podcast, error)
- func UpdatePodcasts(dbClient db.Database) error
- func UpsertEpisode(dbClient db.Database, episode *protos.Episode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewPodcast ¶
AddNewPodcast takes RSS url and downloads contents inserts the podcast and its episodes into the db returns error if podcast already exists or connection error
func DoesEpisodeExist ¶
func DoesEpisodeExist(dbClient db.Database, title string, pubDate *timestamp.Timestamp) (bool, error)
helpers
func FindEpisodeByID ¶
func FindEpisodeBySeason ¶
func FindEpisodeBySeason(dbClient db.Database, podID *protos.ObjectID, seasonNum int, episodeNum int) (*protos.Episode, error)
FindEpisodeBySeason takes a season episode number returns error if not found
func FindEpisodesByRange ¶
func FindEpisodesByRange(dbClient db.Database, podcastID *protos.ObjectID, start int64, end int64) ([]*protos.Episode, error)
FindEpisodes returns a list of episodes based on podcast id returns in chronological order, sectioned by start & end(exclusive)
func FindLatestEpisode ¶
func FindLength ¶
FindLength attempts to download only the first few frames of the MP3 to figure out its length
func FindPodcastByID ¶
func FindPodcastsByIDs ¶
func FindPodcastsByRange ¶
func GetPodcastResp ¶
func GetPodcastResp(url string) (io.ReadCloser, int64, error)
func SearchPodcasts ¶
SearchPodcasts searches for a podcast given db and text string
func UpdatePodcasts ¶
UpdatePodcasts attempts to go through the list of podcasts update them via RSS feed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.