Documentation
¶
Index ¶
Constants ¶
const ( MediaMp3 = feedcast.Mp3 MediaM4a = feedcast.M4a )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadFormat ¶
type DownloadFormat string
DownloadFormat is the format in which media should be downloaded.
const ( DownloadMp3 DownloadFormat = "mp3" DownloadM4a DownloadFormat = "m4a" )
type Episode ¶
type Episode struct {
ID int64
Title string
Description string
ThumbnailFile string
MediaFile string
MediaType MediaType
MediaDuration int64
MediaSize int64
Author string
OriginalURL string
CanonicalURL string
CreatedAt time.Time
}
Episode represents a podcast episode.
type MediaType ¶
type MediaType = feedcast.EnclosureType
MediaType is the MIME type of the media file.
type Process ¶
type Process struct {
ID int64
Request Request
Step Step
Status Status
Error error
Episode *Episode
CreatedAt time.Time
UpdatedAt time.Time
}
Process represents a media processing task.
type Request ¶
type Request struct {
ID string
UserID int64
ChatID int64
MessageID int
Url string
DownloadFormat DownloadFormat
DownloadQuality string
Force bool
}
Request represents a download request.