|
@@ -189,16 +189,15 @@ public class UI extends javax.swing.JFrame
|
|
|
{
|
|
|
String tempPath = Tools.processEnvVarsinLine("%temp%\\iZYT");
|
|
|
FileTK.ensuredirExistence(tempPath);
|
|
|
- Tools.runSingleCmd(true, true, false, true, logPane,
|
|
|
- System.out, "youtube-dl.exe", "-o", tempPath + "\\%(title)s.flv", "--restrict-filenames", "--newline", yturl);
|
|
|
+ Tools.runCmdWithOutToTextField(logPane,"youtube-dl.exe", "-o", tempPath + "\\%(title)s.flv", "--restrict-filenames", "--newline", yturl);
|
|
|
String loadedFile = FileTK.getDirectoryContent(tempPath, true)[0];
|
|
|
System.out.println(loadedFile);
|
|
|
String inPath = tempPath+"\\"+loadedFile;
|
|
|
- String outpath = path+"\\"+FileTK.getFileName(loadedFile)+".mp3";
|
|
|
+ String outpath = path+"\\"+FileTK.getFileName(loadedFile)+"";//.mp3
|
|
|
if(!isCancelled)
|
|
|
{
|
|
|
- Tools.runSingleCmd(true, true, false, true, logPane,
|
|
|
- System.out,"ffmpeg.exe","-stats","-n","-i",inPath,"-ab","192k",outpath);
|
|
|
+ FileTK.kopierpaste(new File(loadedFile), new File(outpath));
|
|
|
+ //Tools.runCmdWithOutToTextField(logPane,"ffmpeg.exe","-stats","-n","-i",inPath,"-ab","192k",outpath);
|
|
|
}
|
|
|
//ffmpeg --stats -b 192k -i inputfile out.mp3
|
|
|
FileTK.verzeichnisKillen(new File(tempPath));
|