diff --git a/internal/gui/downloads.go b/internal/gui/downloads.go index e594712..a62a859 100644 --- a/internal/gui/downloads.go +++ b/internal/gui/downloads.go @@ -62,7 +62,7 @@ func downloadFilterFunc(dl *logic.Download, filter downloadFilter) bool { } type DownloadItem struct { - widget. BaseWidget + widget.BaseWidget text *widget.Label status *widget.Label playBtn *widget.Button @@ -73,10 +73,10 @@ type DownloadItem struct { func NewDownloadItem() *DownloadItem { res := &DownloadItem{ - text: widget.NewLabel("PLACEHOLDER"), - status: widget.NewLabel("PLACEHOLDER"), + text: widget.NewLabel("PLACEHOLDER"), + status: widget.NewLabel("PLACEHOLDER"), playBtn: widget.NewButtonWithIcon("", theme.MediaPlayIcon(), func() {}), - reset: func() {}, + reset: func() {}, } res.ExtendBaseWidget(res) diff --git a/pkg/southpark/download.go b/pkg/southpark/download.go index 96d8d57..81f73ab 100644 --- a/pkg/southpark/download.go +++ b/pkg/southpark/download.go @@ -145,12 +145,11 @@ func (d *Downloader) Do() error { var aacSegs []SegmentFile for i, seg := range stream.Audio.Segments { aacSegs = append(aacSegs, SegmentFile{ - Filename: getSegFileName(len(stream.Video.Segments)+i), + Filename: getSegFileName(len(stream.Video.Segments) + i), Duration: seg.Duration, }) } - if err := ConvertTSAndAACToMP4(tsSegs, aacSegs, outputFileMP4, func(progress float64) { d.OnStatusChanged(DownloaderStatusPostprocessingVideo, progress) }); err != nil {