2021-07-26 17:26:39 -07:00
|
|
|
package scraper
|
|
|
|
|
2021-08-03 15:38:19 -07:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
2021-08-01 15:52:04 -07:00
|
|
|
type VideoID int
|
|
|
|
|
2021-07-26 17:26:39 -07:00
|
|
|
type Video struct {
|
2021-08-01 15:52:04 -07:00
|
|
|
ID VideoID
|
2021-07-26 17:26:39 -07:00
|
|
|
TweetID TweetID
|
|
|
|
Filename string
|
|
|
|
IsDownloaded bool
|
|
|
|
}
|
2021-08-03 15:38:19 -07:00
|
|
|
|
|
|
|
func (v Video) FilenameWhenDownloaded() string {
|
2021-08-04 14:49:20 -07:00
|
|
|
return fmt.Sprintf("%d.mp4", v.TweetID)
|
2021-08-03 15:38:19 -07:00
|
|
|
}
|