diff options
| author | Roland Reichwein <mail@reichwein.it> | 2022-05-29 11:50:39 +0200 | 
|---|---|---|
| committer | Roland Reichwein <mail@reichwein.it> | 2022-05-29 11:50:39 +0200 | 
| commit | e724452c00a56d0579ea685f90da6200993de5e0 (patch) | |
| tree | edce12858425a3923532e07cfdea9e66900d48b7 | |
| parent | 4f82b0fd5f76fe0d488d297967962befdb00c8bc (diff) | |
downtube 1.3: fixed ffmpeg command line for conversionv1.3
| -rwxr-xr-x | Makefile | 2 | ||||
| -rw-r--r-- | debian/changelog | 6 | ||||
| -rw-r--r-- | downtube.cpp | 2 | 
3 files changed, 8 insertions, 2 deletions
| @@ -4,7 +4,7 @@  # Environment: Debian  # -DISTROS=debian10 ubuntu1910 ubuntu2004 +DISTROS=debian10 debian11 ubuntu1910 ubuntu2004  VERSION=$(shell dpkg-parsechangelog --show-field Version)  CXX=clang++-10 diff --git a/debian/changelog b/debian/changelog index 49709a0..e807c44 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +downtube (1.3) unstable; urgency=medium + +  * Fix youtube-dl command line: Fix extension for ffmpeg + + -- Roland Reichwein <mail@reichwein.it>  Sun, 29 May 2022 11:43:43 +0200 +  downtube (1.2) unstable; urgency=medium    * Fix youtube-dl command line: thumbnail broke audio conversion from webm diff --git a/downtube.cpp b/downtube.cpp index f3afcc0..60cfcc2 100644 --- a/downtube.cpp +++ b/downtube.cpp @@ -141,7 +141,7 @@ int main(void)       FCGX_FPrintF(request.out, "%s", filename.c_str());      } else if (command == "getfile") {       if (format == "mp3") { -      std::string cmd{"youtube-dl --no-warnings --no-call-home --no-progress -x --audio-format mp3 -o audio.mp3 --restrict-filenames "s + url}; +      std::string cmd{"youtube-dl --no-warnings --no-call-home --no-progress -x --audio-format mp3 -o 'audio.%(ext)s' --restrict-filenames "s + url};        system(cmd.c_str()); // Ignore error - "ERROR:   Stream #1:0 -> #0:1 (copy)" - seems to be ok        std::string filedata {File::getFile("audio.mp3")}; // may throw | 
