public static int GetEp_infoA(ref char[] c_buff, List <FilterOption> lep) { int s = 0; s = FindCharArray(ref c_buff, ref Key_mod_episode, s); if (s < 0) { return(0); } int e = FindCharArray(ref c_buff, ref Key_mod_playlist, s); FilterOption ep = new FilterOption(); do { s = FindCharArray(ref c_buff, ref Key_curvid, s); if (s > e || s < 0) { break; } ep.Code = new string(FindCharArrayA(ref c_buff, '\'', '\'', ref s)); s = FindCharArray(ref c_buff, ref Key_titleA, s); ep.Content = new string(FindCharArrayA(ref c_buff, '\"', '\"', ref s)); lep.Add(ep); } while (s < e); return(e); }
public static ImageContext Des_PlayPage(char[] c_buff, List <FilterOption> lep, List <DX.BindingMod> lid) { c_buff = DeleteChar(ref c_buff, '\\'); ImageContext ic = new ImageContext(); int s = FindCharArray(ref c_buff, ref Key_mod_video_info, 0); if (s < 0) { return(ic); } int e = FindCharArray(ref c_buff, ref Key_section_e, s); int t = FindCharArray(ref c_buff, ref Key_video_tit, s); string str = ""; if (t > 0) { ic.title = new string(FindCharArrayA(ref c_buff, '>', '<', ref t)) + "\r\n"; s = t; } t = FindCharArray(ref c_buff, ref Key_video_types, s); if (t > 0) { str += new string(FindCharArrayA(ref c_buff, '>', '<', ref t)) + "\r\n"; s = t; } for (int i = 0; i < 3; i++) { t = FindCharArray(ref c_buff, ref Key_intro_line, s); if (t > 0) { str += new string(FindCharArrayA(ref c_buff, '>', '<', ref t)) + "\r\n"; s = t; } else { break; } } ic.detail = str; t = FindCharArray(ref c_buff, ref Key_mod_sideslip_episodes, s); if (t > 0) { FilterOption ep = new FilterOption(); e = FindCharArray(ref c_buff, ref Key_section_e, t); int c = 1; while (t > 0) { t = FindCharArray(ref c_buff, ref Key_li, s, e); if (t < 0) { break; } t = FindCharArray(ref c_buff, ref Key_vidA, t); ep.Code = new string(FindCharArrayA(ref c_buff, '\"', '\"', ref t)); int le = FindCharArray(ref c_buff, ref Key_a_e, t); t = FindCharArray(ref c_buff, ref Key_i, t, le); if (t > 0) { ep.Content = c.ToString() + new string(FindCharArrayA(ref c_buff, '>', '<', ref t)); } else { ep.Content = c.ToString(); } c++; s = le; lep.Add(ep); } } t = FindCharArray(ref c_buff, ref Key_video, s); if (t > 0) { t = FindCharArray(ref c_buff, ref Key_vidB, t); ic.vid = new string(FindCharArrayA(ref c_buff, '\"', '\"', ref t)); t = FindCharArray(ref c_buff, ref Key_pic, t); t = FindCharArray(ref c_buff, ':', t); ic.src = new string(FindCharArrayA(ref c_buff, '\"', '\"', ref t)); s = t; } t = FindCharArray(ref c_buff, ref Key_clips, s); if (t > 0) { DataModA ida = new DataModA(); e = FindCharArray(ref c_buff, ref Key_m_e, t); while (t > 0) { t = FindCharArray(ref c_buff, ref Key_vidB, s, e); if (t < 0) { break; } if (e - s < 200) { break; } ida.vid = new string(FindCharArrayA(ref c_buff, '\"', '\"', ref t)); t = FindCharArray(ref c_buff, ref Key_titleA, t); t++; ida.Title = new string(FindCharArrayA(ref c_buff, '\"', '\"', ref t)); t = FindCharArray(ref c_buff, ref Key_pic, t); t = FindCharArray(ref c_buff, ':', t); ida.src = new string(FindCharArrayA(ref c_buff, '\"', '\"', ref t)); int le = FindCharArray(ref c_buff, '}', t); s = le; le = FindCharArray(ref c_buff, ref Key_duration, t, s); if (le > 0) { le++; //ida.href = new string(FindCharArrayA(ref c_buff, '\"', '\"', ref le)); } //else ida.href = null; lid.Add(ida); } } return(ic); }