iawia002 / lux

👾 Fast and simple video download library and CLI tool written in Go
MIT License
27.61k stars 2.98k forks source link

[download fail]: youtube #1377

Open Zane96 opened 2 months ago

Zane96 commented 2 months ago

lux -d -f 135 "https://www.youtube.com/watch?v=VmZRacAUuvE"

lux: version 0.24.1, A fast and simple video downloader.

Site: YouTube youtube.com Title: 【解禁画面流出】香港TVB记者在人民大会堂,提“六四事件”向朱镕基突然发难!!问朱总理看待1989年学潮,问如果港人要求他平反六四,怕不怕被抗议等敏感话题 #tiananmen #天安门 Type: video Stream: [135] ------------------- Quality: 480p video/mp4; codecs="avc1.4d401e" Size: 9.31 MiB (9760426 Bytes)

download with: lux -f 135 ...

0 B / 9.31 MiB [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] ? p/s 0.00% ?Downloading https://www.youtube.com/watch?v=VmZRacAUuvE error: https://rr3---sn-npoe7nsy.googlevideo.com/videoplayback?aitags=133%2C134%2C135%2C160%2C242%2C243%2C244%2C278%2C394%2C395%2C396%2C397&bui=AXc671LM1QrcqNxcUPU1Afk_NIOGPqKO9njiO7s438Ez7COOH2WctjBz1R9mV8xr_KuWQsiB8js3o1wx&c=WEB&clen=5197504&dur=281.800&ei=Fp-xZuS5F6eCjuMP98bGsAc&expire=1722938230&fvip=5&gir=yes&id=o-AJhfyfSvhd6nFGBGjj1DU-pCAdyOw7shl2bcdovfYj7T&initcwndbps=2081250&ip=34.124.135.206&itag=135&keepalive=yes&lmt=1719410032124273&lsig=AGtxev0wRQIgVq6dsAPDfUVtufdc5eJhTJs1jWsqHLhlO6-bLw0MH64CIQCAAPRxE6_3BBOq6B542xlBdI1o9dMiCDPMNgnA1zTLwQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=0e&mime=video%2Fmp4&mm=31%2C29&mn=sn-npoe7nsy%2Csn-npoldn7d&ms=au%2Crdu&mt=1722916148&mv=m&mvi=3&n=EaeJEqw6Zlesd_xlJvg&ns=L1ZLKg5dtjUeApvkrQ-8VDEQ&pl=20&requiressl=yes&rqh=1&sefc=1&sig=AJfQdSswRgIhALnaazTw5sKurzQWrUk85l1jGEu1ke63KGnIht6sRXkqAiEA0zd-m7O3cIQg9GWbJZ2vFELK_SoOpZAddNXL29Mhpdk%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&spc=Mv1m9rJ22QmJamdX269KRbJEdwVdV6UATIQjhmgH6JkQCSk_INzKmKz1MSL6&svpuc=1&txp=5532434&vprv=1&xpc=EgVo2aDSNQ%3D%3D request error: HTTP 403 github.com/iawia002/lux/request.Request github.com/iawia002/lux/request/request.go:116 github.com/iawia002/lux/downloader.(Downloader).writeFile github.com/iawia002/lux/downloader/downloader.go:110 github.com/iawia002/lux/downloader.(Downloader).save github.com/iawia002/lux/downloader/downloader.go:194 github.com/iawia002/lux/downloader.(Downloader).Download.func1 github.com/iawia002/lux/downloader/downloader.go:675 runtime.goexit runtime/asm_amd64.s:1695 github.com/iawia002/lux/request.Request github.com/iawia002/lux/request/request.go:118 github.com/iawia002/lux/downloader.(Downloader).writeFile github.com/iawia002/lux/downloader/downloader.go:110 github.com/iawia002/lux/downloader.(Downloader).save github.com/iawia002/lux/downloader/downloader.go:194 github.com/iawia002/lux/downloader.(Downloader).Download.func1 github.com/iawia002/lux/downloader/downloader.go:675 runtime.goexit runtime/asm_amd64.s:1695

NowLoadY commented 2 months ago

I met the same error, and the version I'm using is 0.24.1

(base) PS D:\> scoop update lux
lux: 0.24.1 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'
(base) PS D:\> lux https://www.youtube.com/watch?v=umfoJGKNlPE

 Site:      YouTube youtube.com
 Title:     「Rabbit Hole」but only with the noises from a glass of water
 Type:      video
 Stream:
     [136]  -------------------
     Quality:         720p video/mp4; codecs="avc1.64001f"
     Size:            12.80 MiB (13424293 Bytes)
     # download with: lux -f 136 ...

0 B / 12.80 MiB [---------------------------------------------------------------------------------------] ? p/s 0.00% ?Downloading https://www.youtube.com/watch?v=umfoJGKNlPE error:
https://rr3---sn-i3belnll.googlevideo.com/videoplayback?aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278&bui=AQmm2exChCDoib2goTpl_JVcjoTUVRKVgaeZmAi0FITWTour4Y0VrOff9s34UUKvR5hkSLdVrOySJMbw&c=WEB&clen=10544973&dur=177.800&ei=F0u8ZovDF86Os8IPpKGy2AU&expire=1723637623&fvip=3&gir=yes&id=o-AAWr-Fju-DdjwZmcTVN4llcZ6O4dOf5HHw59SChWg0Mv&initcwndbps=3278750&ip=203.175.14.134&itag=136&keepalive=yes&lmt=1720704352285602&lsig=AGtxev0wRgIhAPgANF0wcELARmMiuDQtknjkOsysmTCyJ3_1qB5UKAIgAiEA_PAbTajFSiVgy1L-1vnGvwFFlbsuFhVN6JAgMjd2PKE%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=0x&mime=video%2Fmp4&mm=31%2C29&mn=sn-i3belnll%2Csn-i3b7knsl&ms=au%2Crdu&mt=1723615506&mv=m&mvi=3&n=8oMAYD3DuwpGRb7&ns=YyEJQScQM130VeQSVslRNJYQ&pl=24&requiressl=yes&rqh=1&sefc=1&sig=AJfQdSswRQIhAKL9w3IdyXJb-8aqMXHdzWO6BSHWnvWf3wZ5pQxDHLqnAiBIraTFmcXRnMaNMPtYHMp266SYNyaIFK16Us-ize37Zg%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&spc=Mv1m9qCGDhn2mwCHzdG12y-bxl3CwX1CsrmgaWQd5ikuaIVhXTpEjjZYAnjN&svpuc=1&txp=5309224&vprv=1&xpc=EgVo2aDSNQ%3D%3D request error: HTTP 403
github.com/iawia002/lux/request.Request
        /home/runner/work/lux/lux/request/request.go:116
github.com/iawia002/lux/downloader.(*Downloader).writeFile
        /home/runner/work/lux/lux/downloader/downloader.go:110
github.com/iawia002/lux/downloader.(*Downloader).save
        /home/runner/work/lux/lux/downloader/downloader.go:194
github.com/iawia002/lux/downloader.(*Downloader).Download.func1
        /home/runner/work/lux/lux/downloader/downloader.go:675
runtime.goexit
        /opt/hostedtoolcache/go/1.22.2/x64/src/runtime/asm_amd64.s:1695
github.com/iawia002/lux/request.Request
        /home/runner/work/lux/lux/request/request.go:118
github.com/iawia002/lux/downloader.(*Downloader).writeFile
        /home/runner/work/lux/lux/downloader/downloader.go:110
github.com/iawia002/lux/downloader.(*Downloader).save
        /home/runner/work/lux/lux/downloader/downloader.go:194
github.com/iawia002/lux/downloader.(*Downloader).Download.func1
        /home/runner/work/lux/lux/downloader/downloader.go:675
runtime.goexit
        /opt/hostedtoolcache/go/1.22.2/x64/src/runtime/asm_amd64.s:1695
Lao-Shen commented 2 months ago

I met the same error, and the version I'm using is 0.24.1

(base) PS D:\> scoop update lux
lux: 0.24.1 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'
(base) PS D:\> lux https://www.youtube.com/watch?v=umfoJGKNlPE

 Site:      YouTube youtube.com
 Title:     「Rabbit Hole」but only with the noises from a glass of water
 Type:      video
 Stream:
     [136]  -------------------
     Quality:         720p video/mp4; codecs="avc1.64001f"
     Size:            12.80 MiB (13424293 Bytes)
     # download with: lux -f 136 ...

0 B / 12.80 MiB [---------------------------------------------------------------------------------------] ? p/s 0.00% ?Downloading https://www.youtube.com/watch?v=umfoJGKNlPE error:
https://rr3---sn-i3belnll.googlevideo.com/videoplayback?aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278&bui=AQmm2exChCDoib2goTpl_JVcjoTUVRKVgaeZmAi0FITWTour4Y0VrOff9s34UUKvR5hkSLdVrOySJMbw&c=WEB&clen=10544973&dur=177.800&ei=F0u8ZovDF86Os8IPpKGy2AU&expire=1723637623&fvip=3&gir=yes&id=o-AAWr-Fju-DdjwZmcTVN4llcZ6O4dOf5HHw59SChWg0Mv&initcwndbps=3278750&ip=203.175.14.134&itag=136&keepalive=yes&lmt=1720704352285602&lsig=AGtxev0wRgIhAPgANF0wcELARmMiuDQtknjkOsysmTCyJ3_1qB5UKAIgAiEA_PAbTajFSiVgy1L-1vnGvwFFlbsuFhVN6JAgMjd2PKE%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=0x&mime=video%2Fmp4&mm=31%2C29&mn=sn-i3belnll%2Csn-i3b7knsl&ms=au%2Crdu&mt=1723615506&mv=m&mvi=3&n=8oMAYD3DuwpGRb7&ns=YyEJQScQM130VeQSVslRNJYQ&pl=24&requiressl=yes&rqh=1&sefc=1&sig=AJfQdSswRQIhAKL9w3IdyXJb-8aqMXHdzWO6BSHWnvWf3wZ5pQxDHLqnAiBIraTFmcXRnMaNMPtYHMp266SYNyaIFK16Us-ize37Zg%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&spc=Mv1m9qCGDhn2mwCHzdG12y-bxl3CwX1CsrmgaWQd5ikuaIVhXTpEjjZYAnjN&svpuc=1&txp=5309224&vprv=1&xpc=EgVo2aDSNQ%3D%3D request error: HTTP 403
github.com/iawia002/lux/request.Request
        /home/runner/work/lux/lux/request/request.go:116
github.com/iawia002/lux/downloader.(*Downloader).writeFile
        /home/runner/work/lux/lux/downloader/downloader.go:110
github.com/iawia002/lux/downloader.(*Downloader).save
        /home/runner/work/lux/lux/downloader/downloader.go:194
github.com/iawia002/lux/downloader.(*Downloader).Download.func1
        /home/runner/work/lux/lux/downloader/downloader.go:675
runtime.goexit
        /opt/hostedtoolcache/go/1.22.2/x64/src/runtime/asm_amd64.s:1695
github.com/iawia002/lux/request.Request
        /home/runner/work/lux/lux/request/request.go:118
github.com/iawia002/lux/downloader.(*Downloader).writeFile
        /home/runner/work/lux/lux/downloader/downloader.go:110
github.com/iawia002/lux/downloader.(*Downloader).save
        /home/runner/work/lux/lux/downloader/downloader.go:194
github.com/iawia002/lux/downloader.(*Downloader).Download.func1
        /home/runner/work/lux/lux/downloader/downloader.go:675
runtime.goexit
        /opt/hostedtoolcache/go/1.22.2/x64/src/runtime/asm_amd64.s:1695

I have the same problem, did you solve it?

NowLoadY commented 2 months ago

I met the same error, and the version I'm using is 0.24.1

(base) PS D:\> scoop update lux
lux: 0.24.1 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'
(base) PS D:\> lux https://www.youtube.com/watch?v=umfoJGKNlPE

 Site:      YouTube youtube.com
 Title:     「Rabbit Hole」but only with the noises from a glass of water
 Type:      video
 Stream:
     [136]  -------------------
     Quality:         720p video/mp4; codecs="avc1.64001f"
     Size:            12.80 MiB (13424293 Bytes)
     # download with: lux -f 136 ...

0 B / 12.80 MiB [---------------------------------------------------------------------------------------] ? p/s 0.00% ?Downloading https://www.youtube.com/watch?v=umfoJGKNlPE error:
https://rr3---sn-i3belnll.googlevideo.com/videoplayback?aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278&bui=AQmm2exChCDoib2goTpl_JVcjoTUVRKVgaeZmAi0FITWTour4Y0VrOff9s34UUKvR5hkSLdVrOySJMbw&c=WEB&clen=10544973&dur=177.800&ei=F0u8ZovDF86Os8IPpKGy2AU&expire=1723637623&fvip=3&gir=yes&id=o-AAWr-Fju-DdjwZmcTVN4llcZ6O4dOf5HHw59SChWg0Mv&initcwndbps=3278750&ip=203.175.14.134&itag=136&keepalive=yes&lmt=1720704352285602&lsig=AGtxev0wRgIhAPgANF0wcELARmMiuDQtknjkOsysmTCyJ3_1qB5UKAIgAiEA_PAbTajFSiVgy1L-1vnGvwFFlbsuFhVN6JAgMjd2PKE%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=0x&mime=video%2Fmp4&mm=31%2C29&mn=sn-i3belnll%2Csn-i3b7knsl&ms=au%2Crdu&mt=1723615506&mv=m&mvi=3&n=8oMAYD3DuwpGRb7&ns=YyEJQScQM130VeQSVslRNJYQ&pl=24&requiressl=yes&rqh=1&sefc=1&sig=AJfQdSswRQIhAKL9w3IdyXJb-8aqMXHdzWO6BSHWnvWf3wZ5pQxDHLqnAiBIraTFmcXRnMaNMPtYHMp266SYNyaIFK16Us-ize37Zg%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&spc=Mv1m9qCGDhn2mwCHzdG12y-bxl3CwX1CsrmgaWQd5ikuaIVhXTpEjjZYAnjN&svpuc=1&txp=5309224&vprv=1&xpc=EgVo2aDSNQ%3D%3D request error: HTTP 403
github.com/iawia002/lux/request.Request
        /home/runner/work/lux/lux/request/request.go:116
github.com/iawia002/lux/downloader.(*Downloader).writeFile
        /home/runner/work/lux/lux/downloader/downloader.go:110
github.com/iawia002/lux/downloader.(*Downloader).save
        /home/runner/work/lux/lux/downloader/downloader.go:194
github.com/iawia002/lux/downloader.(*Downloader).Download.func1
        /home/runner/work/lux/lux/downloader/downloader.go:675
runtime.goexit
        /opt/hostedtoolcache/go/1.22.2/x64/src/runtime/asm_amd64.s:1695
github.com/iawia002/lux/request.Request
        /home/runner/work/lux/lux/request/request.go:118
github.com/iawia002/lux/downloader.(*Downloader).writeFile
        /home/runner/work/lux/lux/downloader/downloader.go:110
github.com/iawia002/lux/downloader.(*Downloader).save
        /home/runner/work/lux/lux/downloader/downloader.go:194
github.com/iawia002/lux/downloader.(*Downloader).Download.func1
        /home/runner/work/lux/lux/downloader/downloader.go:675
runtime.goexit
        /opt/hostedtoolcache/go/1.22.2/x64/src/runtime/asm_amd64.s:1695

I have the same problem, did you solve it?

Nope, I guess fixing this kind of bug is too hard for a normal user like me. If it's urgent, you may need to use another tool; just search for 'youtube download' on GitHub, and you will find it then.

Charon2050 commented 3 weeks ago

Solved in #1370. But not at Releases page yet, need to download at the latest Builder Workflow.