Skip to content

Commit 0b63324

Browse files
committed
...
1 parent 621af5d commit 0b63324

17 files changed

Lines changed: 279 additions & 187 deletions

RCFI Tools.bat

Lines changed: 96 additions & 67 deletions
Large diffs are not rendered by default.

images/Win11A-Back-Gradient.png

150 Bytes
Loading

images/Win11A-Front-Bevel.png

1.32 KB
Loading
5.69 KB
Loading
15.4 KB
Loading

templates/(Shadow Only).bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ set "shadow-Y-position=+6.5"
2525

2626
:: Template Command
2727
::===================================
28-
"%Converter%" "%inputfile%" -resize 490x490 ^( +clone -background %shadow-color% -shadow %shadow-opacity%x%shadow-blur%%shadow-x-position%%shadow-y-position% ^) +swap -background none -layers merge -gravity %image-position% -extent 512x512 -define icon:auto-resize="%TemplateIconSize%" "%outputfile%"
28+
"%Converter%" "%inputfile%" -resize 490x490 ^( +clone -background %shadow-color% -shadow %shadow-opacity%x%shadow-blur%%shadow-x-position%%shadow-y-position% ^) +swap -background none -layers merge -gravity %image-position% -extent 512x512 -define icon:auto-resize="%TemplateIconSize%" "%outputfile%"
29+
30+
31+

templates/BeOrigin.bat

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
:: Template-Version=v1.0
1+
:: Template-Version=v1.1
2+
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
3+
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.
24

35
:: Template Info
46
::========================================================
@@ -9,6 +11,8 @@
911

1012
:: Template Config
1113
::========================================================
14+
set "use-GlobalConfig=Yes"
15+
1216
::--------- Label --------------------------
1317
set "display-FolderName=yes"
1418
set "FolderNameShort-characters-limit=11"
@@ -17,7 +21,6 @@ set "FolderNameLong-characters-limit=38"
1721
set "FolderNameLong-font=Arial"
1822
set "FolderName-Center=Auto"
1923

20-
2124
::--------- Movie Info ---------------------
2225
set "display-movieinfo=yes"
2326
set "show-Rating=yes"
@@ -78,6 +81,12 @@ exit /b
7881
::::::::::::::::::::::::::: CODE START :::::::::::::::::::::::::::::::::
7982

8083
:LAYER-BASE
84+
if /i "%use-GlobalConfig%"=="Yes" (
85+
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
86+
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
87+
)
88+
)
89+
8190
set CODE-BACKGROUND= ( "%canvas%" ^
8291
-scale 512x512! ^
8392
-background none ^
@@ -119,8 +128,8 @@ exit /b
119128

120129
:LAYER-RATING
121130
if /i not "%display-movieinfo%" EQU "yes" exit /b
131+
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
122132
if /i not "%Show-Rating%" EQU "yes" exit /b
123-
call :GetInfo-nfo_file
124133

125134
set CODE-STAR-IMAGE= ( ^
126135
"%star-image%" ^
@@ -283,11 +292,6 @@ exit /b
283292

284293

285294
:GetInfo-nfo_file
286-
if not exist "*.nfo" (
287-
rem echo %TAB% %g_%No ".nfo" detected.%r_%
288-
exit /b
289-
)
290-
291295
for %%N in (*.nfo) do (
292296
set "nfoName=%%~nxN"
293297
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%

templates/DVDBox Dark.bat

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
:: Template-Version=v1.1
2-
:: 2023-09-13 Adding error handling for: when no DiscArt found.
3-
:: 2023-12-16 Adding a feature to generate "DiscArt."
4-
:: 2023-12-21 Adding a feature to search for an image to use as "DiscArt."
5-
:: 2024-05-25 Adding error handling for: when the .nfo file doesn't contain a rating value.
1+
:: Template-Version=v1.2
2+
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
3+
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.
64

75
:: Template Info
86
::========================================================
@@ -13,6 +11,8 @@
1311

1412
:: Template Config
1513
::========================================================
14+
set "use-GlobalConfig=Yes"
15+
1616
set "display-DiscImage=yes"
1717
set "DiscArt-search=*discart.png"
1818
set "generate-DiscArt=yes"
@@ -57,6 +57,12 @@ exit /b
5757
::::::::::::::::::::::::::: CODE START ::::::::::::::::::::::::::::::::
5858

5959
:LAYER-BASE
60+
if /i "%use-GlobalConfig%"=="Yes" (
61+
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
62+
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
63+
)
64+
)
65+
6066
set CODE-BACKGROUND= ( "%canvas%" ^
6167
-scale 512x512! ^
6268
-background none ^
@@ -119,9 +125,8 @@ goto Generate_DiscArt-done
119125

120126
:LAYER-RATING
121127
if /i not "%display-movieinfo%" EQU "yes" exit /b
122-
call :GetInfo-nfo_file
128+
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
123129
if /i not "%Show-Rating%" EQU "yes" exit /b
124-
if not defined rating exit /b
125130

126131
set CODE-STAR-IMAGE= ( ^
127132
"%star-image%" ^
@@ -130,6 +135,7 @@ set CODE-STAR-IMAGE= ( ^
130135
( +clone -background BLACK -shadow 40x1.2+1.8+3 ) ^
131136
+swap -background none -layers merge -extent 512x512 ^
132137
) -compose Over -composite
138+
if not defined rating exit /b
133139

134140
set CODE-RATING= ( ^
135141
-font "%rcfi%\resources\ANGIE-BOLD.TTF" ^
@@ -170,11 +176,6 @@ exit /b
170176

171177

172178
:GetInfo-nfo_file
173-
if not exist "*.nfo" (
174-
rem echo %TAB% %g_%No ".nfo" detected.%r_%
175-
exit /b
176-
)
177-
178179
for %%N in (*.nfo) do (
179180
set "nfoName=%%~nxN"
180181
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%

templates/DVDBox Light.bat

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
:: Template-Version=v1.1
2-
:: 2023-09-13 Adding error handling for: when no DiscArt found.
3-
:: 2023-12-16 Adding a feature to generate "DiscArt."
4-
:: 2023-12-21 Adding a feature to search for an image to use as "DiscArt."
5-
:: 2024-05-25 Adding error handling for: when the .nfo file doesn't contain a rating value.
6-
1+
:: Template-Version=v1.2
2+
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
3+
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.
74

85
:: Template Info
96
::========================================================
@@ -14,6 +11,8 @@
1411

1512
:: Template Config
1613
::========================================================
14+
set "use-GlobalConfig=Yes"
15+
1716
set "display-DiscImage=yes"
1817
set "DiscArt-search=*discart.png"
1918
set "generate-DiscArt=yes"
@@ -58,6 +57,12 @@ exit /b
5857
::::::::::::::::::::::::::: CODE START ::::::::::::::::::::::::::::::::
5958

6059
:LAYER-BASE
60+
if /i "%use-GlobalConfig%"=="Yes" (
61+
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
62+
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
63+
)
64+
)
65+
6166
set CODE-BACKGROUND= ( "%canvas%" ^
6267
-scale 512x512! ^
6368
-background none ^
@@ -120,7 +125,7 @@ goto Generate_DiscArt-done
120125

121126
:LAYER-RATING
122127
if /i not "%display-movieinfo%" EQU "yes" exit /b
123-
call :GetInfo-nfo_file
128+
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
124129
if /i not "%Show-Rating%" EQU "yes" exit /b
125130

126131
set CODE-STAR-IMAGE= ( ^
@@ -171,11 +176,6 @@ exit /b
171176

172177

173178
:GetInfo-nfo_file
174-
if not exist "*.nfo" (
175-
rem echo %TAB% %g_%No ".nfo" detected.%r_%
176-
exit /b
177-
)
178-
179179
for %%N in (*.nfo) do (
180180
set "nfoName=%%~nxN"
181181
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%

templates/DVDCase Bluray.bat

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
:: Template-Version=v1.1
2-
:: 2024-05-25 Adding error handling for: when the .nfo file doesn't contain a rating value.
1+
:: Template-Version=v1.2
2+
:: 2024-06-22 Fix: The star image was rendered in the generated folder icon even when the “.nfo” file didn’t exist.
3+
:: 2024-06-24 Adding Global Config to override template config using RCFI.template.ini.
34

45
:: Template Info
56
::========================================================
@@ -10,6 +11,8 @@
1011

1112
:: Template Config
1213
::========================================================
14+
set "use-GlobalConfig=Yes"
15+
1316
set "display-movieinfo=yes"
1417
set "show-Rating=yes"
1518
set "show-Genre=yes"
@@ -46,6 +49,12 @@ exit /b
4649
::::::::::::::::::::::::::: CODE START ::::::::::::::::::::::::::::::::
4750

4851
:LAYER-BASE
52+
if /i "%use-GlobalConfig%"=="Yes" (
53+
for /f "usebackq tokens=1,2 delims==" %%A in ("%RCFI.templates.ini%") do (
54+
if /i not "%%B"=="" if /i not %%B EQU ^" %%A=%%B
55+
)
56+
)
57+
4958
:: Get background image
5059
set CODE-BACKGROUND= ( "%canvas%" ^
5160
-scale 512x512! ^
@@ -70,7 +79,7 @@ exit /b
7079

7180
:LAYER-RATING
7281
if /i not "%display-movieinfo%" EQU "yes" exit /b
73-
call :GetInfo-nfo_file
82+
if not exist "*.nfo" (exit /b) else call :GetInfo-nfo_file
7483
if /i not "%Show-Rating%" EQU "yes" exit /b
7584

7685
set CODE-STAR-IMAGE= ( ^
@@ -120,11 +129,6 @@ set CODE-GENRE= ( ^
120129
exit /b
121130

122131
:GetInfo-nfo_file
123-
if not exist "*.nfo" (
124-
rem echo %TAB% %g_%No ".nfo" detected.%r_%
125-
exit /b
126-
)
127-
128132
for %%N in (*.nfo) do (
129133
set "nfoName=%%~nxN"
130134
echo %TAB%%ESC%%g_%Movie info :%%~nxN%ESC%

0 commit comments

Comments
 (0)