A tiny Go library + client for downloading Youtube videos. The library is capable of fetching Youtube video metadata, in addition to downloading videos.
161
stars
36
forks
source link
Add error when trying to download 403 Forbidden videos from Youtube Music #6
If you try to download something from Youtube Music (for example this video) using the utility, the HEAD request in yotube.go:124 would get a 403 Forbidden. This is silently ignored and the routine instead says "Video file is already downloaded" at yotube.go:137. This pull request adds an error check for the 403 Forbidden code.
If you try to download something from Youtube Music (for example this video) using the utility, the
HEAD
request inyotube.go:124
would get a403 Forbidden
. This is silently ignored and the routine instead says "Video file is already downloaded" atyotube.go:137
. This pull request adds an error check for the 403 Forbidden code.Also, fixed a typo