• 8364阅读
  • 7回复

这样写磁力解析对不?大家帮我看看。 [复制链接]

上一主题 下一主题
离线zrz444
 

只看楼主 倒序阅读 使用道具 楼主  发表于: 2016-05-11
  winform.btnPlay.oncommand = function(id,event){

  if( winform.btnPlay.checked ){
      
   aPlayer.open("http://hz.ftn.qq.com/ftn_handler/f2243a568633b903d403d50bd1ef50bb22d57fbf72252586625d344eb1df3ee474edd7a1e8eb8ebaaa1a0e4a2d964f993a77c5a3b21b977742d4dad2b527df5e")
  aPlayer.setConfig(3,"{09571A4B-F1FE-4C60-9760-DE6D310C7C31}")
  aPlayer.setConfig(1105,"FTN5K="+"b9c26086")
  aPlayer.play()
  winform.trackbar.showProgress(true);
}
else {
  aPlayer.pause();
本帖提到的人: @qq23774127 @yh56789 @675165837
你好HPLAYER
离线02006691

只看该作者 沙发  发表于: 2016-05-11
http://hz.ftn.qq.com/ftn_handler/b7811a5c4bbf2ed5bbc4798b0433bc99c3a9e009c9084e32936fc3fb8c1805eac2eadb9fd0db0434c3a47bd8b66e41e3d11ac3d7c620dfa70573ca947b4e6e0e?compressed=0&dtype=1&fname=m.mp4
这样,地址后面加?compressed=0&dtype=1&fname=m.mp4
另外解析到的地址,先验证下地址是否有效。无效的话要换地址。
public string GetPlayUrl(string comkey, string urlstart, string cookie, bool IsMsg = true) {
            WebClient web = new WebClient();
            string strurl = "http://xfxa.ctfs.ftn.qq.com,http://xfsh.ctfs.ftn.qq.com,http://xfcd.ctfs.ftn.qq.com,http://xa.ctfs.ftn.qq.com,http://xa.btfs.ftn.qq.com,http://tj.ctfs.ftn.qq.com,http://szmail.tfs.ftn.qq.com,http://sz.ctfs.ftn.qq.com,http://sh.ctfs.ftn.qq.com,http://sh.btfs.ftn.qq.com,http://hz.ftn.qq.com,http://cd.ctfs.ftn.qq.com,http://xg.ctfs.ftn.qq.com,http://xflx.xabtfs.ftn.qq.com,http://xflx.hz.ftn.qq.com,http://sh.yun.ftn.qq.com,http://1.dc.ftn.qq.com,http://nj.disk.ftn.qq.com,http://xasrc.ctfs.ftn.qq.com,http://cd-btfs.yunup.ftn.qq.com,http://xflx.store.cd.qq.com,http://xflx.sz.ftn.qq.com";
            List<string> cs = strurl.Split(',').ToList();
            string url = string.Empty;
            bool ok = false;
            int i = 1;
            foreach (var item in cs) {
                if (IsMsg) {
                    Msg("磁力链播放地址尝试(" + i + ")!");
                }
                string newurl = string.Format("{0}/ftn_handler/{1}?compressed=0&dtype=1&fname=m.mkv", item, comkey);
                ok = GetBoolUrl(cookie, newurl);
                if (ok) {
                    url = newurl;
                    break;
                }
                i++;
            }
            return url;
        }
private bool GetBoolUrl(string cookie, string url) {
            bool flag = false;
            try {
                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
                request.Method = "GET";
                request.Timeout = 10000;
                request.UserAgent = "Mozilla/4.0(compatible; MSIE 6.0; Windows NT 5.0; MyIE2; .NET CLR 1.1.4322)";
                request.Referer = url;
                request.Proxy = null;
                request.Headers.Add("Cookie", "FTN5K=" + cookie);
                HttpWebResponse myResponse = (HttpWebResponse)request.GetResponse();
                flag = (myResponse.StatusCode == HttpStatusCode.OK);
                request.Abort();
                return flag;
            } catch (Exception) {
                flag = false;
                return flag;
            }
        }
离线psp7456

只看该作者 板凳  发表于: 2016-05-11
楼上是真高人!
离线199636

只看该作者 地板  发表于: 2016-05-12
菜鸟表示看不懂
离线yuxingc

只看该作者 4楼 发表于: 2016-05-22
回 02006691 的帖子
02006691:http://hz.ftn.qq.com/ftn_handler/b7811a5c4bbf2ed5bbc4798b0433bc99c3a9e009c9084e32936fc3fb8c1805eac2eadb9fd0db0434c3a47bd8b66e41e3d11ac3d7c620dfa70573ca947b4e6e0e?compressed=0&dtype=1&fname=m.mp4
这样,地址后面加?compressed=0&dtype=1&fn .. (2016-05-11 16:49) 

上一层那个哈希值怎么解析到的呀
离线ayooo

只看该作者 5楼 发表于: 2016-05-22
高人膜拜中
离线小刀牛试

只看该作者 6楼 发表于: 2016-05-25
膜拜一下 坐等高人
11111111111
离线pengke

只看该作者 7楼 发表于: 2017-07-07
楼主是神神同学吗?
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个