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 53 of 75 FirstFirst ... 343515253545563 ... LastLast
Results 781 to 795 of 1115
Like Tree2Likes

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

  1. #781
    New to the CF scene
    Join Date
    Jul 2013
    Location
    Bali, Indonesia
    Posts
    8
    Thanks
    2
    Thanked 2 Times in 1 Post

    Smile Signature Length 85

    Hi,

    I'm trying to download this video http://www.youtube.com/watch?v=AgFeZr5ptV8 but fails. I dunno if it's only me or not.

    I've checked the signature length is 85. Then I've commented out the original code, and put mine like this:

    Code:
    case 85:
    	// $s = substr($s, 76, 1) . strrev(substr($s, 77, 6)) . substr($s, 83, 1) . strrev(substr($s, 61, 15)) . substr($s, 0, 1) . strrev(substr($s, 51, 9)) . substr($s, 1, 1) . strrev(substr($s, 3, 47));
    	$s = substr($s, 2, 6) . substr($s, 1, 1) . substr($s, 9, 12) . substr($s, 65, 1) . substr($s, 22, 43) . substr($s, 82, 1) . substr($s, 66, 16) . substr($s, 21, 1);
    	break;
    Retest, and it works.

  2. #782
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,746
    Thanks
    18
    Thanked 155 Times in 146 Posts

    YouTube changed their encryption again!

    YouTube changed their encryption again!

    Here is the preliminary fix. This function is meant to be a drop-in replacement for the function of the same name in VideoConverter.class.php (paid version) and in YouTubeToMp3Converter.class.php (free version):

    PHP Code:
            private function DecryptYouTubeCypher($signature)
            {
                
    $s $signature;
                
    $sigLength strlen($s);
                switch (
    $sigLength)
                {
                    case 
    92:
                        
    //$s = substr($s, 25, 1) . substr($s, 1, 1) . substr($s, 4, 21) . substr($s, 0, 1) . substr($s, 26, 16) . '.' . substr($s, 43, 36) . substr($s, 88, 2) . substr($s, 81, 2);
                        
    $s substr($s251) . substr($s322) . substr($s01) . substr($s2616) . substr($s791) . substr($s4336) . substr($s911) . substr($s803);
                        break;
                    case 
    88:
                        
    $s substr($s481) . strrev(substr($s6814)) . substr($s821) . strrev(substr($s634)) . substr($s851) . strrev(substr($s4913)) . substr($s671) . strrev(substr($s1335)) . substr($s31) . strrev(substr($s48)) . substr($s21) . substr($s121);
                        break;
                    case 
    87:
                        
    $s substr($s621) . strrev(substr($s6320)) . substr($s831) . strrev(substr($s539)) . substr($s01) . strrev(substr($s349));
                        break;
                    case 
    86:
                        
    $s substr($s261) . substr($s821) . substr($s6418) . substr($s631);
                        break;
                    case 
    85:
                        
    //$s = substr($s, 76, 1) . strrev(substr($s, 77, 6)) . substr($s, 83, 1) . strrev(substr($s, 61, 15)) . substr($s, 0, 1) . strrev(substr($s, 51, 9)) . substr($s, 1, 1) . strrev(substr($s, 3, 47));
                        
    $s substr($s26) . substr($s01) . substr($s912) . substr($s651) . substr($s2243) . substr($s841) . substr($s6616) . substr($s211);
                        break;
                    case 
    84:
                        
    $s strrev(substr($s3747)) . substr($s21) . strrev(substr($s279)) . substr($s31) . strrev(substr($s422)) . substr($s261);
                        break;
                    case 
    83:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s531) . substr($s3419) . substr($s241) . substr($s54);
                        break;
                    case 
    82:
                        
    $s substr($s361) . strrev(substr($s6812)) . substr($s811) . strrev(substr($s4126)) . substr($s331) . strrev(substr($s373)) . substr($s401) . substr($s351) . substr($s01) . substr($s671) . strrev(substr($s132)) . substr($s341);
                        break;
                    case 
    81:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s21) . substr($s3419) . substr($s241) . substr($s5428);
                        break;
                    default:
                        
    $s $signature;
                }
                return 
    $s;
            } 
    Please provide some verification that the above code works for you, and that you can convert Vevo videos.

    When I have confirmation that the above is working consistently, I will update the free version and email a link (to this forum post) to all buyers who have previously purchased the paid-for version of my software.

    Thanks for your patience!

    Edit: This code appears to be working, so I am pushing out new releases of both the free and paid-for versions of my software. The free version's ZIP file has already been updated, and I will be emailing all previous buyers of the paid-for version shortly with a link to this forum post. And, of course, I will also soon update the files currently being sold at Tradebit.com. Until next time!
    Last edited by chump2877; 07-19-2013 at 07:32 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!

  3. #783
    New to the CF scene
    Join Date
    Jul 2013
    Location
    Bali, Indonesia
    Posts
    8
    Thanks
    2
    Thanked 2 Times in 1 Post

    Question [Ask] Download video with age confirmation?

    Hi,

    How to download video with age confirmation? Like this on http://www.youtube.com/watch?v=07FYdnEawAQ

    Thanks.

  4. #784
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello chump2877

    How to download video with age confirmation, such as
    http://www.youtube.com/watch?v=07FYdnEawAQ ?

    Thanks.

  5. #785
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    I think youtube is changing signature again, am I wrong?

    regards,
    vidtunez admin
    www.vidtunez.com

  6. #786
    New Coder
    Join Date
    Mar 2010
    Posts
    11
    Thanks
    2
    Thanked 1 Time in 1 Post
    Yup, its changed again

  7. #787
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,746
    Thanks
    18
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by rajah View Post
    I think youtube is changing signature again, am I wrong?

    regards,
    vidtunez admin
    www.vidtunez.com
    I can confirm this. Vevo videos (and similar channels) are no longer converting. I will investigate the issue and post a solution here as soon as it's available.

    Thanks for your patience.
    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!

  8. #788
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,746
    Thanks
    18
    Thanked 155 Times in 146 Posts

    YouTube changed their encryption again!

    YouTube changed their encryption again!

    Here is the preliminary fix. This function is meant to be a drop-in replacement for the function of the same name in VideoConverter.class.php (paid version) and in YouTubeToMp3Converter.class.php (free version):

    PHP Code:
            private function DecryptYouTubeCypher($signature)
            {
                
    $s $signature;
                
    $sigLength strlen($s);
                switch (
    $sigLength)
                {
                    case 
    92:
                        
    $s substr($s251) . substr($s322) . substr($s01) . substr($s2616) . substr($s791) . substr($s4336) . substr($s911) . substr($s803);
                        break;
                    case 
    90:
                        
    $s substr($s251) . substr($s322) . substr($s21) . substr($s2614) . substr($s771) . substr($s4136) . substr($s891) . substr($s783);
                        break;
                    case 
    88:
                        
    $s substr($s481) . strrev(substr($s6814)) . substr($s821) . strrev(substr($s634)) . substr($s851) . strrev(substr($s4913)) . substr($s671) . strrev(substr($s1335)) . substr($s31) . strrev(substr($s48)) . substr($s21) . substr($s121);
                        break;
                    case 
    87:
                        
    //$s = substr($s, 62, 1) . strrev(substr($s, 63, 20)) . substr($s, 83, 1) . strrev(substr($s, 53, 9)) . substr($s, 0, 1) . strrev(substr($s, 3, 49));
                        
    $s substr($s419) . substr($s861) . substr($s2461);
                        break;
                    case 
    86:
                        
    $s substr($s261) . substr($s821) . substr($s6418) . substr($s631);
                        break;
                    case 
    85:
                        
    $s substr($s26) . substr($s01) . substr($s912) . substr($s651) . substr($s2243) . substr($s841) . substr($s6616) . substr($s211);
                        break;
                    case 
    84:
                        
    $s strrev(substr($s3747)) . substr($s21) . strrev(substr($s279)) . substr($s31) . strrev(substr($s422)) . substr($s261);
                        break;
                    case 
    83:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s531) . substr($s3419) . substr($s241) . substr($s54);
                        break;
                    case 
    82:
                        
    $s substr($s361) . strrev(substr($s6812)) . substr($s811) . strrev(substr($s4126)) . substr($s331) . strrev(substr($s373)) . substr($s401) . substr($s351) . substr($s01) . substr($s671) . strrev(substr($s132)) . substr($s341);
                        break;
                    case 
    81:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s21) . substr($s3419) . substr($s241) . substr($s5428);
                        break;
                    default:
                        
    $s $signature;
                }
                return 
    $s;
            } 
    Please provide some verification that the above code works for you, and that you can convert Vevo videos.

    When I have confirmation that the above is working consistently, I will update the free version and email a link (to this forum post) to all buyers who have previously purchased the paid-for version of my software.

    Thanks for your patience!

    Edit: This code appears to be working, so I am pushing out new releases of both the free and paid-for versions of my software. The free version's ZIP file has already been updated, and I will be emailing all previous buyers of the paid-for version shortly with a link to this forum post. And, of course, I will also soon update the files currently being sold at Tradebit.com. Until next time!
    Last edited by chump2877; 07-25-2013 at 02:26 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!

  9. #789
    New Coder
    Join Date
    Jun 2012
    Posts
    45
    Thanks
    3
    Thanked 0 Times in 0 Posts
    works

  10. #790
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,746
    Thanks
    18
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by chiman View Post
    Hi,

    How to download video with age confirmation? Like this on http://www.youtube.com/watch?v=07FYdnEawAQ

    Thanks.
    Sorry for late response.

    You'd probably have to log the current user into his/her YouTube account prior to video conversion. Via the YouTube API, I would imagine.

    Or perhaps create a new YouTube account for your web site only, and then use that account to access all converted videos (for all of your site visitors)? But if you did that, I'd think sustaining the active login over prolonged periods would be an issue. Because maybe the single YouTube account would time out or log out unexpectedly, and then you'd have to log back in programmatically, periodically. So you'd need to worry about maintaining the session indefinitely....Not sure if that's practical?

    I've never actually explored this idea (or ideas), but I do keep a "wish list" of new functionality that I would like to integrate into the software at some future date. And when I have 5 minutes free (probably more ) to improve the script, then I will definitely do so -- and I'll keep that list handy during the process.

    So is this something that you guys would like to see in the software? If so, perhaps I will add some feature like this to my "to-do" list...

    And keep the feedback coming guys. My aim is to keep improving this script, and your feedback helps me get you the functionality that you need. And since purchasers of the paid-for version of the software get free updates to the software as they are released, I'd say that's as good an incentive as any!
    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!

  11. #791
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    still not working

    tested with this
    http://www.vidtunez.com/watch?v=KRaWnd3LJfs

    regards,
    vidtunez admin
    www.vidtunez.com

  12. #792
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,746
    Thanks
    18
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by rajah View Post
    still not working

    tested with this
    http://www.vidtunez.com/watch?v=KRaWnd3LJfs

    regards,
    vidtunez admin
    www.vidtunez.com
    Confirmed. YouTube changed encryption once again. What was working yesterday is not working today. I will investigate and post a fix here as soon as possible. Thanks for your patience!
    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!

  13. #793
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,746
    Thanks
    18
    Thanked 155 Times in 146 Posts

    YouTube changed their encryption again!

    YouTube changed their encryption again!

    Here is the preliminary fix. This function is meant to be a drop-in replacement for the function of the same name in VideoConverter.class.php (paid version) and in YouTubeToMp3Converter.class.php (free version):

    PHP Code:
            private function DecryptYouTubeCypher($signature)
            {
                
    $s $signature;
                
    $sigLength strlen($s);
                switch (
    $sigLength)
                {
                    case 
    92:
                        
    $s substr($s251) . substr($s322) . substr($s01) . substr($s2616) . substr($s791) . substr($s4336) . substr($s911) . substr($s803);
                        break;
                    case 
    90:
                        
    $s substr($s251) . substr($s322) . substr($s21) . substr($s2614) . substr($s771) . substr($s4136) . substr($s891) . substr($s783);
                        break;
                    case 
    88:
                        
    $s substr($s481) . strrev(substr($s6814)) . substr($s821) . strrev(substr($s634)) . substr($s851) . strrev(substr($s4913)) . substr($s671) . strrev(substr($s1335)) . substr($s31) . strrev(substr($s48)) . substr($s21) . substr($s121);
                        break;
                    case 
    87:
                        
    $s substr($s419) . substr($s861) . substr($s2461);
                        break;
                    case 
    86:
                        
    $s substr($s261) . substr($s821) . substr($s6418) . substr($s631);
                        break;
                    case 
    85:
                        
    $s substr($s26) . substr($s01) . substr($s912) . substr($s651) . substr($s2243) . substr($s841) . substr($s6616) . substr($s211);
                        break;
                    case 
    84:
                        
    $s strrev(substr($s3747)) . substr($s21) . strrev(substr($s279)) . substr($s31) . strrev(substr($s422)) . substr($s261);
                        break;
                    case 
    83:
                        
    $s substr($s61) . substr($s33) . substr($s331) . substr($s717) . substr($s01) . substr($s258) . substr($s531) . substr($s3419) . substr($s241) . substr($s54);
                        break;
                    case 
    82:
                        
    $s substr($s361) . strrev(substr($s6812)) . substr($s811) . strrev(substr($s4126)) . substr($s331) . strrev(substr($s373)) . substr($s401) . substr($s351) . substr($s01) . substr($s671) . strrev(substr($s132)) . substr($s341);
                        break;
                    case 
    81:
                        
    //$s = substr($s, 6, 1) . substr($s, 3, 3) . substr($s, 33, 1) . substr($s, 7, 17) . substr($s, 0, 1) . substr($s, 25, 8) . substr($s, 2, 1) . substr($s, 34, 19) . substr($s, 24, 1) . substr($s, 54, 28);
                        
    $s substr($s561) . strrev(substr($s5723)) . substr($s411) . strrev(substr($s4214)) . substr($s801) . strrev(substr($s356)) . substr($s01) . strrev(substr($s304)) . substr($s341) . strrev(substr($s1019)) . substr($s291) . strrev(substr($s18)) . substr($s91);
                        break;
                    case 
    79:
                        
    $s substr($s541) . strrev(substr($s5523)) . substr($s391) . strrev(substr($s4014)) . substr($s781) . strrev(substr($s354)) . substr($s01) . strrev(substr($s304)) . substr($s341) . strrev(substr($s1019)) . substr($s291) . strrev(substr($s18)) . substr($s91);
                        break;
                    default:
                        
    $s $signature;
                }
                return 
    $s;
            } 
    Please provide some verification that the above code works for you, and that you can convert Vevo videos.

    When I have confirmation that the above is working consistently, I will update the free version and email a link (to this forum post) to all buyers who have previously purchased the paid-for version of my software.

    Thanks for your patience!

    Edit: This code appears to be working, so I am pushing out new releases of both the free and paid-for versions of my software. The free version's ZIP file has already been updated, and I will be emailing all previous buyers of the paid-for version shortly with a link to this forum post. And, of course, I will also soon update the files currently being sold at Tradebit.com. Until next time!
    Last edited by chump2877; 07-26-2013 at 03:45 PM.
    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!

  14. #794
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hello, firstly thanks for your work on this script the concept is great...

    however i have spend the last 3 days trying to get it to work... i have it on my server... i have it grabbing videos... but cannot for the life of me get it to convert it just freezes on converting video and goes no further

    any ideas what im dong wrong? ive added the most recent sig patch (post above mine)

  15. #795
    New Coder
    Join Date
    Jun 2013
    Posts
    29
    Thanks
    3
    Thanked 1 Time in 1 Post
    tested with http://www.vidtunez.com/watch?v=KRaWnd3LJfs

    and it works!

    thank you!


    regards,
    vidtunez admin
    www.vidtunez.com


 
Page 53 of 75 FirstFirst ... 343515253545563 ... LastLast

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
  •