Documentation ¶
Index ¶
Constants ¶
View Source
const ( GetStatus = "SELECT * FROM status WHERE ID=" GetStatusID = "SELECT * FROM status where status_name=" GetActive = "SELECT * FROM channel where archive = " GetChanInfo = "SELECT * FROM channel WHERE yt_channelid=" GetChanVids = "SELECT * FROM video WHERE publisher=" GetVideoStatus = "SELECT downloaded FROM video WHERE yt_videoid=" GetLatestVideos = "select * from video where publish_date between unix_timestamp() - 86400 and unix_timestamp() order by publish_date desc" GetLastCheck = "select max(lastcheck) from channel" InsertNewChannel = "INSERT into channel (displayname, dldir, yt_channelid, lastcheck, archive, notes, date_added) values " )
Variables ¶
View Source
var ConfigDir = ""
View Source
var ConfigFile = ""
View Source
var DB *sql.DB
Functions ¶
func MonitorStart ¶
func MonitorStart(configfile string)
Types ¶
type MediaGroup ¶
type YTCM ¶
type YTCM struct { Db_name string `json:"db_name"` Db_user string `json:"db_user"` Db_password string `json:"db_password"` Db_host string `json:"db_host"` Db_port string `json:"db_port"` BaseDL string `json:"base_download_dir"` Defbrowser string `json:"defbrowser"` JD string `json:"jd"` FolderWatch string `json:"folderwatch"` }
Click to show internal directories.
Click to hide internal directories.