Problema con plugin de Netflix

Publicado por Requium, Marzo 27, 2013, 10:49:16 PM

Tema anterior - Siguiente tema

Requium

Buenas a todos, y otra vez molestando, queria hacer una consulta, revisando videos de netflix premium no cachean, en el thunder repor me marca como 26Mbps de cacheo que creo q es el resto de la pag, no se si alguien lo ha probado ya.

Muchas gracias anticipadas.

Saludos
"The quieter you become, the more you are able to hear" -Backtrack 5

luistec

Sería verificar si esta usando el mismo servidor, haber si le das una revisada cuando estes viendo algun video, ya que joemg posteo el código hace tiempo en peruhardware, ahí lo pongo para que lo revisen.

Código (cpp) [Seleccionar]

#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o nflxvideo.net.so nflxvideo.net.cpp
// regex
// http.*\.nflxvideo\.net.*

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()-4) + "_" + resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1);          
       } else {
           stringexplode(url, "/", &resultado);
           return resultado.at(resultado.size()-4) + "_" + resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1); ;
       }
}

extern "C" resposta getmatch(const string url) {
   resposta r;

if ( (url.find(".nflxvideo.net/") != string::npos)
) {

   r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "netflix";
} else {
r.match = false;
}
} else {
r.match = false;
}
return r;
}

Requium

Hmm, revisando por esa parte hace peticiones a un servidor con ip, 108.x.x.31, al ver la pelicula y no la hace al dominio netflix.net, es posible hacer plugins a IPs con el thunder 3.1.2??

Se agradece por la respuesta tan pronta :D.

Saludos
"The quieter you become, the more you are able to hear" -Backtrack 5

gabriel777

PROBA CAMBIANDO EL NOMBRE DEL DOMINIO NEFLIX POR ESA IP QUE VOS VES, IGULMENTE, ANTES HACEGURATE QUE ESA IP NO SEA LA MISMA QUE EL DOMINIO.

Cita de: Requium en Marzo 28, 2013, 07:13:57 AM
Hmm, revisando por esa parte hace peticiones a un servidor con ip, 108.x.x.31, al ver la pelicula y no la hace al dominio netflix.net, es posible hacer plugins a IPs con el thunder 3.1.2??

Se agradece por la respuesta tan pronta :D.

Saludos
Cita de: luistec en Marzo 27, 2013, 11:13:41 PM

Código (cpp) [Seleccionar]

#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// use this line to compile
// g++ -I. -fPIC -shared -g -o nflxvideo.net.so nflxvideo.net.cpp
// regex
// http.*\.nflxvideo\.net.*

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()-4) + "_" + resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1);          
       } else {
           stringexplode(url, "/", &resultado);
           return resultado.at(resultado.size()-4) + "_" + resultado.at(resultado.size()-3) + "_" + resultado.at(resultado.size()-2) + "_" +resultado.at(resultado.size()-1); ;
       }
}

extern "C" resposta getmatch(const string url) {
   resposta r;

if ( (url.find(".nflxvideo.net/") != string::npos)
) {

   r.file = get_filename(url);
if (!r.file.empty()) {
r.match = true;
r.domain = "netflix";
} else {
r.match = false;
}
} else {
r.match = false;
}
return r;
}