Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 56 of 85 FirstFirst ... 646545556575866 ... LastLast
Results 826 to 840 of 1275
Like Tree8Likes

Thread: YouTube-to-MP3 conversion - PHP class and script

  1. #826
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Ok people,

    YouTube has just updated the encryption used on video signatures again.

    I already have the fix ready, but first I will be releasing (very soon!) new versions of both the free and paid-for versions of the software.

    Both free and and paid-for versions now have the auto-updating feature integrated (for automatic updating of video signature decryption code).

    I'm tired of manually posting these fixes to the forum, and I'm tired of the monumental effort required to distribute notification of these fixes to the masses. And I'm sure that you are aware of how this functionality will help keep your site operational and easier to maintain. So I've decided that now is the time to have "everyone" switch to automatic updates.

    So to be absolutely clear, after this next release of both free and paid-for versions, I will no longer be posting decryption code fixes to this forum, nor will I be emailing you with updates about these particular fixes. (This is barring some kind of bug or problem with the auto-update feature, of course!) As far as you're concerned, the entire process of updating video signature decryption code will be automated from now on.

    FYI - The next release of my software will not have the most recent fix applied. I will release the new versions here shortly, and THEN I will add the fix to my server. So you will need to wait a small period of time for the fix to become available, and then the software will automatically download and apply the fix for you. Easy peasy.

    Finally, I understand that some of you have gotten used to coming here to look for the new code, and/or you are hesitant to update the software because you have modified it in some way. I feel your pain, but change is inevitable here, and YouTube is forcing my hand. We all need to adjust to the new reality of YouTube updating their encryption approximately twice a week, and we need to embrace any measures that can be taken to facilitate continued conversion of YouTube content. And this needs to start now.

    Again, thanks for hanging in there with me, and with a little luck and tenacity, these signature encryption updates should get a lot easier for all of us in the not-so-distant future.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  2. #827
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    YouTube has changed the encryption used on video signatures again!

    I have updated the free version to address an issue with the auto-updating feature.

    Please download the latest version of the code here: http://www.codingforums.com/showpost...&postcount=807

    I will soon be updating the paid-for version of the app as well, and I will email an updated (free) copy to all those who have already purchased the script. (Updates will be sent to your Tradebit email addresses only.)

    When I have finished releasing both free and paid-for versions of my software, I will update my server with the decryption code fix, and your software will automatically download and apply the fix when it becomes available.

    As always, please let me know if you have any questions/concerns regarding the above and/or the code.
    Last edited by chump2877; 08-02-2013 at 12:37 AM.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  3. #828
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Hello everyone,

    I have just finished updating the paid-for version of my software. New in this version:

    1. I have introduced an auto-updating feature that automatically updates YouTube video signature decryption code as needed. This feature will work as follows:
      • When your site users try to convert an encrypted video, and the decryption code in my software fails (and the conversion subsequently fails), then the software will poll my remote server and check for a new decryption code update.
      • If the software on your server has the most recent update, then I will immediately be notified that the current decryption code is malfunctioning, and I will start working on a fix. (In other words, we have a detection mechanism here that facilitates faster response times from me with respect to fixing decryption code problems.)
      • For the length of time that the software decryption code is failing, and no updated version is available, the code will continue to check for new updates every hour until it finds one. (During this time, you will not be able to convert encrypted videos. But some amount of downtime is unavoidable here between updates. The goal is to minimize the downtime.)
      • When the software detects that an update is available, it will download the relevant code from my server and automatically update the new UtilityFunctions.class.php file (which is where the decryption code is now located).


    The following files/directories were changed/added:
    1. UtilityFunctions.class.php new
    2. software.xml new
    3. VideoConverter.class.php updated


    The existing VideoConverter.class.php file was modified, and UtilityFunctions.class.php and software.xml were added. There should be no need to edit either UtilityFunctions.class.php or software.xml, and thus modifying those files is strongly discouraged.

    Both UtilityFunctions.class.php and software.xml should be set to chmod 0777, or the lowest permissions possible that still enable programmatic modification of those files.

    All previous customers who have purchased the paid-for version of my app are receiving this new, updated version via the e-mail addresses that you provided at Tradebit.com.

    Please report any issues with either the paid-for version or the free version in this forum thread. Your feedback is encouraged. Donations are welcome!

    Thanks!
    Last edited by chump2877; 08-02-2013 at 01:10 AM.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  4. #829
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Everyone,

    Quick tip: If you're trying to figure out which specific lines of code have changed from the previous to the current version of any given updated file, then there are many tools out there that will compare 2 files and show you the differences:

    1) Check your script editor. Many script editors come with a tool that allows you to compare 2 files and output a report showing the differences.

    2) Google knows best: https://www.google.com/search?q=comp...ient=firefox-a
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  5. #830
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877 View Post
    That is a side effect of the download progress bar. It is nothing to worry about. If you disable error reporting in the script (which you should always do anyway for security reasons), then you won't see this warning and neither will your site visitors.
    I know about error reporting but I activated it because I get "Error downloading video!". So the video is not downloaded.

    I you can check around here: http://5.39.44.119/VideoToMp3Converter/index.php
    Thanks in advance

  6. #831
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, I'm still using the "old" method by replacing the DecryptYouTubeCypher function inside the YouTubeToMp3Converter.class.php - I have downloaded your latest free version and took the function from the UtilityFunctions.class and pasted it to the YouTubeToMp3Converter.class.php as we have used to do it so far. But it won't work (i haven't had any problem before)...so I was wondering should it work by doing it like that or did u made any other changes in the code?

    Thanks!

  7. #832
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by ahtozz View Post
    Hi, I'm still using the "old" method by replacing the DecryptYouTubeCypher function inside the YouTubeToMp3Converter.class.php - I have downloaded your latest free version and took the function from the UtilityFunctions.class and pasted it to the YouTubeToMp3Converter.class.php as we have used to do it so far. But it won't work (i haven't had any problem before)...so I was wondering should it work by doing it like that or did u made any other changes in the code?

    Thanks!
    That's not how the auto-updating system works. The latest release of my software comes with decryption code that is one less version than the current version. You need to allow the auto-update feature to reach out to my server and grab the latest decryption code update. You cannot easily, manually update the decryption code anymore, unless you want to decipher the video signature encryption yourself! But why would you want to do that? Just let the code do what it was designed to do: Update itself. There is nothing to be gained by fighting "the system" here. We will ALL save A LOT of time -- in the long term -- by using this auto-updating feature.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  8. #833
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by Sylvaind View Post
    I know about error reporting but I activated it because I get "Error downloading video!". So the video is not downloaded.

    I you can check around here: http://5.39.44.119/VideoToMp3Converter/index.php
    Thanks in advance
    Did you follow all the instructions in this post: http://www.codingforums.com/showpost...&postcount=807

    Since you are only having problems with encrypted videos, that seems to be the likely culprit.

    Also, are you using the most recent version of the software?
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  9. #834
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by chump2877 View Post
    Did you follow all the instructions in this post: http://www.codingforums.com/showpost...&postcount=807

    Since you are only having problems with encrypted videos, that seems to be the likely culprit.

    Also, are you using the most recent version of the software?
    I just downloaded the last version (8-1-13, I was using 7-31-13) and it works perfectly.
    Thanks for your awesome job here !

  10. #835
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by chump2877 View Post
    Did you follow all the instructions in this post: http://www.codingforums.com/showpost...&postcount=807

    Since you are only having problems with encrypted videos, that seems to be the likely culprit.

    Also, are you using the most recent version of the software?
    Please also ensure that write permissions are enabled for whatever directory my software is installed in! So, for example, if you installed the software in your web root, then the code needs to be able to create/open/edit files in your web root directory.
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪

  11. #836
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    yeah, it work for my linux server!
    but in windows apache it doesn't. the software and utility class has been downloaded but it won't rename and replace the existing file.

    repeat youtube

  12. #837
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    OK, because in windows, rename function will return false while the file exist, So I change the code to do this trick

    PHP Code:
        private function FixYouTubeDecryption()
            {
                
    $softwareInfo file_get_contents('software.xml');
                
    $sxe = new SimpleXMLElement($softwareInfo);
                
    $info $sxe->xpath('/software/info');
                
    $lastError = (int)$info[0]->lasterror;
                
    $currentTime time();
                if (
    $currentTime $lastError 3600)
                {
                    
    $version $info[0]->version;
                    
    $updateResponse file_get_contents('http://rajwebconsulting.com/update-video-converter/v:'.$version);
                    if (
    $updateResponse != "You have the newest version.")
                    {
                        
    $updateResponseArr explode('~~~'$updateResponse);
                        
    $fp fopen('UtilityFunctions2.class.php''w');
                        
    $lockSucceeded false;
                        if (
    flock($fpLOCK_EX))
                        {
                            
    $lockSucceeded true;
                            
    fwrite($fp$updateResponseArr[0]);
                            
    flock($fpLOCK_UN);
                        }
                        
    fclose($fp);
                        if (
    $lockSucceeded)
                        {
                            
    // vidtunez031S delete file before renaming to make sure rename function returns true
                            
    if (is_file(realpath("UtilityFunctions.class.php")))
                            {
                                
    unlink(realpath("UtilityFunctions.class.php"));
                            }
                            
    // vidtunez031E delete file before renaming to make sure rename function returns true
                            
    rename("UtilityFunctions2.class.php""UtilityFunctions.class.php");
                            
    $sxe->info[0]->version $updateResponseArr[1];
                        }
                    }
                    
    $sxe->info[0]->lasterror $currentTime;
                    
    $fp fopen('software2.xml''w');
                    
    $lock2Succeeded false;
                    if (
    flock($fpLOCK_EX))
                    {
                        
    $lock2Succeeded true;
                        
    fwrite($fp$sxe->asXML());
                        
    flock($fpLOCK_UN);
                    }
                    
    fclose($fp);
                    if (
    $lock2Succeeded)
                    {
                        
    // vidtunez031S delete file before renaming to make sure rename function returns true
                        
    if (is_file(realpath("software.xml")))
                        {
                            
    unlink(realpath("software.xml"));
                        }
                        
    // vidtunez031E delete file before renaming to make sure rename function returns true
                        
    rename("software2.xml""software.xml");
                    }
                }
            } 
    I delete the exist file before renaming.

    regards,
    vidtunez admin
    repeat youtube
    free online audio editor
    Last edited by rajah; 08-03-2013 at 05:27 AM. Reason: grammar

  13. Users who have thanked rajah for this post:

    chump2877 (08-03-2013)

  14. #838
    vac
    vac is offline
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, I'm using newest version of non-paid script. At local pc is everything ok, but on my server i have problem with some videos on YT (remains at "Downloading video..." without any continue). I found that "get_video_info" response for this videos contains some like "&status=fail&reason=The+uploader+has+not+made+this+video+available+in+your+country.1", but my server is located in same country as my local pc. Is that signal for servers IP ban? If so, why only for some videos and why for this reason? Thanks for any advice.

  15. #839
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    Quote Originally Posted by vac View Post
    Hi, I'm using newest version of non-paid script. At local pc is everything ok, but on my server i have problem with some videos on YT (remains at "Downloading video..." without any continue). I found that "get_video_info" response for this videos contains some like "&status=fail&reason=The+uploader+has+not+made+this+video+available+in+your+country.1", but my server is located in same country as my local pc. Is that signal for servers IP ban? If so, why only for some videos and why for this reason? Thanks for any advice.
    do you have domain name? I can't download from youtube if I using my IP in my country, but after I register a free domain name (you can get it free in many provider just google it) it works well. Hope this will helps you,

    regards,
    vidtunez admin
    repeat youtube
    free online audio editor

  16. #840
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,830
    Thanks
    21
    Thanked 157 Times in 148 Posts
    Quote Originally Posted by rajah View Post
    OK, because in windows, rename function will return false while the file exist, So I change the code to do this trick

    PHP Code:
        private function FixYouTubeDecryption()
            {
                
    $softwareInfo file_get_contents('software.xml');
                
    $sxe = new SimpleXMLElement($softwareInfo);
                
    $info $sxe->xpath('/software/info');
                
    $lastError = (int)$info[0]->lasterror;
                
    $currentTime time();
                if (
    $currentTime $lastError 3600)
                {
                    
    $version $info[0]->version;
                    
    $updateResponse file_get_contents('http://rajwebconsulting.com/update-video-converter/v:'.$version);
                    if (
    $updateResponse != "You have the newest version.")
                    {
                        
    $updateResponseArr explode('~~~'$updateResponse);
                        
    $fp fopen('UtilityFunctions2.class.php''w');
                        
    $lockSucceeded false;
                        if (
    flock($fpLOCK_EX))
                        {
                            
    $lockSucceeded true;
                            
    fwrite($fp$updateResponseArr[0]);
                            
    flock($fpLOCK_UN);
                        }
                        
    fclose($fp);
                        if (
    $lockSucceeded)
                        {
                            
    // vidtunez031S delete file before renaming to make sure rename function returns true
                            
    if (is_file(realpath("UtilityFunctions.class.php")))
                            {
                                
    unlink(realpath("UtilityFunctions.class.php"));
                            }
                            
    // vidtunez031E delete file before renaming to make sure rename function returns true
                            
    rename("UtilityFunctions2.class.php""UtilityFunctions.class.php");
                            
    $sxe->info[0]->version $updateResponseArr[1];
                        }
                    }
                    
    $sxe->info[0]->lasterror $currentTime;
                    
    $fp fopen('software2.xml''w');
                    
    $lock2Succeeded false;
                    if (
    flock($fpLOCK_EX))
                    {
                        
    $lock2Succeeded true;
                        
    fwrite($fp$sxe->asXML());
                        
    flock($fpLOCK_UN);
                    }
                    
    fclose($fp);
                    if (
    $lock2Succeeded)
                    {
                        
    // vidtunez031S delete file before renaming to make sure rename function returns true
                        
    if (is_file(realpath("software.xml")))
                        {
                            
    unlink(realpath("software.xml"));
                        }
                        
    // vidtunez031E delete file before renaming to make sure rename function returns true
                        
    rename("software2.xml""software.xml");
                    }
                }
            } 
    I delete the exist file before renaming.

    regards,
    vidtunez admin
    repeat youtube
    free online audio editor
    Thanks rajah...I will investigate this tomorrow when I have more time...and update the Windows version if necessary...
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :-)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!
    ♪♪ Need Web Hosting For My YouTube-To-Mp3 Conversion Software? Check Here !! ♪♪


 
Page 56 of 85 FirstFirst ... 646545556575866 ... LastLast

LinkBacks (?)

  1. 08-24-2014, 04:09 AM
  2. 07-21-2014, 05:32 PM
  3. 07-12-2014, 05:59 PM
  4. 06-26-2014, 03:39 PM
  5. 05-31-2014, 09:13 PM
  6. 04-24-2014, 07:53 PM
  7. 04-19-2014, 10:22 AM
  8. 04-04-2014, 08:33 PM
  9. 04-04-2014, 01:58 AM
  10. 03-28-2014, 06:03 AM
  11. 03-20-2014, 06:11 PM
  12. 03-16-2014, 01:22 AM
  13. 03-08-2014, 04:56 PM
  14. 03-07-2014, 06:21 PM
  15. 03-01-2014, 12:48 PM
  16. 02-22-2014, 08:40 PM
  17. 02-22-2014, 12:02 AM
  18. 02-21-2014, 08:15 PM
  19. 02-21-2014, 12:00 AM
  20. 02-20-2014, 08:37 PM
  21. 02-20-2014, 06:53 PM
  22. 02-20-2014, 03:21 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •