Documentation ¶
Index ¶
- Constants
- Variables
- func CheckErr(err error, msg string)
- func Cleanfwatch(fwatch string) bool
- func ConvertYMDtoUnix(ymd string) string
- func DateConvert(unixtime int) string
- func DateConvertToUnix(d string) string
- func DateConvertTrim(unixtime int, limit int) string
- func Exists(name string) bool
- func GetChanInfoFromYT(chanid string) database.Channel
- func GetVideoInfo(videoid string) database.Video
- func MkCrawljob(dbname, fwatch, chanid, title, videoid, date string, updatedb int)
- func MysqlRealEscapeString(value string) string
- func Openbrowser(url, defbrowser string)
- func UpdateChan(dbname, fwatch, chanid string, dl bool, msg bool) int
- type Entry
- type Feed
- type MediaGroup
Constants ¶
View Source
const ( YtVideoInfoURL = "https://www.youtube.com/get_video_info?video_id=" YtFeedURL = "https://www.youtube.com/feeds/videos.xml?channel_id=" YtWatchPrefix = "https://www.youtube.com/watch?v=" YtChanPrefix = "https://www.youtube.com/channel/" YtSearchPrefix = "https://www.youtube.com/results?search_query=" )
url constants
Variables ¶
View Source
var Found = false
View Source
var S interface{} = ""
Functions ¶
func Cleanfwatch ¶
func ConvertYMDtoUnix ¶
func DateConvert ¶
convert a unix date to a human readable date
func DateConvertToUnix ¶
convert standard date to unix for database
func DateConvertTrim ¶
convert a date and trim stuff we don't want to see
func GetChanInfoFromYT ¶
get channel information from youtube
func GetVideoInfo ¶
get information about a specific video
func MkCrawljob ¶
create a crawljob for jdownloader
func MysqlRealEscapeString ¶
Types ¶
type Entry ¶
type Entry struct { XMLName xml.Name `xml:"entry"` ID string `xml:"id"` VideoId string `xml:"videoId"` Chanid string `xml:"channelId"` Title string `xml:"title"` Published string `xml:"published"` MGroup MediaGroup `xml:"group"` }
youtube feed entry struct
type Feed ¶
type Feed struct { XMLName xml.Name `xml:"feed"` Title string `xml:"title"` Entries []Entry `xml:"entry"` }
youtube feed struct
type MediaGroup ¶
youtube media group struct
Click to show internal directories.
Click to hide internal directories.