vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - VBKeepLink GoogleVideo, Metacafe, Youtube ... Get Video Download Link (https://vborg.vbsupport.ru/showthread.php?t=127887)

bonjurkes 10-04-2006 10:12 AM

i tried to get download link for one of the youtube videos from your demo site.

It give me an url for downloading, but it gives error while trying to download and when i try to visit that link, it says page cannot be found.

i guess there are some bugs at hack.

Breathex 10-04-2006 03:19 PM

in my forum at /watchallvideos.php page i can only watch youtube videos, other sites links are not working. any solution or advice to solve this problem?

|oR|Greg 10-04-2006 04:40 PM

I'm having similar issues, for now this hack is being uninstalled until it's out of (in my opinion) beta.

iran.gs 10-06-2006 10:54 PM

this works perfect, i just need some more rss beside metacafe anyone ?

smoknz28 10-07-2006 03:40 PM

Can this play videos from my video portal:

video.f-bodyhideout.com

?

Thanks,
Mark

lebanon 10-07-2006 07:45 PM

hi all ,
sorry for not being able to respond earlier ..
First thanks for everyone who installed and enjoyed the hack, second for the beta mark , it will never be removed for two reasons .
This hack is more of a source code, that can be modified and actually it will occasionaly need to. Why ?
Simple answer, sites like metacafe, google, youtube or others keep changing their video formats, and links because of people linking to videos directl like us ! yes we love free stuff and we love leeching but thats not what they love us to do , thus updates cannot run off, and in the same time, even if am not here to update, since the code is clear and open, it allows any coder with my permission to update the links of the hack or source code of curl functions to suit changes and re-distribute the code freely and ofcourse share back with updates.
Again, because there is not only one single use of the source code, i only gave two examples of how i used it in mypages ... which mean, the dvid.php is actually the base file for all your actions...
My hack is exactly what i use, plus providing you the ability to use more and more, even better, if you suggest an idea and in my free time i would be able to do it for you , or maybe you are a better coder and can share us back with more of this !.
As for RSS feeds requested there simply listed on respective sites , now note that for the example i provided , does play youtube , metacafe and few others not because it cannot play others in concept, its because its an FLV player , so for google you need to add avi player , for wmv you need to add wmv code, its all simple to add and integrate , and probably later ill provide you with files and conditions for each single site.
Last note for smoknz, no its not made except for specific sites but again, it can be arranged to do any site ! if you wish it to be added for public, you can request that and if you wish it to be used for you ONLY you can use the same concept to integrate yours. Regards all

smoknz28 11-04-2006 06:22 PM

Thank you for sharing this code with the rest of us. ;)

However, this isn't working with YouTube.

Here's a link I'm trying to get: http://www.youtube.com/watch?v=I_9DuNXkMAc

Maybe they've changed their code since you wrote this.

Immortal_Shades 03-09-2007 12:57 PM

My question is how does this work and what good is this release with the Dvid.php file?
That's like giving us ice cream without the spoon to eat it. :)

I instaled it but maybe I am doing something wrong because I put in a url and get nothing and no response at all, whereas I know its on the video server.

serkan 08-25-2007 09:44 PM

Quote:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /watchallvideos.php on line 31

Warning: include(http://*****/dvid.php?url=http://you...?v=JsD6uEZsIsU) [function.include]: failed to open stream: no suitable wrapper could be found in /watchallvideos.php on line 31

Warning: include() [function.include]: Failed opening 'http://*****/dvid.php?url=http://youtube.com/?v=JsD6uEZsIsU' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /watchallvideos.php on line 31
i got this error how can i fix it ?
thanks for plugin

Sitting 09-07-2007 10:27 AM

This is a simple update for download Youtube videos with new links and regions....

Modify dvid.php

search:
Code:

// youtube.com, result = flv
if(preg_match("/http:\/\/(www\.)?youtube\.com\/watch\?v=([a-zA-Z0-9_]*)/i", $url, $sub)) {
        $c = curl_init();
        curl_setopt($c, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
        curl_setopt($c, CURLOPT_URL, $url);
        curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
        $result = curl_exec($c);
        curl_close($c);

        if(preg_match("/watch_fullscreen\?video_id=([0-9a-zA-Z]*)&l=[0-9]*&t=([0-9a-zA-Z\-]*)/i", $result, $d_link)) {
                //header(sprintf("Location: http://cache.googlevideo.com/get_video?video_id=%s&t=%s", $d_link[1], $d_link[2], $d_link[3]));
                printf("http://cache.googlevideo.com/get_video?video_id=%s&t=%s", $d_link[1], $d_link[2], $d_link[3]);
                exit();
        }
}

Replace with:
Code:

// youtube.com, result = flv
if(preg_match("/http:\/\/([a-z]*.)?youtube\.com\/watch\?v=([a-zA-Z0-9_%-]*)/i", $url, $sub)) {
        $c = curl_init();
        curl_setopt($c, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
        curl_setopt($c, CURLOPT_URL, $url);
        curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
        $result = curl_exec($c);
        curl_close($c);

        if(preg_match("/watch_fullscreen\?video_id=([a-zA-Z0-9_%-]*)&l=[0-9]*&t=([a-zA-Z0-9_%-\-]*)/i", $result, $d_link)) {
                //header(sprintf("Location: http://cache.googlevideo.com/get_video?video_id=%s&t=%s", $d_link[1], $d_link[2], $d_link[3]));
                printf("http://cache.googlevideo.com/get_video?video_id=%s&t=%s", $d_link[1], $d_link[2], $d_link[3]);
                exit();
        }
}

:D


All times are GMT. The time now is 08:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01165 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete