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
894 stars 475 forks source link

Signature problem with some videos #9

Closed Animis09 closed 9 years ago

Animis09 commented 11 years ago

The download is forbidden for some videos because of the signature.

Example: http://www.youtube.com/watch?v=ghQvZ9IID2A

wilsonschu commented 9 years ago

@jeckman Agreed.  But you can let your PHP "translate" only those known js functions, not any other else.  That'll be safer.  They are basically for string manipulation anyway.

There are only few known js functions inside, you can actually parse the js syntax.  Separate assignments, commands, functions, methods and operators. Write 1-to-1 translation from those js known functions to PHP functions and put them together. No need to use regex replacement(it was just a quick hack anyway).  Although that'll be more complicated but it's under your control on what will be run.

bitnol commented 9 years ago

@pmesco you can contact me at akhilesh@bitnol.com

VileTung commented 9 years ago

@jeckman once I found the needed function, I check if it has any dependencies. Then I'll search for those. Once I found them I do some comparison to check is it's a swap, reverse, replace, splice etc. I guess that this way I won't execute any nor trustworthy code.

mega94 commented 9 years ago

Спасибо за скрипт, а скажите я не очень понимаю english а скрипт работает с помощью api youtube? а youtube официально выдает прямые ссылки на видео?

bitnol commented 9 years ago

I have developed another web service API which will unchain Youtube videos. Might be somebody interested to try out: http://ytapi.gitnol.com

mega94 commented 9 years ago

Извините не нашел исходники?

bitnol commented 9 years ago

@mega94 какой источник вы ищете? http://ytapi.gitnol.com не открывая?

paulwscom commented 9 years ago

@bitnol many thanks to your api, hope your api will take longer. I can use it on my projects

bitnol commented 9 years ago

@pmesco longer? I didn't get you.

bitnol commented 9 years ago

@pmesco you are welcome to discuss on my email id: akhilesh@bitnol.com

mega94 commented 9 years ago

I understand you gave the link to the script you created? or google translator I with emphasis to translate =)

paulwscom commented 9 years ago

@bitnol i mean your api will last longer cause i really need it on my project

paulwscom commented 9 years ago

Check this out http://wapmon.com/api/yt.php?your_video_id=YOUTUBE_ID

bitnol commented 9 years ago

@pmesco Very interesting... it's using GAE and its working for cipher also :)

paulwscom commented 9 years ago

@bitnol your api not working now, it shows "New html5player id found. Please wait while we update our algo list."

bitnol commented 9 years ago

@pmesco yeah fixed that: check this ciper video: http://www.genyoutube.com/?vid=UxxajLWwzqY

paulwscom commented 9 years ago

@bitnol wow, its very interesting, you have much format

bitnol commented 9 years ago

I really need code contribution from fellows who are interested. Today its broke because of new method of decryption introduced in js.

paulwscom commented 9 years ago

@bitnol Where can we contribute for that?

VileTung commented 9 years ago

Apparently it's possible to rely on regex, because while @bitnol his api wasn't working, mine is (without modifications or code changes). Please don't get me wrong, I don't want to be rude or insult someone. But why is your code closed source? I'm willing to share my code, however I don't know how Github works (and don't want people to hit & run).

paulwscom commented 9 years ago

@VileTung Then share it to us

bitnol commented 9 years ago

Sharing is great. And I am also sharing the decryption algo. I am not alone the one who working on it. So without other's concern it is not possible to share the base code :(

bitnol commented 9 years ago

I like to report here a content theft by a Github fellow pmesco [Paul Mikki Escorido] [paulmikki@yahoo.com]. He stole my script [ http://www.genyoutube.com ] and uploaded in his server [ http://ytd.wapmon.com/index3.html ] and using it without permission. Other Fellows please make a note of this data theft while having any contact with him.

jeckman commented 9 years ago

Closing this whole thread as won't fix. The whole conversation no longer has anything to do with this actual project.

When someone wants to issue a pull request to include cipher videos in YouTube-Downloader I'll be glad to reopen the issue and evaluate the pull request.

webdesignerart commented 9 years ago

Is private video Problem solved? Anyone have any idea about it? Plz share.

paulwscom commented 9 years ago

@bitnol what i have stolen on you? script of your api? oh come on dude, anyone can make script for your api. The point is you dont give the actual script.

bitnol commented 9 years ago

@pmesco You are using my code on your site without permission, its illegal. Remove that code.

paulwscom commented 9 years ago

@bitnol Hello bro :) how are you feeling today? Still a baby sitter? Ok bro i will remove your code on my server, and for your information, im not interested to use your script, i only like the design.

bitnol commented 9 years ago

@pmesco Atleast you accepted. If you not cease and desist, your Hosting provider will act on you for copyright issue. I already reported them.

On Sat, Nov 15, 2014 at 3:04 AM, pmesco notifications@github.com wrote:

@bitnol https://github.com/bitnol Ahm ok sure. And for your information, im not interested to use your script, i only like the design.

— Reply to this email directly or view it on GitHub https://github.com/jeckman/YouTube-Downloader/issues/9#issuecomment-63132527 .

Regards, Akhilesh Chandra Gupta. www.bitnol.com www.gitnol.com

paulwscom commented 9 years ago

@bitnol script removed :) and thanks for reporting, do you think it bothered me?

webdesignerart commented 9 years ago

@VileTung Can you share with me your working code example plz. From a week still i didn't get any solution for youtube cypher signatured video.

jeckman commented 9 years ago

Locking the thread. If y'all want to go use bitnol's API feel free, but none of this is actually adding value to the YouTube-Downloader project at this point.

Personally I have no interest in making this work with Cypher signed videos. If someone else does and has code to share, please open a new issue with a pull request.