Ejemplo n.º 1
0
        private void B_GetClips_Click(object sender, EventArgs e)
        {
            if (Config.BearerToken == "")
            {
                MessageBox.Show("Since May 2020, Twitch requires Bearer token for HTTP requests. Please proceed to Login and obtain your own Twitch Login Token to use with Clip Downloader.");
            }
            else
            {
                JsonGrabber.ProvideBearerToken(Config.BearerToken);
                //We don't want to deal with time - just dates, so round it up to first second of the day for "FromDateTime" and last second of the day for ToDateTime, this way if we choose same day in both fields, we pretty much ned up with entire day selected... UTC time.
                FromDateTime = FromDateTime.Date;
                ToDateTime   = ToDateTime.Date.AddDays(1).Subtract(TimeSpan.FromSeconds(1));

                VideoPicker vpicker = new VideoPicker(Config.UserName, Config.FilePath, Config.ClipLimit, FromDateTime, ToDateTime, (SortByEnum)CBox_SortBy.SelectedValue, CB_SortDesc.Checked);
                vpicker.ShowDialog();
            }
        }
Ejemplo n.º 2
0
 public VideoDownloader(VideoPicker Vp)
 {
     this.Vp = Vp;
 }