2024-07-12, 02:25 AM
(This post was last modified: 2024-07-18, 02:51 PM by HERIGROSIR. Edited 17 times in total.)
Thank you for translating my writing. I have analyzed the Jellyfin software. It turns out that the source of the problem why the Jellyfin window can't read actor photos automatically is that the developer didn't provide an option (space) and couldn't read the underline (_) in a file.jpg and couldn't read it. symbol in the file name
1 photo source taken from tinymediamanager
is a .jpg file: test.jpg or test_test.jpg
and jellyfin can't read: test_test.jpg, it can only read: test test.jpg (without underline)
here is the source of the problem,
so the developer must be able to change this
so that it is suitable for names without underscores or with underscores, Jellyfin can read them
The source of the actor photo that we took from tinymediamanager is like this :
Obviously this will not be read by Jellyfin because it does not support underlines
You should first change the underline to a space, before the files and folders are moved to the people folder in metadata
---------------------------------------------------------
how to handle it ??
1. First you have to have tinymediamanger
2. you have to create a file.bat in notepad to execute the file quickly, make the file into a folder, and the finished folder to be moved to the alphabet folder in people metadata
3. I will create 3 commands to make this job easier
- Replace underscores with spaces
- Make file to folder
- Move all folder to alpabet folder
----------------------------------------------------
1.To Replace underscores with spaces the file, you can copypaste the code below and save with the .bat extension
Give it a name files ==REPLACE FILES UNDERSCORE TO SPACES=
put it with file.jpg
2. Make folders from file , quickly use .bat
Give it a name files ==MAKE FOLDER=
3. If the folder has been created, you move all the actor folders into the people folder
on your jellyfin metadata, all of it
4. create the final command program, namely
create a .bat file with the code below
The aim is for all folders in People to be included in the folder alphabet automatically
this code
Give it a name files =MOVE FOLDER TO APHABET=
Place the program =MOVE FOLDER TO APHABET= that you created in the people folder
and double click
Done , you return to your actor's Jellyfin photos, and have to click on each one for the first time.
I don't understand this job, you have to click one by one, this is part of the Jellyfin bug which also needs to be fixed, maybe in the future the developer will fix this
OK, for the first time you have to click one by one
After opening the entire photo, you don't need to do that again
If the photo box is any color other than black, it means the data was not found by tinymediamanager
You can upload it manually or just delete it
if the photo box is black, but when you click on the photo it doesn't appear,
This means you have to look for the name by copypaste
name, in the people folder do a search
and you just need to replace the person's file name with the folder name only
Actually, I have prepared these 3 instructions for you to just download
but the admin here doesn't allow links from outside,
I don't understand why external links are prohibited, even though it is to make it easier for Jellyfin users themselves
so you have to create the 3 programs yourself, each in Notepad with the .bat extension.
Or if you want to make 2 programs into 1 command, you can copy the code below
change the underscore to a space and create a folder
save with the file name .bat
This is to make your work easier
Hopefully this tutorial can help
thanks
by : herigrosir from indonesia
1 photo source taken from tinymediamanager
is a .jpg file: test.jpg or test_test.jpg
and jellyfin can't read: test_test.jpg, it can only read: test test.jpg (without underline)
here is the source of the problem,
so the developer must be able to change this
so that it is suitable for names without underscores or with underscores, Jellyfin can read them
The source of the actor photo that we took from tinymediamanager is like this :
Obviously this will not be read by Jellyfin because it does not support underlines
You should first change the underline to a space, before the files and folders are moved to the people folder in metadata
---------------------------------------------------------
how to handle it ??
1. First you have to have tinymediamanger
2. you have to create a file.bat in notepad to execute the file quickly, make the file into a folder, and the finished folder to be moved to the alphabet folder in people metadata
3. I will create 3 commands to make this job easier
- Replace underscores with spaces
- Make file to folder
- Move all folder to alpabet folder
----------------------------------------------------
1.To Replace underscores with spaces the file, you can copypaste the code below and save with the .bat extension
Code:
@echo off
setlocal enabledelayedexpansion
for %%a in (*_*) do (
set file=%%a
ren "!file!" "!file:_= !"
)
Give it a name files ==REPLACE FILES UNDERSCORE TO SPACES=
put it with file.jpg
2. Make folders from file , quickly use .bat
Code:
@echo off
for %%i in (*) do (
if not "%%~ni" == "organize" (
md "%%~ni" && move "%%~i" "%%~ni"
)
)
Give it a name files ==MAKE FOLDER=
3. If the folder has been created, you move all the actor folders into the people folder
on your jellyfin metadata, all of it
4. create the final command program, namely
create a .bat file with the code below
The aim is for all folders in People to be included in the folder alphabet automatically
this code
Code:
@SetLocal EnableExtensions DisableDelayedExpansion
@For /F Delims^=^ EOL^= %%G In ('Dir /B /A ^| "%__AppDir__%findstr.exe" ^
/I "^[0123456789a-Z]" ^| "%__AppDir__%find.exe" /I /V "%~nx0"') Do @(
Set "Object=%%G" & SetLocal EnableDelayedExpansion
If "%%~aG" GEq "d" (If Not "!Object:~1,1!" == "" "%__AppDir__%Robocopy.exe"^
"%%~G" "!Object:~,1!\%%G" /E /Move >NUL 2>&1
) Else "%__AppDir__%Robocopy.exe" . "!Object:~,1!" "%%G" /Mov >NUL 2>&1
EndLocal)
Give it a name files =MOVE FOLDER TO APHABET=
Place the program =MOVE FOLDER TO APHABET= that you created in the people folder
and double click
Done , you return to your actor's Jellyfin photos, and have to click on each one for the first time.
I don't understand this job, you have to click one by one, this is part of the Jellyfin bug which also needs to be fixed, maybe in the future the developer will fix this
OK, for the first time you have to click one by one
After opening the entire photo, you don't need to do that again
If the photo box is any color other than black, it means the data was not found by tinymediamanager
You can upload it manually or just delete it
if the photo box is black, but when you click on the photo it doesn't appear,
This means you have to look for the name by copypaste
name, in the people folder do a search
and you just need to replace the person's file name with the folder name only
Actually, I have prepared these 3 instructions for you to just download
but the admin here doesn't allow links from outside,
I don't understand why external links are prohibited, even though it is to make it easier for Jellyfin users themselves
so you have to create the 3 programs yourself, each in Notepad with the .bat extension.
Or if you want to make 2 programs into 1 command, you can copy the code below
change the underscore to a space and create a folder
save with the file name .bat
Code:
@echo off
setlocal enabledelayedexpansion
for %%a in (*_*) do (
set file=%%a
ren "!file!" "!file:_= !"
)
@echo off
for %%i in (*) do (
if not "%%~ni" == "organize" (
md "%%~ni" && move "%%~i" "%%~ni"
)
)
This is to make your work easier
Hopefully this tutorial can help
thanks
by : herigrosir from indonesia