You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I would like to thank you for this cool project.
I have some troubles making it work properly, I would really appreciate your help 😄
I am downloading a playlist of tracks, and I am trying to display multiple bars for each track but I am having some issues since the download size isn't known as I am streaming a m3u8 track and downloading segments into one file as follows :
funcDownload(trackDownloadTrack, dlpathstring, prog*mpb.Progress) string {
// validation ...// ...// check if the track is hlsiftrack.Quality!="low" {
// downloading the m3u8 file to extract the segmentsresp, err:=http.Get(track.Url)
iferr!=nil {
return""
}
deferresp.Body.Close()
segments:=getSegments(resp.Body)
DownloadM3u8(path, prog, segments)
returnpath
}
// more code// ...
}
and I am using concurrency to download multiple tracks :
the problem with dlbar.SetTotal() is doesn't reach 100% also when using ProxyReader it displays wrong final files sizes.
Here the sizes are right but no speed indication.
when swapping the 2 lines IncrInt64 with SetTotal it reaches 100% in no time.
also adding prog.Wait() hangs the program after finishing.
sorry If I am making it complicated, I am a beginner in go.
The text was updated successfully, but these errors were encountered:
First, I would like to thank you for this cool project.
I have some troubles making it work properly, I would really appreciate your help 😄
I am downloading a playlist of tracks, and I am trying to display multiple bars for each track but I am having some issues since the download size isn't known as I am streaming a
m3u8
track and downloading segments into one file as follows :and I am using concurrency to download multiple tracks :
what's interesting is the
DownloadM3u8
, I create a progressbar and start downloading segments:in the
downloadSeg
function I am copying the data to the file and incrementing the bar :the problem with
dlbar.SetTotal()
is doesn't reach 100% also when using ProxyReader it displays wrong final files sizes.Here the sizes are right but no speed indication.
when swapping the 2 lines
IncrInt64
withSetTotal
it reaches 100% in no time.also adding
prog.Wait()
hangs the program after finishing.sorry If I am making it complicated, I am a beginner in go.
The text was updated successfully, but these errors were encountered: