2023-07-06 13:25:51 +02:00
|
|
|
package fetch
|
2023-05-10 20:08:45 +02:00
|
|
|
|
2023-05-27 14:36:22 +02:00
|
|
|
import "ewintr.nl/yogai/model"
|
|
|
|
|
2023-05-10 20:08:45 +02:00
|
|
|
type Metadata struct {
|
|
|
|
Title string
|
|
|
|
Description string
|
2023-05-31 16:27:35 +02:00
|
|
|
Duration string
|
|
|
|
PublishedAt string
|
2023-05-10 20:08:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type MetadataFetcher interface {
|
2023-05-27 14:36:22 +02:00
|
|
|
FetchMetadata([]model.YoutubeVideoID) (map[model.YoutubeVideoID]Metadata, error)
|
2023-05-10 20:08:45 +02:00
|
|
|
}
|