Documentation
¶
Overview ¶
MPC Library handles the library videos, scans them process them
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByDuractionDesc ¶
type ByDuractionDesc struct {
Videos
}
func (ByDuractionDesc) Less ¶
func (s ByDuractionDesc) Less(i, j int) bool
type ByDuration ¶
type ByDuration struct {
Videos
}
func (ByDuration) Less ¶
func (s ByDuration) Less(i, j int) bool
type ByTitleDesc ¶
type ByTitleDesc struct {
Videos
}
func (ByTitleDesc) Less ¶
func (s ByTitleDesc) Less(i, j int) bool
type Library ¶
func (*Library) GenerateScreenshots ¶
GenerateScreenshots saves video screenshots as jpg
func (*Library) ImportVideo ¶
importVideo gets md5sum of video and copies it to the library folder and return video info
func (*Library) SaveJSONData ¶
SaveJSONData saves the video data on a json file
type Video ¶
type Video struct { ID string `json:"id"` Title string `json:"title"` ThumbURL string `json:"thumbURL"` ImgURL string `json:"imgURL"` VideoURL string `json:"videoURL"` Description string `json:"description"` PubDate time.Time `json:"pubDate"` SubtitlesURL string `json:"subtitlesURL"` Categories []Category `json:"categories"` Actors []Actor `json:"actors"` Extension string `json:"extension"` Width int `json:"width"` Height int `json:"height"` Duration int `json:"duration"` Step int `json:"step"` File string `json:"file"` OrigFile string `json:"orig_file"` Path string `json:"path"` Md5Sum string `json:"md5sum"` Encrypted bool `json:"encrypted"` Order int `json:"order"` }
func GetJSONData ¶
GetJSONData gets the video data from json file
type VideoJSON ¶
type VideoJSON struct { Actors []string `json:"actors"` ReleaseDate string `json:"releaseDate"` Description string `json:"description"` Title string `json:"title"` Who []string `json:"who"` Categories []string `json:"categories"` URL string `json:"url"` Image string `json:"image"` Md5Sum string `json:"md5sum"` }
Click to show internal directories.
Click to hide internal directories.