From: LoRd_MuldeR Date: Sun, 25 Oct 2015 15:19:45 +0000 (+0100) Subject: Set creation/modified time of the encoded file the same value as the original file... X-Git-Tag: Release_413~18 X-Git-Url: http://git.osdn.net/view?p=lamexp%2FLameXP.git;a=commitdiff_plain;h=a1a2d63c42f434173eb9e399b839ce6292e13cea Set creation/modified time of the encoded file the same value as the original file's creation/modified time. TODO: Make this an option! --- diff --git a/etc/Translation/Blank.ts b/etc/Translation/Blank.ts index 02dffb54..c4b64889 100644 --- a/etc/Translation/Blank.ts +++ b/etc/Translation/Blank.ts @@ -2980,128 +2980,128 @@ - + WARNING: Decoded file size exceeds 4 GB, problems might occur! - + The format of this file is NOT supported: - + Container Format: - + Audio Format: - + Unsupported! - + Aborted! - + Done. - + Failed! - + Encoding - + Analyzing - + Filtering - + Decoding - + The source audio file could not be found: - + The source audio file could not be opened for reading: - + The target output directory doesn't exist and could NOT be created: - + The target output directory is NOT writable: - + Unknown File Name - + Unknown Title - + Unknown Artist - + Unknown Album - + Unknown Comment - + Target output file already exists, going to skip this file: - + If you don't want existing files to be skipped, please change the overwrite mode! - + Target output file already exists, going to delete existing file: - + Failed to delete existing target file, will save to another file name! diff --git a/etc/Translation/LameXP_DE.ts b/etc/Translation/LameXP_DE.ts index 242e0a9e..dfe0cc05 100644 --- a/etc/Translation/LameXP_DE.ts +++ b/etc/Translation/LameXP_DE.ts @@ -2984,107 +2984,107 @@ Nicht gefunden! - + The format of this file is NOT supported: Das Format dieser Datei wird nicht unterstützt: - + Container Format: - + Audio Format: Audioformat: - + Unsupported! Nicht unterstützt! - + Done. Fertig. - + Aborted! Abgebrochen! - + Failed! Fehler! - + Encoding Kodiere - + Filtering Filtere - + Decoding Dekodiere - + The source audio file could not be found: Die Quell-Audiodatei konnte nicht gefunden werden: - + The source audio file could not be opened for reading: Die Quell-Audiodatei konnte nicht zum Lesen geöffnet werden: - + The target output directory doesn't exist and could NOT be created: Das Zielverzeichnis existiert nicht und konnte nicht erstellt werden: - + The target output directory is NOT writable: In das Zielverzeichnis kann nicht geschrieben werden: - + Unknown File Name Unbekannter Dateiname - + Unknown Title Unbekannter Titel - + Unknown Artist Unbekannter Künstler - + Unknown Album Unbekanntes Album - + Unknown Comment Unbekannter Kommentar - + Analyzing Prüfe - + WARNING: Decoded file size exceeds 4 GB, problems might occur! WARNUNG: Dekodierte Dateigröße übersteigt 4 GB, Probleme sind vorprogrammiert! @@ -3095,22 +3095,22 @@ Übersprungen. - + Target output file already exists, going to skip this file: Zieldatei existiert bereits, die Datei wird übersprungen: - + If you don't want existing files to be skipped, please change the overwrite mode! Wenn existierende Dateien nicht übersprungen werden sollen, ändern Sie bitte den Überschreiben-Modus! - + Target output file already exists, going to delete existing file: Zieldatei existiert bereits, die Datei wird gelöscht und überschrieben: - + Failed to delete existing target file, will save to another file name! Die existierende Datei konnte nicht gelöscht werden, ein anderer Dateiname wird gewählt! diff --git a/etc/Translation/LameXP_ES.ts b/etc/Translation/LameXP_ES.ts index 6bd22d4b..295d287d 100644 --- a/etc/Translation/LameXP_ES.ts +++ b/etc/Translation/LameXP_ES.ts @@ -2984,107 +2984,107 @@ ¡No encontrado! - + The format of this file is NOT supported: El formato de este archivo NO está soportado: - + Container Format: Formato del contenedor: - + Audio Format: Formato de audio: - + Unsupported! ¡No soportado! - + Done. Finalizado. - + Aborted! ¡Abortado! - + Failed! ¡Error! - + Encoding Codificando - + Filtering Filtrando - + Decoding Decodificando - + The source audio file could not be found: No se encuentra el archivo de entrada: - + The source audio file could not be opened for reading: No se puede abrir el archivo de entrada para su lectura: - + The target output directory doesn't exist and could NOT be created: La carpeta de salida no existe y NO puede ser creada: - + The target output directory is NOT writable: NO se puede escribir en la carpeta de salida: - + Unknown File Name Nombre de archivo desconocido - + Unknown Title Título desconocido - + Unknown Artist Artista desconocido - + Unknown Album Álbum desconocido - + Unknown Comment Comentario desconocido - + Analyzing Analizando - + WARNING: Decoded file size exceeds 4 GB, problems might occur! ADVERTENCIA: ¡El tamaño del archivo decodificado supera los 4 GB, pueden producirse problemas! @@ -3095,22 +3095,22 @@ Omitidos. - + Target output file already exists, going to skip this file: El archivo de destino ya existe, se omitirá este archivo: - + If you don't want existing files to be skipped, please change the overwrite mode! ¡Si no quiere sobreescribir los archivos existentes, cambie el modo sobreescritura por favor! - + Target output file already exists, going to delete existing file: El archivo de destino ya existe, se eliminará este archivo: - + Failed to delete existing target file, will save to another file name! ¡Error al eliminar el archivo de destino existente, se guardará con otro nombre! diff --git a/etc/Translation/LameXP_FR.ts b/etc/Translation/LameXP_FR.ts index 04c6ae81..4192c3b9 100644 --- a/etc/Translation/LameXP_FR.ts +++ b/etc/Translation/LameXP_FR.ts @@ -2992,107 +2992,107 @@ Ouvrir le dossier récursivement... Non trouvé! - + The format of this file is NOT supported: Le format de ce fichier N'EST PAS supporté: - + Container Format: Format du conteneur: - + Audio Format: Format audio: - + Unsupported! Non supporté! - + Done. Fait. - + Aborted! Abandonné! - + Failed! Échec! - + Encoding Encodage - + Filtering Filtrage - + Decoding Décodage - + The source audio file could not be found: Le fichier audio source n'a pas pu être trouvé: - + The source audio file could not be opened for reading: Le fichier audio source n'a pas pu être ouvert pour la lecture: - + The target output directory doesn't exist and could NOT be created: Le répertoire de sortie cible n'existe pas et ne peut PAS être créé: - + The target output directory is NOT writable: Le répertoire de sortie cible n'est pas accessible en écriture: - + Unknown File Name Nom de fichier inconnu - + Unknown Title Titre inconnu - + Unknown Artist Artiste inconnu - + Unknown Album Album inconnu - + Unknown Comment Commentaire inconnu - + Analyzing Analyse - + WARNING: Decoded file size exceeds 4 GB, problems might occur! AVERTISSEMENT : La taille du fichier décodé dépasse 4Go, des problèmes peuvent survenir! @@ -3104,22 +3104,22 @@ Ouvrir le dossier récursivement... Ignorée. - + Target output file already exists, going to skip this file: Le fichier de sortie existe déjà, vous allez ignorer ce fichier : - + If you don't want existing files to be skipped, please change the overwrite mode! Si vous ne voulez pas ignorer les fichiers existants, veuillez changer le mode de remplacement ! - + Target output file already exists, going to delete existing file: Le fichier de sortie existe déjà, vous allez supprimer ce fichier : - + Failed to delete existing target file, will save to another file name! Impossible de supprimer le fichier existant, voulez-vous l'enregistrer sous un autre nom ! diff --git a/etc/Translation/LameXP_HU.ts b/etc/Translation/LameXP_HU.ts index 047504b1..15181826 100644 --- a/etc/Translation/LameXP_HU.ts +++ b/etc/Translation/LameXP_HU.ts @@ -2980,128 +2980,128 @@ Nem található! - + WARNING: Decoded file size exceeds 4 GB, problems might occur! FIGYELEM: A dekódolt fájl mérete meghaladja a 4 GB-ot. Ez problémákat okozhat! - + The format of this file is NOT supported: A fájl formátuma NEM támogatott: - + Container Format: Tárolási formátum: - + Audio Format: Hangformátum: - + Unsupported! Nem támogatott! - + Aborted! Megszakítva! - + Done. Kész. - + Failed! Sikertelen! - + Encoding Kódolás - + Analyzing Elemzés - + Filtering Szűrés - + Decoding Dekódolás - + The source audio file could not be found: A forrás hangfájl nem található: - + The source audio file could not be opened for reading: A forrás hangfájl nem nyitható meg olvasásra: - + The target output directory doesn't exist and could NOT be created: A cél kimeneti könyvtár nem létezik, és NEM hozható létre: - + The target output directory is NOT writable: A cél kimeneti könyvtár NEM írható: - + Unknown File Name Ismeretlen fájlnév - + Unknown Title Ismeretlen cím - + Unknown Artist Ismeretlen előadó - + Unknown Album Ismeretlen album - + Unknown Comment Ismeretlen hozzászólás - + Target output file already exists, going to skip this file: A cél kimeneti fájl már létezik, ez a fájl ki lesz hagyva: - + If you don't want existing files to be skipped, please change the overwrite mode! Ha nem szeretné a meglévő fájlokat kihagyni, kérjük, változtassa meg a felülírási módot! - + Target output file already exists, going to delete existing file: A cél kimeneti fájl már létezik, a meglévő fájl törlésre kerül: - + Failed to delete existing target file, will save to another file name! Nem sikerült törölni a meglévő cél fájlt. Az állomány másik fájlnéven lesz elmentve! diff --git a/etc/Translation/LameXP_IT.ts b/etc/Translation/LameXP_IT.ts index 730be153..3f567b8b 100644 --- a/etc/Translation/LameXP_IT.ts +++ b/etc/Translation/LameXP_IT.ts @@ -2984,107 +2984,107 @@ Non trovato! - + The format of this file is NOT supported: Il formato di questo file NON è modificabile: - + Container Format: Formato del Contenitore: - + Audio Format: Formato Audio: - + Unsupported! Non Supportato! - + Done. Fatto. - + Aborted! Interrotto! - + Failed! Fallito! - + Encoding In Codifica - + Filtering In Filtraggio - + Decoding In Decodifica - + The source audio file could not be found: Il file audio sorgente non può essere trovato: - + The source audio file could not be opened for reading: Il file audio sorgente non può essere aperto per la lettura: - + The target output directory doesn't exist and could NOT be created: La cartella di destinazione non esiste e NON può essere creata: - + The target output directory is NOT writable: La directory di destinazione è di SOLA LETTURA: - + Unknown File Name Nome File Sconosciuto - + Unknown Title Titolo Sconosciuto - + Unknown Artist Artista Sconosciuto - + Unknown Album Album Sconosciuto - + Unknown Comment Commento Sconosciuto - + Analyzing Analizzando - + WARNING: Decoded file size exceeds 4 GB, problems might occur! ATTENZIONE: la dimensione del file Decodificato Supera i 4 GB, potrebbero verificarsi problemi! @@ -3095,22 +3095,22 @@ Saltato. - + Target output file already exists, going to skip this file: File di output di destinazione esiste già, questo file verrà saltato: - + If you don't want existing files to be skipped, please change the overwrite mode! Se non si desidera saltare i file esistenti, cambiare la modalità di sovrascrittura! - + Target output file already exists, going to delete existing file: File di output di destinazione esiste già, il file esistente verrà eliminato: - + Failed to delete existing target file, will save to another file name! Impossibile eliminare il file di destinazione esistente, il file verrà salvato con un altro nome! diff --git a/etc/Translation/LameXP_KR.ts b/etc/Translation/LameXP_KR.ts index 64ce8a3b..ecdabffb 100644 --- a/etc/Translation/LameXP_KR.ts +++ b/etc/Translation/LameXP_KR.ts @@ -2975,107 +2975,107 @@ 찾을 수 없음! - + The format of this file is NOT supported: 이 파일은 지원되지 않는 파일 형식입니다: - + Container Format: 컨테이너 형식: - + Audio Format: 오디오 형식: - + Unsupported! 지원하지 않습니다! - + Done. 완료. - + Aborted! 취소됨! - + Failed! 실패됨! - + Encoding 인코딩 - + Filtering 필터링 - + Decoding 디코딩 - + The source audio file could not be found: 원본 오디오 파일을 찾을 수 없음: - + The source audio file could not be opened for reading: 원본 오디오 파일을 열 수 없음: - + The target output directory doesn't exist and could NOT be created: 대상 출력 디렉터리가 존재하지 않으며, 만들 수 없습니다: - + The target output directory is NOT writable: 대상 출력 디렉터리에 쓰기 불가: - + Unknown File Name 알수 없는 파일명 - + Unknown Title 알수 없는 제목 - + Unknown Artist 알수 없는 가수 - + Unknown Album 알수 없는 앨범 - + Unknown Comment 알수 없는 설명 - + Analyzing 검토 중 - + WARNING: Decoded file size exceeds 4 GB, problems might occur! 알림: 디코드 파일 크기가 4GB 초과, 문제가 발생할 수 있습니다! @@ -3086,22 +3086,22 @@ 건너뜀. - + Target output file already exists, going to skip this file: 대상 출력 파일이 이미 존재합니다. 건너뛰기할 파일: - + If you don't want existing files to be skipped, please change the overwrite mode! 기존 파일을 건너뛰기하지 않으려면, 덮어쓰기 방식을 변경하시기 바랍니다! - + Target output file already exists, going to delete existing file: 대상 출력 파일이 이미 존재합니다. 건너뛰기할 파일: - + Failed to delete existing target file, will save to another file name! 기존 대상 파일 삭제 실패. 다른 파일명으로 저장됩니다! diff --git a/etc/Translation/LameXP_PL.ts b/etc/Translation/LameXP_PL.ts index aa278c30..24bf97ce 100644 --- a/etc/Translation/LameXP_PL.ts +++ b/etc/Translation/LameXP_PL.ts @@ -2997,128 +2997,128 @@ Nie znaleziono! - + WARNING: Decoded file size exceeds 4 GB, problems might occur! UWAGA: Plik po zdekodowaniu przekracza 4 GB, mogą wystąpić problemy! - + The format of this file is NOT supported: Format tego pliku NIE jest obsługiwany: - + Container Format: Format kontenera: - + Audio Format: Format dźwięku: - + Unsupported! Nieobsługiwany! - + Done. Zrobione. - + Aborted! Przerwano! - + Failed! Niepowodzenie! - + Encoding Kompresowanie - + Analyzing Analizowanie - + Filtering Filtrowanie - + Decoding Dekodowanie - + The source audio file could not be found: Źródłowy plik dźwiękowy nie został odnaleziony: - + The source audio file could not be opened for reading: Źródłowy plik dźwiękowy nie mógł zostać otworzony: - + The target output directory doesn't exist and could NOT be created: Lokalizacja docelowa nie istnieje lu NIE mogła zostać utworzona: - + The target output directory is NOT writable: Nie można zapisać do lokalizacji docelowej: - + Unknown File Name Nieznana nazwa pliku - + Unknown Title Nieznany Tytuł - + Unknown Artist Nieznany Artysta - + Unknown Album Nieznany Album - + Unknown Comment Nieznany Komentarz - + Target output file already exists, going to skip this file: Plik wynikowy już istnieje, zostanie pominięty plik: - + If you don't want existing files to be skipped, please change the overwrite mode! Jeśli nie chcesz aby istniejące pliki były pomijane, zmień tryb nadpisywania! - + Target output file already exists, going to delete existing file: Plik wynikowy już istnieje, zostanie usunięty plik: - + Failed to delete existing target file, will save to another file name! Usuwanie istniejącego pliku zakończone niepowodzeniem, nowy plik zostanie zapisany pod inną nazwą! diff --git a/etc/Translation/LameXP_RU.ts b/etc/Translation/LameXP_RU.ts index e5c18377..357132ea 100644 --- a/etc/Translation/LameXP_RU.ts +++ b/etc/Translation/LameXP_RU.ts @@ -2999,107 +2999,107 @@ Не найдено! - + The format of this file is NOT supported: Этот тип файлов не поддерживается: - + Container Format: Формат Контейнера: - + Audio Format: Формат Аудио: - + Unsupported! Неподдерживается! - + Done. Готово. - + Aborted! Прервано! - + Failed! Ошибка! - + Encoding Кодирование - + Filtering Фильтрация - + Decoding Декодирование - + The source audio file could not be found: Исходный аудио файл не найден: - + The source audio file could not be opened for reading: Исходный аудио файл не может быть открыт: - + The target output directory doesn't exist and could NOT be created: Папка для выходных файлов не существует и не может быть создана: - + The target output directory is NOT writable: Папка для выходных файлов недоступна для записи: - + Unknown File Name Неизвестное имя файла - + Unknown Title Неизвестное Название - + Unknown Artist Неизвестный Артист - + Unknown Album Неизвестный Альбом - + Unknown Comment Неизвестный Комментарий - + Analyzing Анализ - + WARNING: Decoded file size exceeds 4 GB, problems might occur! ВНИМАНИЕ: декодированный файл больше 4 ГБ, возможны проблемы! @@ -3110,22 +3110,22 @@ Пропущен. - + Target output file already exists, going to skip this file: Файл уже существует, будет пропущен: - + If you don't want existing files to be skipped, please change the overwrite mode! Если Вы не хотите пропускать уже существующие файлы, пожалуйста, измените режим перезаписи! - + Target output file already exists, going to delete existing file: Файл уже существует, будет удалён: - + Failed to delete existing target file, will save to another file name! Ошибка удаления существующего файла, будет сохранение с другим именем! diff --git a/etc/Translation/LameXP_SV.ts b/etc/Translation/LameXP_SV.ts index d58c7ba8..03eb28b9 100644 --- a/etc/Translation/LameXP_SV.ts +++ b/etc/Translation/LameXP_SV.ts @@ -2989,129 +2989,129 @@ Hittas ej! - + WARNING: Decoded file size exceeds 4 GB, problems might occur! VARNING! Omkodad filstorlek överstiger 4 GB. Problem kan uppstå! - + The format of this file is NOT supported: Det här filformatet saknar stöd i LameXP: - + Container Format: Behållarformat: - + Audio Format: Ljudformat: - + Unsupported! Stöd saknas! - + Aborted! Avbruten! - + Done. Klar. - + Failed! Misslyckades! - + Encoding Kodar - + Analyzing Analyserar - + Filtering Filtrerar - + Decoding Avkodar - + The source audio file could not be found: Källfilen kan inte hittas: - + The source audio file could not be opened for reading: Källfilen kan inte öppnas för läsning: - + The target output directory doesn't exist and could NOT be created: Målmappen finns inte och kan inte skapas: - + The target output directory is NOT writable: Målmappen är INTE skrivbar: - + Unknown File Name Okänt filnamn - + Unknown Title Okänd titel - + Unknown Artist Okänd artist - + Unknown Album Okänt album - + Unknown Comment Okänd kommentar - + Target output file already exists, going to skip this file: Målfilen finns redan! Den här filen hoppas över: - + If you don't want existing files to be skipped, please change the overwrite mode! Om du inte vill att befintliga filer hoppas över, måste du ändra överskrivningsläge! - + Target output file already exists, going to delete existing file: Målfilen finns redan! Befintlig fil kommer att tas bort: - + Failed to delete existing target file, will save to another file name! Kunde inte ta bort befintlig målfil. Sparar med annat filnamn! diff --git a/etc/Translation/LameXP_TW.ts b/etc/Translation/LameXP_TW.ts index cf6eeffd..f9ab627a 100644 --- a/etc/Translation/LameXP_TW.ts +++ b/etc/Translation/LameXP_TW.ts @@ -2975,107 +2975,107 @@ 找不到! - + The format of this file is NOT supported: 此文件的格式不受支持: - + Container Format: 容器格式: - + Audio Format: 音頻格式: - + Unsupported! 不受支持! - + Done. 完成. - + Aborted! 中止! - + Failed! 失敗! - + Encoding 編碼 - + Filtering 過濾 - + Decoding 解碼 - + The source audio file could not be found: 找不到源音頻文件: - + The source audio file could not be opened for reading: 無法打開源音頻文件進行讀取: - + The target output directory doesn't exist and could NOT be created: 目標輸出目錄不存在,無法創建: - + The target output directory is NOT writable: 目標輸出目錄不是可寫: - + Unknown File Name 未知文件名稱 - + Unknown Title 未知標題 - + Unknown Artist 未知藝術家 - + Unknown Album 未知專輯 - + Unknown Comment 未知評論 - + Analyzing 分析 - + WARNING: Decoded file size exceeds 4 GB, problems might occur! 警告: 解碼文件大小超過4GB, 可能會出現問題! @@ -3086,22 +3086,22 @@ 跳過. - + Target output file already exists, going to skip this file: 目標輸出文件已經存在, 將跳過此文件: - + If you don't want existing files to be skipped, please change the overwrite mode! 如果你不希望被跳過已存在的文件, 請更改覆蓋模式! - + Target output file already exists, going to delete existing file: 目標輸出文件已經存在, 要刪除現有的文件: - + Failed to delete existing target file, will save to another file name! 無法刪除現有目標文件, 將保存到另一個文件名! diff --git a/etc/Translation/LameXP_UK.ts b/etc/Translation/LameXP_UK.ts index 0e23e788..b5e502d4 100644 --- a/etc/Translation/LameXP_UK.ts +++ b/etc/Translation/LameXP_UK.ts @@ -2992,107 +2992,107 @@ Не знайдено! - + The format of this file is NOT supported: Формат даного файла НЕ підтримуєтья: - + Container Format: Формат контейнера: - + Audio Format: Формат аудіо: - + Unsupported! Не підтримується! - + Done. Виконано. - + Aborted! Перервано! - + Failed! Збій! - + Encoding Кодування - + Filtering Фільтрування - + Decoding Декодування - + The source audio file could not be found: Неможливо знайти вхідний файл аудіо: - + The source audio file could not be opened for reading: Неможливо відкрити для читання вхідний файл аудіо: - + The target output directory doesn't exist and could NOT be created: Вихідної теки не існує і її неможливо створити: - + The target output directory is NOT writable: До вихідної теки неможливо проводити запис: - + Unknown File Name Невідома назва файла - + Unknown Title Невідомий заголовок - + Unknown Artist Невідомий виконавець - + Unknown Album Невідомий альбом - + Unknown Comment Невідомий коментар - + Analyzing Аналізування - + WARNING: Decoded file size exceeds 4 GB, problems might occur! ПОПЕРЕДЖЕННЯ: Розмір декодованного файла перевищує 4 ГБ, можуть виникнути проблеми! @@ -3103,22 +3103,22 @@ Пропущено. - + Target output file already exists, going to skip this file: Вихідний цільовий файл вже існує, спроба пропустити цей файл: - + If you don't want existing files to be skipped, please change the overwrite mode! Якщо ви не хочете, щоб існуючі файли були пропущені, будь ласка, змініть режим перезапису! - + Target output file already exists, going to delete existing file: Вихідний цільовий файл вже існує, спроба видалити існуючий файл: - + Failed to delete existing target file, will save to another file name! Неможливо видалити існуючий файл, збереження буде проведено до файла з іншою назвою! diff --git a/etc/Translation/LameXP_ZH.ts b/etc/Translation/LameXP_ZH.ts index 56cc17f0..366b5a1c 100644 --- a/etc/Translation/LameXP_ZH.ts +++ b/etc/Translation/LameXP_ZH.ts @@ -2975,107 +2975,107 @@ 未找到! - + The format of this file is NOT supported: 此文件的格式不受支持: - + Container Format: 容器格式: - + Audio Format: 音频格式: - + Unsupported! 不支持! - + Done. 完成。 - + Aborted! 中止! - + Failed! 失败! - + Encoding 编码 - + Filtering 过滤 - + Decoding 解码 - + The source audio file could not be found: 找不到源音频文件: - + The source audio file could not be opened for reading: 无法打开源音频文件进行读取: - + The target output directory doesn't exist and could NOT be created: 目标输出目录不存在且无法创建: - + The target output directory is NOT writable: 目标输出目录不可写: - + Unknown File Name 未知文件名称 - + Unknown Title 未知标题 - + Unknown Artist 未知艺术家 - + Unknown Album 未知专辑 - + Unknown Comment 未知注释 - + Analyzing 分析 - + WARNING: Decoded file size exceeds 4 GB, problems might occur! 警告: 解码文件大小超过4GB, 可能会出现问题! @@ -3086,22 +3086,22 @@ 跳过。 - + Target output file already exists, going to skip this file: 目标输出文件已经存在, 将跳过此文件: - + If you don't want existing files to be skipped, please change the overwrite mode! 如果你不希望跳过已存在的文件, 请更改覆盖模式! - + Target output file already exists, going to delete existing file: 目标输出文件已经存在, 将删除现有的文件: - + Failed to delete existing target file, will save to another file name! 无法删除现有目标文件, 将保存为另一个文件名! diff --git a/src/Config.h b/src/Config.h index 820594c2..37cf5251 100644 --- a/src/Config.h +++ b/src/Config.h @@ -35,7 +35,7 @@ #define VER_LAMEXP_MINOR_LO 3 #define VER_LAMEXP_TYPE Alpha #define VER_LAMEXP_PATCH 1 -#define VER_LAMEXP_BUILD 1821 +#define VER_LAMEXP_BUILD 1823 #define VER_LAMEXP_CONFG 1818 /////////////////////////////////////////////////////////////////////////////// diff --git a/src/Thread_Process.cpp b/src/Thread_Process.cpp index 372375bd..7bba4ce8 100644 --- a/src/Thread_Process.cpp +++ b/src/Thread_Process.cpp @@ -210,9 +210,10 @@ void ProcessThread::processFile() QString sourceFile = m_audioFile.filePath(); - //------------------ - //Decode source file - //------------------ + //----------------------------------------------------- + // Decode source file + //----------------------------------------------------- + const AudioFileModel_TechInfo &formatInfo = m_audioFile.techInfo(); if(!m_filters.isEmpty() || !m_encoder->isFormatSupported(formatInfo.containerType(), formatInfo.containerProfile(), formatInfo.audioType(), formatInfo.audioProfile(), formatInfo.audioVersion())) { @@ -253,9 +254,10 @@ void ProcessThread::processFile() } } - //------------------------------------ - //Update audio properties after decode - //------------------------------------ + //----------------------------------------------------- + // Update audio properties after decode + //----------------------------------------------------- + if(bSuccess && !m_aborted && IS_WAVE(m_audioFile.techInfo())) { if(m_encoder->supportedSamplerates() || m_encoder->supportedBitdepths() || m_encoder->supportedChannelCount() || m_encoder->needsTimingInfo() || !m_filters.isEmpty()) @@ -282,9 +284,10 @@ void ProcessThread::processFile() } } - //----------------------- - //Apply all audio filters - //----------------------- + //----------------------------------------------------- + // Apply all audio filters + //----------------------------------------------------- + if(bSuccess) { while(!m_filters.isEmpty() && !m_aborted) @@ -306,9 +309,10 @@ void ProcessThread::processFile() } } - //----------------- - //Encode audio file - //----------------- + //----------------------------------------------------- + // Encode audio file + //----------------------------------------------------- + if(bSuccess && !m_aborted) { m_currentStep = EncodingStep; @@ -319,7 +323,7 @@ void ProcessThread::processFile() if((!bSuccess) || m_aborted) { QFileInfo fileInfo(m_outFileName); - if(fileInfo.exists() && (fileInfo.size() < 512)) + if(fileInfo.exists() && (fileInfo.size() < 1024)) { QFile::remove(m_outFileName); } @@ -328,11 +332,20 @@ void ProcessThread::processFile() //Make sure output file exists if(bSuccess && (!m_aborted)) { - QFileInfo fileInfo(m_outFileName); - bSuccess = fileInfo.exists() && fileInfo.isFile() && (fileInfo.size() > 0); + const QFileInfo fileInfo(m_outFileName); + bSuccess = fileInfo.exists() && fileInfo.isFile() && (fileInfo.size() >= 1024); } - MUtils::OS::sleep_ms(25); + //----------------------------------------------------- + // Finalize + //----------------------------------------------------- + + if (bSuccess && (!m_aborted)) + { + updateFileTime(m_audioFile.filePath(), m_outFileName); + } + + MUtils::OS::sleep_ms(12); //Report result emit processStateChanged(m_jobId, (m_aborted ? tr("Aborted!") : (bSuccess ? tr("Done.") : tr("Failed!"))), ((bSuccess && !m_aborted) ? ProgressModel::JobComplete : ProgressModel::JobFailed)); @@ -667,6 +680,27 @@ void ProcessThread::insertDownmixFilter(void) } } +bool ProcessThread::updateFileTime(const QString &originalFile, const QString &modifiedFile) +{ + bool success = false; + + QFileInfo originalFileInfo(originalFile); + const QDateTime timeCreated = originalFileInfo.created(), timeLastMod = originalFileInfo.lastModified(); + if (timeCreated.isValid() && timeLastMod.isValid()) + { + if (!MUtils::OS::set_file_time(modifiedFile, timeCreated, timeLastMod)) + { + qWarning("Failed to update creation/modified time of output file: \"%s\"", MUTILS_UTF8(modifiedFile)); + } + } + else + { + qWarning("Failed to read creation/modified time of source file: \"%s\"", MUTILS_UTF8(originalFile)); + } + + return success; +} + //////////////////////////////////////////////////////////// // PUBLIC FUNCTIONS //////////////////////////////////////////////////////////// diff --git a/src/Thread_Process.h b/src/Thread_Process.h index 8db28038..0cb02c08 100644 --- a/src/Thread_Process.h +++ b/src/Thread_Process.h @@ -93,6 +93,7 @@ private: QString generateTempFileName(void); void insertDownmixFilter(void); void insertDownsampleFilter(void); + bool updateFileTime(const QString &originalFile, const QString &modifiedFile); volatile bool m_aborted; volatile int m_initialized;