Puyodead1 / udemy-dl-go

A WIP Udemy downloader written in Go
11 stars 2 forks source link

[Bug]: fails to download ffmpg #16

Open gedw99 opened 1 year ago

gedw99 commented 1 year ago

Branch

v2 branch.

What operating systems are you seeing the problem on?

MacOS

Program Version

DEVELOPMENT

What happened?

cd udemy-dl-go && ./udemy-dl-go -bearer=fhfh -course=http://blah.com -debug=true 03:12:32 INFO ▶ Starting dependency check 03:12:32 INFO ▶ Checking FFMPEG... 03:12:32 CRITICAL ▶ Dependency Check Error: Error getting latest ffmpeg version: json: cannot unmarshal object into Go value of type string

Expected Result

download ffmpg

Relevant log output

No response

Other information

No response

gedw99 commented 1 year ago

https://github.com/Puyodead1/udemy-dl-go/blob/v2/ffmpeg.go#L44 is the problem

gedw99 commented 1 year ago

looks like your trying to extract the version from this ? https://evermeet.cx/ffmpeg/info/ffmpeg/snapshot