Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xypwn committed Jun 27, 2024
1 parent 8e1b920 commit 03e2a6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions internal/gui/downloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down
3 changes: 1 addition & 2 deletions pkg/southpark/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 03e2a6b

Please sign in to comment.