Comments (4)
I am also seeing this. I can add a little more info.
I am using this library with getsong and I have a TravisCI cron job to test it daily. I've been getting daily build errors since 06/05/2019 on the same commit (d71b9ef8
) which is a commit that is over 8 weeks old.
I have some logs and this is what I see when it errors:
2019-06-05 19:09:59 [DEBUG] getsong.go downloadYouTube:192 downloading https://r1---sn-vgqskn7e.googlevideo.com/videoplayback?c=WEB&clen=3884052&dur=218.721&ei=hhP4XMCpOpTbNvXXo-gE&expire=1559783399&fvip=1&gcr=us&gir=yes&id=o-AKPffesLG3FdY60IpiLYkR4ugslA9xKiPRMvBlCBjZCk&initcwndbps=4952500&ip=35.188.1.99&itag=251&keepalive=yes&lmt=1533732061734022&lsig=AHylml4wRAIgMOo0Zsu-UluvU0RGgDqbF6VlS5DWVsqaNp4Evu7LGosCIGYyS0W0YubVmYGYw30tDrBewYSZwGY4fajE7CHPVRgw&lsparams=mm%2Cmn%2Cms%2Cmv%2Cpl%2Cinitcwndbps&mime=audio%2Fwebm&mm=31%2C29&mn=sn-vgqskn7e%2Csn-vgqsrn7d&ms=au%2Crdu&mt=1559751098&mv=m&pl=20&ratebypass=yes&requiressl=yes&signature=ALgxI2wwRQIgVimHksAkYAakM-tSG8n4s1QsgWJMiOUUGFOcz6ttbvgCIQDTZ4V9T1J0X0NQtpd2sglByGivBoxqkjjKHiM0nAs7YQ%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt
2019-06-05 19:09:59 [DEBUG] getsong.go DownloadFromYouTube:215 total length: 0
...converting to mp3...
--- FAIL: TestGetSongAPI (1.57s)
getsong_test.go:19:
Error Trace: getsong_test.go:19
Error: Expected nil, but got: could not convert video: exit status 1
Test: TestGetSongAPI
Basically its showing that it gets a good URL but that it downloads zero bytes. Eventually an error is thrown in my program because it tries to convert a file that is empty and then the Travis test fails.
I've seen that this problem is not consistent. I fixed my program by just re-trying grabbing the YT URL if it does fail with getting a zero-length file, because sometimes it does not get a zero-length file. Its weird.
from ytdl.
I tried to use this repo in OS windows (7, 10) and different hardware and I've got 0 byte files. When I tried to use it in linux (ubuntu 18.04), it works properly. Golang ver 1.12.6 in all PCs.
@rylio maybe need to test and write to readme that this works only in linux?
from ytdl.
see #70 - Youtube changed API to use ?sig=
instead of ?signature=
from ytdl.
This necessary change has been pushed into the master branch.
from ytdl.
Related Issues (20)
- install error HOT 1
- No formats found
- no err but No formats HOT 1
- Don't log when used as a library HOT 1
- Dont compile last version (go get -u github.com/rylio/ytdl/...) HOT 7
- Go Get Failed HOT 6
- GetVideoInfo - invalid character ';' after top-level value HOT 4
- Add MKV support HOT 1
- Create New Release HOT 1
- can not download https://youtu.be/Hd_ptbiPoXM HOT 4
- Can not download https://www.youtube.com/watch?v=Ap0huJwyT7g HOT 1
- Can not download video HOT 3
- How to use specific format HOT 1
- not build HOT 1
- Not able to download YouTube videos HOT 1
- build (with v2 of urfave/cli?) HOT 1
- Example in read me is non-functional HOT 1
- Remove my test tags from your repo HOT 3
- option to skip SSL verification please HOT 1
- Error when running go get HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ytdl.