Esempio n. 1
0
 function bookmarklet()
 {
     $url = entre1y2($this->web_descargada, '"config_url":"', '"');
     $url = urldecode($url);
     /*
     $url = "http://www.crunchyroll.com/xml/?req=RpcApiVideoPlayer_GetStandardConfig&media_id=649575&video_format=106&video_quality=60&auto_play=1&aff=crunchyroll-website&show_pop_out_controls=1&pop_out_disable_message=Only+All-Access+Members+and+Anime+Members+can+pop+out+this+video.+Get+your+membership+today%21";
     $post = "current%5Fpage=http%3A%2F%2Fwww%2Ecrunchyroll%2Ecom%2Fkill%2Dla%2Dkill%2Fepisode%2D24%2Dpast%2Dthe%2Dinfinite%2Ddarkness%2D649575%3Fp480%3D1";
     $ret = CargaWebCurl($url, $post, 0, '', array('Content-type: application/x-www-form-urlencoded'));
     dbug_($ret);
     */
     $post = "current%5Fpage=" . urlencode($this->web);
     return 'xhr("' . bm_scape($url) . '", "' . bm_scape($post) . '", function(data){lanzaDVform("' . bm_scape($this->web) . '", data);});';
 }
Esempio n. 2
0
 function bookmarklet()
 {
     if (strpos($this->web, 'http://www.dailymotion.com/embed/') === 0) {
         dbug('Lanza resultado');
         return 'bookmarklet_form();';
     } else {
         if (!enString($this->web_descargada, 'sequence=')) {
             return 'xhr("' . bm_scape($this->web) . '", null, function(data){lanzaDVxhr("' . bm_scape($this->web) . '", data);});';
         }
         $urlContenedor = urldecode(entre1y2($this->web_descargada, 'sequence=', '"'));
         dbug_($urlContenedor);
         $jsonUrlContenedor = json_decode($urlContenedor, true);
         dbug_r($jsonUrlContenedor);
         dbug_($jsonUrlContenedor['config']['sharing']['embedCode']);
         $urlEmbed = entre1y2($jsonUrlContenedor['config']['sharing']['embedCode'], 'src="', '"');
         dbug('Pedir embed');
         return 'xhr("' . bm_scape($urlEmbed) . '", null, function(data){lanzaDVform("http:' . bm_scape($urlEmbed) . '", data);});';
     }
 }