public List <FileInfo> SearchFile(string content, EverythingSearchEnum type) { switch (type) { case EverythingSearchEnum.Video: content = "ext:3g2;3gp;3gp2;3gpp;amr;amv;asf;avi;bdmv;bik;d2v;divx;drc;dsa;dsm;dss;dsv;evo;f4v;flc;fli;flic;flv;hdmov;ifo;ivf;m1v;m2p;m2t;m2ts;m2v;m4b;m4p;m4v;mkv;mp2v;mp4;mp4v;mpe;mpeg;mpg;mpls;mpv2;mpv4;mov;mts;ogm;ogv;pss;pva;qt;ram;ratdvd;rm;rmm;rmvb;roq;rpm;smil;smk;swf;tp;tpr;ts;vob;vp6;webm;wm;wmp;wmv " + content; break; } files = new List <FileInfo>(); SearchEverythign(content); return(files); }
private static void TestEverything(EverythingSearchEnum type = EverythingSearchEnum.Video) { var content = "mvsd-029 | mvsd029"; var res = new EverythingHelper().SearchFile(content, type); }