jeckman / YouTube-Downloader

PHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers
GNU General Public License v2.0
895 stars 474 forks source link

==== Failed to get deciphers function ==== #341

Closed uditvishnoi2 closed 6 years ago

uditvishnoi2 commented 6 years ago

Description

Youtube extraction failed when enable_youtube_decipher_signature is set to true , for every video

Steps to Reproduce

Please include the direct url to the YouTube video.

https://www.youtube.com/watch?v=RBumgq5yVrA

Expected behavior:

links to download videos

Actual behavior:

Notice: Undefined offset: 1 in yt/src/Provider/Youtube/SignatureDecipher.php on line 193

Warning: explode(): Empty delimiter in yt/src/Provider/Youtube/SignatureDecipher.php on line 202

Version

Latest code taken from master branch , it was working till day before yesterday, but it has stopped working now. it seems there is change in youtube signature , https://github.com/rg3/youtube-dl/pull/17464.

thanks

jonttm commented 6 years ago

Have the same issue testing with this video - https://www.youtube.com/watch?v=rP5nfac1bw4

Notice: Undefined offset: 1 in /var/www/html/downloader/src/Provider/Youtube/SignatureDecipher.php on line 193

Warning: explode(): Empty delimiter in /var/www/html/downloader/src/Provider/Youtube/SignatureDecipher.php on line 201

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/downloader/src/Provider/Youtube/SignatureDecipher.php on line 201 ==== Failed to get deciphers function ====

ghost commented 6 years ago

On Sun, 9 Sep 2018 at 8:46 AM, JTTM notifications@github.com wrote:

Have the same issue testing with this video - https://www.youtube.com/watch?v=rP5nfac1bw4 https://www.youtube.com/watch?v=rP5nfac1bw4

Notice: Undefined offset: 1 in /var/www/html/downloader/src/Provider/Youtube/SignatureDecipher.php on line 193

Warning: explode(): Empty delimiter in /var/www/html/downloader/src/Provider/Youtube/SignatureDecipher.php on line 201

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/downloader/src/Provider/Youtube/SignatureDecipher.php on line 201 ==== Failed to get deciphers function ====

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/341#issuecomment-419682612, or mute the thread https://github.com/notifications/unsubscribe-auth/AVahEK4dvkQIbpgopQqTvZteDaYzfnrWks5uZGT4gaJpZM4WfyzA .

Almost all youtube downloader not work when downloading cipher video. But recently i did some google search and found this site working well https://ytcdn.bid Does anyone know how this site performs well? It seems weird on their links

harisnaeemofficial commented 6 years ago

Having same issue with this video URL http://youtube.com/watch?v=q2gICJFG6uw Error : ==== Failed to get deciphers function ==== If 'enable_youtube_decipher_signature' = false then it shows 0B size and url without signature . This problem occurs with most of the videos . Signature is not including inside the video but it is resulting in an array seprated from url like this

array ( 'itag' => '43', 's' => '3232BA30453D8D266CB70B41F69B3A04DD2EB2A6F1.65EB176B2E420E46260BCC046463D9338A4F30831', 'url' => 'https://r2---sn-q4flrne7.googlevideo.com/videoplayback?dur=0.000&mime=video%2Fwebm&itag=43&mm=31%2C26&source=youtube&mn=sn-q4flrne7%2Csn-qxoedn7z&ratebypass=yes&ip=69.162.84.122&gir=yes&fvip=2&ei=8QWaW7mOIdHJigStubPoDA&id=o-AKiFtSWB1yIM50DLruBmZmznkGhmcjmy9druByr5z4Pb&ms=au%2Conr&mt=1536820133&pl=22&mv=u&c=WEB&key=yt6&clen=10876908&expire=1536842321&lmt=1521495222748015&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&ipbits=0&requiressl=yes', 'quality' => 'medium', ), 'data_parsed' => false, 'raw_data' => array ( 'url' => 'https://r2---sn-q4flrne7.googlevideo.com/videoplayback?dur=0.000&mime=video%2Fwebm&itag=43&mm=31%2C26&source=youtube&mn=sn-q4flrne7%2Csn-qxoedn7z&ratebypass=yes&ip=69.162.84.122&gir=yes&fvip=2&ei=8QWaW7mOIdHJigStubPoDA&id=o-AKiFtSWB1yIM50DLruBmZmznkGhmcjmy9druByr5z4Pb&ms=au%2Conr&mt=1536820133&pl=22&mv=u&c=WEB&key=yt6&clen=10876908&expire=1536842321&lmt=1521495222748015&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&ipbits=0&requiressl=yes', 'sp' => 'signature', 'type' => 'video/webm; codecs="vp8.0, vorbis"', 'itag' => '43', 'quality' => 'medium', 's' => '3232BA30453D8D266CB70B41F69B3A04DD2EB2A6F1.65EB176B2E420E46260BCC046463D9338A4F30831', ),

hzlooker commented 6 years ago

me too

heyndre commented 6 years ago

me too

BudComSol commented 6 years ago

Me three !

Lucky420 commented 6 years ago

It doesn't work for no one ?

jswails commented 6 years ago

I cant get it to work either. This whole thing is just broken

On Sun, Oct 21, 2018, 3:43 PM Lucky420 notifications@github.com wrote:

It doesn't work for no one ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/341#issuecomment-431697915, or mute the thread https://github.com/notifications/unsubscribe-auth/AKL_TdUMBGQW-tsqbR416YTo5VHoxprvks5unM5ogaJpZM4WfyzA .

jeckman commented 6 years ago

Is it only the cypher signature feature that's broken? I've never actually used that so I don't have good test cases.

@hzlooker @SnappaGuy @Lucky420 @jswails Is the problem you are having with the cypher signature error message that @harisnaeemofficial quotes above, or are you having other problems?

My assumption is that YouTube has rolled out changes to their cypher signature algorithm and until someone develops code to handle those new signatures (or ports it from one of the other packages) this will continue to fail.

jswails commented 6 years ago

hi

yes. just the cypher signature. Generally any new video with music on yt I have this issue with.

for example try this one. I just tried it using the software

https://www.youtube.com/watch?v=uKQmwNiUouI

thanks

On 10/22/18 8:48 AM, John Eckman wrote:

Is it only the cypher signature feature that's broken? I've never actually used that so I don't have good test cases.

@hzlooker https://github.com/hzlooker @SnappaGuy https://github.com/SnappaGuy @Lucky420 https://github.com/Lucky420 @jswails https://github.com/jswails Is the problem you are having with the cypher signature error message that @harisnaeemofficial https://github.com/harisnaeemofficial quotes above, or are you having other problems?

My assumption is that YouTube has rolled out changes to their cypher signature algorithm and until someone develops code to handle those new signatures (or ports it from one of the other packages) this will continue to fail.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/341#issuecomment-431825520, or mute the thread https://github.com/notifications/unsubscribe-auth/AKL_TW4TyqxzWFpYjWbVt9RFPqluCTwqks5unb6ggaJpZM4WfyzA.

jeckman commented 6 years ago

Can y'all who are having this problem try the code with this pull request from @jenyak I just merged?

BelleNottelling commented 6 years ago

Fixed for me

heyndre commented 6 years ago

Is it only the cypher signature feature that\'s broken? I\'ve never actually used that so I don\'t have good test cases.\n@hzlooker @SnappaGuy @Lucky420 @jswails Is the problem you are having with the cypher signature error message that @harisnaeemofficial quotes above, or are you having other problems?\nMy assumption is that YouTube has rolled out changes to their cypher signature algorithm and until someone develops code to handle those new signatures (or ports it from one of the other packages) this will continue to fail.\n\n—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.\n{\'api_version\':\'1.0\',\'publisher\':{\'api_key\':\'05dde50f1d1a384dd78767c55493e4bb\',\'name\':\'GitHub\'},\'entity\':{\'external_key\':\'github/jeckman/YouTube-Downloader\',\'title\':\'jeckman/YouTube-Downloader\',\'subtitle\':\'GitHub repository\',\'main_image_url\':\'https://assets-cdn.github.com/images/email/message_cards/header.png\',\'avatar_image_url\':\'https://assets-cdn.github.com/images/email/message_cards/avatar.png\',\'action\':{\'name\':\'Open in GitHub\',\'url\':\'https://github.com/jeckman/YouTube-Downloader\'}},\'updates\':{\'snippets\':[{\'icon\':\'PERSON\',\'message\':\'@jeckman in #341: Is it only the cypher signature feature that\'s broken? I\'ve never actually used that so I don\'t have good test cases. \r\n\r\n@hzlooker @SnappaGuy @Lucky420 @jswails Is the problem you are having with the cypher signature error message that @harisnaeemofficial quotes above, or are you having other problems?\r\n\r\nMy assumption is that YouTube has rolled out changes to their cypher signature algorithm and until someone develops code to handle those new signatures (or ports it from one of the other packages) this will continue to fail. \r\n\r\n\'}],\'action\':{\'name\':\'View Issue\',\'url\':\'https://github.com/jeckman/YouTube-Downloader/issues/341#issuecomment-431825520\'}}}\n[\n{\n\'@context\': \'http://schema.org\',\n\'@type\': \'EmailMessage\',\n\'potentialAction\': {\n\'@type\': \'ViewAction\',\n\'target\': \'https://github.com/jeckman/YouTube-Downloader/issues/341#issuecomment-431825520\',\n\'url\': \'https://github.com/jeckman/YouTube-Downloader/issues/341#issuecomment-431825520\',\n\'name\': \'View Issue\'\n},\n\'description\': \'View this Issue on GitHub\',\n\'publisher\': {\n\'@type\': \'Organization\',\n\'name\': \'GitHub\',\n\'url\': \'https://github.com\'\n}\n},\n{\n\'@type\': \'MessageCard\',\n\'@context\': \'http://schema.org/extensions\',\n\'hideOriginalBody\': \'false\',\n\'originator\': \'AF6C5A86-E920-430C-9C59-A73278B5EFEB\',\n\'title\': \'Re: [jeckman/YouTube-Downloader] ==== Failed to get deciphers function ==== (#341)\',\n\'sections\': [\n{\n\'text\': \'\',\n\'activityTitle\': \'John Eckman\',\n\'activityImage\': \'https://assets-cdn.github.com/images/email/message_cards/avatar.png\',\n\'activitySubtitle\': \'@jeckman\',\n\'facts\': [\n\n]\n}\n],\n\'potentialAction\': [\n{\n\'name\': \'Add a comment\',\n\'@type\': \'ActionCard\',\n\'inputs\': [\n{\n\'isMultiLine\': true,\n\'@type\': \'TextInput\',\n\'id\': \'IssueComment\',\n\'isRequired\': false\n}\n],\n\'actions\': [\n{\n\'name\': \'Comment\',\n\'@type\': \'HttpPOST\',\n\'target\': \'https://api.github.com\',\n\'body\': \'{\n\'commandName\': \'IssueComment\',\n\'repositoryFullName\': \'jeckman/YouTube-Downloader\',\n\'issueId\': 341,\n\'IssueComment\': \'{{IssueComment.value}}\'\n}\'\n}\n]\n},\n{\n\'name\': \'Close issue\',\n\'@type\': \'HttpPOST\',\n\'target\': \'https://api.github.com\',\n\'body\': \'{\n\'commandName\': \'IssueClose\',\n\'repositoryFullName\': \'jeckman/YouTube-Downloader\',\n\'issueId\': 341\n}\'\n},\n{\n\'targets\': [\n{\n\'os\': \'default\',\n\'uri\': \'https://github.com/jeckman/YouTube-Downloader/issues/341#issuecomment-431825520\'\n}\n],\n\'@type\': \'OpenUri\',\n\'name\': \'View on GitHub\'\n},\n{\n\'name\': \'Unsubscribe\',\n\'@type\': \'HttpPOST\',\n\'target\': \'https://api.github.com\',\n\'body\': \'{\n\'commandName\': \'MuteNotification\',\n\'threadId\': 377433280\n}\'\n}\n],\n\'themeColor\': \'26292E\'\n}\n]

ghost commented 6 years ago

@BenNottelling 720p videos don't show in List of available formats for download but in Separated video and audio format.