-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix that should affect no one but me
- Loading branch information
Showing
5 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
@echo off | ||
@Echo OFF | ||
|
||
rem We had to move this functionality into a subordinate BAT file after discovering that WinAmp only displays | ||
rem artwork added by Metaflac if you remove the existing artwork first. So adding requires removing first. | ||
|
||
SET ART=%1 | ||
SET MUSIC=%2 | ||
call validate-environment-variables ART MUSIC | ||
|
||
|
||
metaflac --import-picture-from="%@UNQUOTE[%ART]" %MUSIC% | ||
rem Capture parameters and validate environment: | ||
set PARAMS_ADDARTTOFLAC=%* | ||
set PARAM_ADDARTTOFLAC_1=%1 | ||
set PARAM_ADDARTTOFLAC_2=%2 | ||
if %VALIDATED_ADDARTTOFLAC ne 1 ( | ||
call validate-in-path remove-art-from-flac add-art-to-flac-helper | ||
set VALIDATED_ADDARTTOFLAC=1 | ||
) | ||
|
||
rem Remove old art, add new art: | ||
call remove-art-from-flac %PARAM_ADDARTTOFLAC_2% | ||
call add-art-to-flac-helper %PARAM_ADDARTTOFLAC_1% %PARAM_ADDARTTOFLAC_2% | ||
|
||
call warning "this is untested on flac yet - ERRORLEVEL = %ERRORLEVEL% - let's see what happens?!" | ||
pause | ||
|
||
|
||
|
||
if ERRORLEVEL 1 (%COLOR_ERROR %+ ECHO %EMOJI_RED_EXCLAMATION_MARK%ERROR embedding art "%ART%" into song "%SONG%"!! %+ BEEP %+ pause %+ pause %+ pause %+ pause %+ pause %+ pause %+ pause %+ pause %+ pause) | ||
REM if ERRORLEVEL 0 .and. %DONT_DELETE_ART_AFTER_EMBEDDING ne 1 (del %ART%) | ||
if ERRORLEVEL 0 .and. %DONT_DELETE_ART_AFTER_EMBEDDING ne 1 (%COLOR_SUCCESS% %+ echo %EMOJI_CHECK_MARK%Success!!! %+ if %DONT_DELETE_ART_AFTER_EMBEDDING ne 1 (%COLOR_REMOVAL %+ del %ART%)) |
2 changes: 1 addition & 1 deletion
2
BAT-and-UTIL-files/zipped/personal-BAT-files-used--------filelist.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
2023-07-16 21:34 772 50% add-art-to-flac.bat | ||
2024-04-19 20:02 781 55% add-art-to-flac.bat | ||
2023-07-18 09:19 3,817 70% add-art-to-mp3.bat | ||
2023-05-05 02:24 459 47% add-art-to-song.bat |
Binary file modified
BIN
-30 Bytes
(99%)
BAT-and-UTIL-files/zipped/personal-BAT-files-used-in-this-project.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters