private void JDownloadTree_SelectedNodeChanged(object sender, RadTreeViewEventArgs e) { _Sites.SceneSourceLib ss = new _Sites.SceneSourceLib(); string Text = ""; string Tag = ""; if (e.Node != null) { Text = e.Node.Text; try { Tag = e.Node.Tag.ToString(); } catch { } if (Tag != "") { ssTv Current = CurrentShow; Current.SeasonEp = ss.ShowEp_FromFilePath(Tag); CurrentShow = Current; sb(Tag); } } sb(Text + " | " + Tag); }
static System.Timers.Timer _timer; // From System.Timers #endregion /// <summary> /// Parse RGLinks From Show into Size/Format, find working copy of average to highest quality available, start download in jdownloader and log in db /// </summary> /// <param name="show"></param> /// <param name="CheckLinks"></param> /// <returns></returns> public bool JDownloadShow(ssTv show, bool CheckLinks = true) { //SceneSourceLib ss = new SceneSourceLib(); //ssTv epPost = show; //if (CheckLinks) { epPost = ss.ParseRGLinks(show, true); } bool Downloaded = false; //if (epPost.RapidGator_WEB != null) { Downloaded = true; WriteDownloadLink(epPost.RapidGator_WEB, epPost.ShowName); } //if (!Downloaded) { if (epPost.RapidGator_HDTV != null) { Downloaded = true; WriteDownloadLink(epPost.RapidGator_HDTV, epPost.ShowName); } } //if (!Downloaded) { if (epPost.RapidGator_720P != null) { Downloaded = true; WriteDownloadLink(epPost.RapidGator_720P, epPost.ShowName); } } //if (!Downloaded) { if (epPost.RapidGator_1080P != null) { Downloaded = true; WriteDownloadLink(epPost.RapidGator_1080P, epPost.ShowName); } } //if (Downloaded) //{ // // mark show as downloaded in database // ssTv obj = epPost; // obj.InCollection = true; // ss.ssTv_UpdateInCollection(obj); //} return(Downloaded); }