kkdai / youtube

Download Youtube Video in Golang
MIT License
3.31k stars 429 forks source link

Fix #256 #258

Closed Pilladian closed 2 years ago

Pilladian commented 2 years ago

This fixes the error "unable to decode nSig: SyntaxError: SyntaxError: (anonymous): Line 18:1 Unexpected token ILLEGAL (and 4 more)" which appears when trying to download any youtube video

Description

I've changed the URL Query parameter from "n" to "v", because "n" does not seem to be present in youtube video links anymore.

Issues to fix

Please link issues this PR will fix:

256

if no relevant issue, but this will fix something important for reference , please free to open an issue.

Reminding

Something you can do before PR to reduce time to merge