eyecatchup / php-yt_downloader

PHP Class to download videos from YouTube.
http://eyecatchup.github.com/php-yt_downloader/
293 stars 166 forks source link

source fixx? #4

Open styl3R opened 11 years ago

styl3R commented 11 years ago

hi,

i see on the download source the message -> Since we cannot run PHP code here, the download functionality is disabled for this demo version.

Note: You can find the source code of this demo in the gh-pages branch.

Can you help me to remove the message and convert with your script - i have downloadet the version but i see only this shit :(

enderkus commented 11 years ago

Hi open the scripts.js file is rewrite 91 line

// If there is any input, show a confirm dialog before resetting the session.
if($("input[name='yturl']").val() !== "") {
    $.confirm({
        'title'   : 'Start new Download',
        'message' : 'Choose your download: <br />' +
          '<strong>Video</strong>: Download the video file.<br />' +
          '<strong>Audio</strong>: Convert video and download soundtrack as mp3 file.',
        'buttons' : {
          // Disabled for GitHub demo, since we can not run scripts.
          'Audio' : {'class' : 'blue', 'action': function() { do_download("audio"); }},
          'Video' : {'class' : 'red', 'action': function() { do_download("video"); }}

        }
    });
}
return false;

});