YoutubeExtractor icon indicating copy to clipboard operation
YoutubeExtractor copied to clipboard

ERROR in VideoDownloader.cs

Open StepIg opened this issue 5 years ago • 20 comments

in Line 45: using (WebResponse response = request.GetResponse()) Error in remote server (403) Forbidden.

StepIg avatar Aug 28 '18 19:08 StepIg

since 28.8.2018 I have the same problem

HelgeStiemerling avatar Aug 28 '18 20:08 HelgeStiemerling

same here on some videos (maybe because music in video is copyrighted)

fastyep avatar Aug 28 '18 22:08 fastyep

Same here, with music videos? Someone? i noticed that youtubedl are having issues with particular music videos, something on youtube side?

kelvinRosa avatar Aug 29 '18 02:08 kelvinRosa

If someone give me the steps in where to look i can try to fix.

kelvinRosa avatar Aug 29 '18 02:08 kelvinRosa

I think is related to the decipher.

kelvinRosa avatar Aug 29 '18 03:08 kelvinRosa

Its running fine now.

StepIg avatar Aug 29 '18 04:08 StepIg

This is a really strange behavior, really back to work, i think can be related to some youtube test, or youtube server issues.

kelvinRosa avatar Aug 29 '18 04:08 kelvinRosa

I was having forbidden errors every day in some videos. Can be due to "ytAgeRestricted"?

StepIg avatar Aug 29 '18 07:08 StepIg

Decipher seems out of date again.

WaGi-Coding avatar Sep 04 '18 09:09 WaGi-Coding

all videos are failing now using (WebResponse response = request.GetResponse())

StepIg avatar Sep 08 '18 14:09 StepIg

reference from youtube-dl youtube update signature update your Decipherer.cs file line 16: string functNamePattern = @"(\w+)\s*=\sfunction((\w+)){\s\2=\s*\2.split("""")\s*;"; it's working for me now

LinPolly avatar Sep 08 '18 15:09 LinPolly

does not work for me when downloading a video with signature

WaGi-Coding avatar Sep 08 '18 15:09 WaGi-Coding

I would like to make a correction to LinPolly's comment by suggesting a new regex:
(\w+)=function\((\w+)\){\2=\2\.split\(\"\"\);
Making line 16 in Decipherer.cs be:
string functNamePattern = @"(\w+)=function\((\w+)\){\2=\2\.split\(\""\""\);";
Here's another, more robust solution that takes whitespace into account:
(\w+)\s*=\s*function\(\s*(\w+)\s*\)\s*{\s*\2\s*=\s*\2\.split\(\"\"\)\s*;(.+)return\s*\2\.join\(\"\"\)\s*}\s*;

GlavitsBalazs avatar Sep 08 '18 18:09 GlavitsBalazs

thanks a lot @GlavitsBalazs it works like a charm after I update the regex line in the Decipherer.cs to:

string functNamePattern = @"(\w+)\s*=\s*function\(\s*(\w+)\s*\)\s*{\s*\2\s*=\s*\2\.split\(\""\""\)\s*;(.+)return\s*\2\.join\(\""\""\)\s*}\s*;";

Hanzalah-Adalan avatar Sep 09 '18 11:09 Hanzalah-Adalan

Is working with videos with signature?

StepIg avatar Sep 09 '18 12:09 StepIg

just try it, but yes

WaGi-Coding avatar Sep 09 '18 12:09 WaGi-Coding

https://github.com/mrklintscher/AVTube/commit/2c44d4ca72ae4bc7810524e596bb98fab2036890

torstenprivate avatar Sep 10 '18 10:09 torstenprivate

Im having a real hard time finding the cs file that needs updated. anyone have the path i need to look in?

RickdiculousGamer avatar Sep 18 '18 00:09 RickdiculousGamer

Already fixed in other repos.

RickdiculousGamer [email protected] schrieb am Di., 18. Sep. 2018, 02:28:

Im having a real hard time finding the cs file that needs updated. anyone have the path i need to look in?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/flagbug/YoutubeExtractor/issues/313#issuecomment-422213666, or mute the thread https://github.com/notifications/unsubscribe-auth/AS8cPlExG1oDsvaFFAFm5X803i_E11Nmks5ucD4ggaJpZM4WQRsJ .

torstenprivate avatar Sep 18 '18 03:09 torstenprivate

Thanks, fixed my app because of this comment.

gen3vra avatar Sep 21 '18 08:09 gen3vra