Documentation ¶
Index ¶
- Constants
- Variables
- func AddOpml(content string) error
- func AddPodcast(url string) (db.Podcast, error)
- func AddPodcastItems(podcast *db.Podcast, newPodcast bool) error
- func AddTag(label, description string) (db.Tag, error)
- func ByTag(tag string, count int) []model.GPodcast
- func CheckMissingFiles() error
- func CreateBackup() (string, error)
- func CreateNfoFile(podcast *db.Podcast) error
- func DeleteEpisodeFile(podcastItemId string) error
- func DeleteFile(filePath string) error
- func DeletePodcast(id string, deleteFiles bool) error
- func DeletePodcastEpisodes(id string) error
- func DeleteTag(id string) error
- func Download(link string, episodeTitle string, podcastName string, prefix string) (string, error)
- func DownloadImage(link string, episodeId string, podcastName string) (string, error)
- func DownloadMissingEpisodes() error
- func DownloadMissingImages() error
- func DownloadPodcastCoverImage(link string, podcastName string) (string, error)
- func DownloadSingleEpisode(podcastItemId string) error
- func ExportOmpl(usePodgrabLink bool, baseUrl string) ([]byte, error)
- func FetchURL(url string) (model.PodcastData, []byte, error)
- func FileExists(filePath string) bool
- func GetAllBackupFiles() ([]string, error)
- func GetAllPodcastItemsByIds(podcastItemIds []string) (*[]db.PodcastItem, error)
- func GetAllPodcastItemsByPodcastIds(podcastIds []string) *[]db.PodcastItem
- func GetAllPodcasts(sorting string) *[]db.Podcast
- func GetFileSize(path string) (int64, error)
- func GetFileSizeFromUrl(url string) (int64, error)
- func GetPodcastById(id string) *db.Podcast
- func GetPodcastItemById(id string) *db.PodcastItem
- func GetPodcastLocalImagePath(link string, podcastName string) string
- func GetPodcastPrefix(item *db.PodcastItem, setting *db.Setting) string
- func GetSearchFromGpodder(pod model.GPodcast) *model.CommonSearchResultModel
- func GetSearchFromItunes(pod model.ItunesSingleResult) *model.CommonSearchResultModel
- func GetSearchFromPodcastIndex(pod *podcastindex.Podcast) *model.CommonSearchResultModel
- func GetTagsByIds(ids []string) *[]db.Tag
- func NatualTime(base, value time.Time) string
- func ParseOpml(content string) (model.OpmlModel, error)
- func Query(q string) []*model.CommonSearchResultModel
- func RefreshEpisodes() error
- func SetAllEpisodesToDownload(podcastId string) error
- func SetId3Tags(path string, item *db.PodcastItem)
- func SetPodcastItemAsDownloaded(id string, location string) error
- func SetPodcastItemAsNotDownloaded(id string, downloadStatus db.DownloadStatus) error
- func SetPodcastItemAsQueuedForDownload(id string) error
- func SetPodcastItemBookmarkStatus(id string, bookmark bool) error
- func SetPodcastItemPlayedStatus(id string, isPlayed bool) error
- func Tags(count int) []model.GPodcastTag
- func TogglePodcastPause(id string, isPaused bool) error
- func Top(count int) []model.GPodcast
- func UnlockMissedJobs()
- func UpdateAllFileSizes()
- func UpdateSettings(downloadOnAdd bool, initialDownloadCount int, autoDownload bool, ...) error
- func WritePlaylist(dir string) error
- type ItunesService
- type PodcastIndexService
- type SearchService
Constants ¶
View Source
const ( PODCASTINDEX_KEY = "LNGTNUAFVL9W2AQKVZ49" PODCASTINDEX_SECRET = "H8tq^CZWYmAywbnngTwB$rwQHwMSR8#fJb#Bhgb3" )
View Source
const BASE = "https://gpodder.net"
View Source
const ITUNES_BASE = "https://itunes.apple.com"
Variables ¶
View Source
var Logger *zap.SugaredLogger
Functions ¶
func CheckMissingFiles ¶
func CheckMissingFiles() error
func CreateBackup ¶
func CreateNfoFile ¶
func DeleteEpisodeFile ¶
func DeleteFile ¶
func DeletePodcast ¶
func DeletePodcastEpisodes ¶
func DownloadImage ¶
func DownloadMissingEpisodes ¶
func DownloadMissingEpisodes() error
func DownloadMissingImages ¶
func DownloadMissingImages() error
func DownloadSingleEpisode ¶
func FileExists ¶
func GetAllBackupFiles ¶
func GetAllPodcastItemsByIds ¶
func GetAllPodcastItemsByIds(podcastItemIds []string) (*[]db.PodcastItem, error)
func GetAllPodcastItemsByPodcastIds ¶
func GetAllPodcastItemsByPodcastIds(podcastIds []string) *[]db.PodcastItem
func GetAllPodcasts ¶
func GetFileSize ¶
func GetFileSizeFromUrl ¶
func GetPodcastById ¶
func GetPodcastItemById ¶
func GetPodcastItemById(id string) *db.PodcastItem
func GetPodcastPrefix ¶
func GetPodcastPrefix(item *db.PodcastItem, setting *db.Setting) string
func GetSearchFromGpodder ¶
func GetSearchFromGpodder(pod model.GPodcast) *model.CommonSearchResultModel
func GetSearchFromItunes ¶
func GetSearchFromItunes(pod model.ItunesSingleResult) *model.CommonSearchResultModel
func GetSearchFromPodcastIndex ¶
func GetSearchFromPodcastIndex(pod *podcastindex.Podcast) *model.CommonSearchResultModel
func GetTagsByIds ¶
func NatualTime ¶
func Query ¶
func Query(q string) []*model.CommonSearchResultModel
func RefreshEpisodes ¶
func RefreshEpisodes() error
func SetId3Tags ¶
func SetId3Tags(path string, item *db.PodcastItem)
func SetPodcastItemAsNotDownloaded ¶
func SetPodcastItemAsNotDownloaded(id string, downloadStatus db.DownloadStatus) error
func Tags ¶
func Tags(count int) []model.GPodcastTag
func TogglePodcastPause ¶
func UnlockMissedJobs ¶
func UnlockMissedJobs()
func UpdateAllFileSizes ¶
func UpdateAllFileSizes()
func UpdateSettings ¶
func UpdateSettings(downloadOnAdd bool, initialDownloadCount int, autoDownload bool, appendDateToFileName bool, appendEpisodeNumberToFileName bool, darkMode bool, downloadEpisodeImages bool, generateNFOFile bool, dontDownloadDeletedFromDisk bool, baseUrl string, maxDownloadConcurrency int, userAgent string) error
func WritePlaylist ¶
Types ¶
type ItunesService ¶
type ItunesService struct { }
func (ItunesService) Query ¶
func (service ItunesService) Query(q string) []*model.CommonSearchResultModel
type PodcastIndexService ¶
type PodcastIndexService struct { }
func (PodcastIndexService) Query ¶
func (service PodcastIndexService) Query(q string) []*model.CommonSearchResultModel
type SearchService ¶
type SearchService interface {
Query(q string) []*model.CommonSearchResultModel
}
Click to show internal directories.
Click to hide internal directories.