Alterserv

ThunderCache 3.1.x => Plugins para ThunderCache 3.1.2 => Plugins de música & videos => Mensaje publicado por: josueflat en Diciembre 29, 2012, 08:09:42 AM

Título: plugin http://www.pornhub.com/
Publicado por: josueflat en Diciembre 29, 2012, 08:09:42 AM
alguno de ustede tendra este plugin¿
Título: Re:plugin http://www.pornhub.com/
Publicado por: gildope en Diciembre 29, 2012, 09:46:32 AM
pornhub

/*
* @autor xtanctp. use http.*\.phncdn\.com.*(\.flv|\.mp4) no bfwcache.acl
* xtanctp@gmail.com
*/
#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile 64
// g++ $BUILD64 -I. -fPIC -shared -g -o phncdn.com.so phncdn.com.cpp

string get_filename(string url) {
        vector<string> resultado;
        if (url.find("?") != string::npos) {
            stringexplode(url, "?", &resultado);
            stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
            return resultado.at(resultado.size()-1);
        } else {
            stringexplode(url, "/", &resultado);
            return resultado.at(resultado.size()-1);
        }
}

extern "C" resposta get_match(const string url) {
    resposta r;   
   
if ( (url.find(".phncdn.com/") != string::npos)
   ) {
       r.file = get_filename(url);
      if (!r.file.empty()) {
         r.match = true;
         r.domain = "phncdn-xno";
      } else {
         r.match = false;
      }
   } else {
      r.match = false;
   }
   return r;
}
Título: Re:plugin http://www.pornhub.com/
Publicado por: josueflat en Diciembre 30, 2012, 09:19:04 AM
1000 Gracias a probar luego comento