Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Update cache.go
Browse files Browse the repository at this point in the history
  • Loading branch information
keshon committed Apr 18, 2024
1 parent e9c5577 commit ece538d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/music/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (c *Cache) downloadFile(filepath, url string) error {
return err
}

func extractAudio(videoFilePath, audioFilePath string) error {
func (c *Cache) extractAudio(videoFilePath, audioFilePath string) error {
cmd := exec.Command("ffmpeg", "-i", videoFilePath, "-vn", "-acodec", "libmp3lame", "-b:a", "256k", audioFilePath)
err := cmd.Run()
if err != nil {
Expand Down Expand Up @@ -119,7 +119,7 @@ func (c *Cache) generateTempFilename() string {
return fmt.Sprintf("%d", time.Now().Unix())
}

func humanReadableSize(size int64) string {
func (c *Cache) humanReadableSize(size int64) string {
const (
b = 1 << (10 * iota)
kb
Expand Down

0 comments on commit ece538d

Please sign in to comment.