Cynical-advanced articles, cynical advanced articles
After the previous article was written to capture data and capture the data, I was prepared to do a big job. As a result, I encountered a big problem and a magnetic analysis problem. It seems that you can only watch the video after downloading it offline through thunder. It is totally different from what I previously imagined. This is totally different from my original intention. What I want is to experience it without having to do it now, it can be played smoothly like iQiYi. Therefore, after tossing N pieces of information, I found some tips. There are many sayings on the Internet, such:
Part of a post:
After looking for the materials for a few days, I found that I may have taken the wrong path. Magnetic resolution is not parsed by algorithms. These files are all based on some offline cache servers, such as thunder and Tornado, cloud disks.
Through these ideas, I cannot construct these offline servers. Can I use these offline servers and fixed Hash to obtain these files for my purpose of playing. With this in mind, I went crazy about finding a few pieces of information on the Internet and found that there were successful cases. This gave me a boost.
Not much nonsense. First paste a piece of parsing code:
List <dhtItemDTO> items = new List <dhtItemDTO> (); string xl_jxurl = string. format ("delimiter", hashKey); CommHttp. httpProc jxpro = new CommHttp. httpProc (xl_jxurl); jxpro. encoding = Encoding. UTF8; string jxjson1 = Server. urlDecode (jxpro. proc (); var item = JsonConvert. deserializeObject <dhtrespDTO> (jxjson1); if (item! = Null & item. resp. record_num> 0) {foreach (var jxitem in item. resp. subfile_list) {listDHT. add (new dhtShowDetailDTO () {title = jxitem. name, key = item.resp.info _ hash, keytype = 1, index = jxitem. index, filesize = jxitem. file_size/1024/1024 + "Mb"}); // parse HASH data }}
This is the first article in the advanced article. It comes with my APP. The next article will describe the specific ideas and part of the parsing code.
Write at lastQQ technology exchange group: 485247202 hope to discuss and exchange technologies and experiences