diff --git a/Jellyfin.Plugin.FinTube/Api/FinTubeActivityController.cs b/Jellyfin.Plugin.FinTube/Api/FinTubeActivityController.cs index 831c324..4aef041 100644 --- a/Jellyfin.Plugin.FinTube/Api/FinTubeActivityController.cs +++ b/Jellyfin.Plugin.FinTube/Api/FinTubeActivityController.cs @@ -110,10 +110,11 @@ public ActionResult> FinTubeDownload([FromBody] FinTu status += $"Filename: {targetFilename}
"; - String args; + // Use built-in ffmpeg + String args = "--ffmpeg-location /usr/lib/jellyfin-ffmpeg/ffmpeg"; if(data.audioonly) { - args = "-x"; + args += " -x"; if(data.preferfreeformat) args += " --prefer-free-format"; else @@ -123,9 +124,9 @@ public ActionResult> FinTubeDownload([FromBody] FinTu else { if(data.preferfreeformat) - args = "--prefer-free-format"; + args += " --prefer-free-format"; else - args = "-f mp4"; + args += " -f mp4"; if(!string.IsNullOrEmpty(data.videoresolution)) args += $" -S res:{data.videoresolution}"; args += $" -o \"{targetFilename}-%(title)s.%(ext)s\" {data.ytid}"; @@ -185,4 +186,4 @@ private static Process createProcess(String exe, String args) ProcessStartInfo startInfo = new ProcessStartInfo() { FileName = exe, Arguments = args }; return new Process() { StartInfo = startInfo }; } -} \ No newline at end of file +}