Skip to content

Commit

Permalink
fix expected path for converted audio not matching youtube-dl
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow578 committed Mar 10, 2023
1 parent ab03ae3 commit f746b3c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ class TempFiles(tempFile: File, format: String) {

/**
* the main audio file downloaded by youtube-dl.
* this file will be the same as [.convertedAudio], but with a .tmp extension
*/
private val downloadedAudio: File = File(tempFile.absolutePath + ".tmp")

/**
* the converted audio file, created by ffmpeg with the --extract-audio option
* the converted audio file, created by ffmpeg with the --extract-audio option.
* this file will be the same as [.downloadedAudio], but with the format extension added to it (*.tmp.<fmt>)
*/
private val convertedAudio: File = File(tempFile.absolutePath + "." + format)
private val convertedAudio: File = File(downloadedAudio.absolutePath + "." + format)

/**
* delete all files
Expand Down

0 comments on commit f746b3c

Please sign in to comment.