Jump to content

Add bulk actor images


lalajee

Recommended Posts

lalajee

Hi, Is it possible to add bulk images of the actors from a local machine.

I install web server and put all my images into that web server then created a powershell script to go throught folder and create a xml file with all actors and location for the actors

I have try following but that didnt work.

$p = "C:\ESD\xampp\htdocs\img" #Read-Host "Enter Path"

$t="<?xml version='1.0' encoding='utf-8' standalone='yes'?>
       <movie>
        <title>File</title>
"

Get-ChildItem -LiteralPath $p  |
    ForEach-Object {
        
        $name = $_.BaseName
        $image = $_.Name -replace ' ', '%20'

        $t += "<actor><name>$name</name><type>Actor</type>
                <thumb>http://192.168.1.208/img/$image</thumb>
                </actor>`n"
        $image=""
    }

$t +="`n</movie>"

New-Item -Path "C:\ESD" -Name "File.nfo" -Type "file" -Value $t -Force

Is they any other way I can do this. All my actors are not on imdb or any other api site

 

Link to comment
Share on other sites

I'm not sure I follow what you are trying to accomplish.  Emby Server is going to want to download the images itself.

Link to comment
Share on other sites

Happy2Play

You can use the People backup plugin to restore local images to people that are already in the library.db.

Link to comment
Share on other sites

lalajee
1 hour ago, Happy2Play said:

You can use the People backup plugin to restore local images to people that are already in the library.db.

How do i use this plugin. I try it and it didnt work

Link to comment
Share on other sites

Happy2Play

All it does is push the image by name back into the name in the database.  If the person is not in the database then it will not do anything.  

So the question would be what did not work?

  • Like 1
Link to comment
Share on other sites

lalajee
32 minutes ago, Happy2Play said:

All it does is push the image by name back into the name in the database.  If the person is not in the database then it will not do anything.  

So the question would be what did not work?

If you have images with name it doesnt work.

 

However if you have folder a-z and then name of the actor as folder in alphabet, inside the actor folder you need to have image name as poster

e.g.

Actor name James Kelly

So the folders will look like this

J-> James Kelly -> poster.jpg

 

 

Once I made this change all of the actors images appear in my server. 

 

Edited by lalajee
Link to comment
Share on other sites

Happy2Play

Okay yes Mediabrowser/Emby changed to the people A-Z folders years ago.  Not a coder but would assume the specific structure is being look for.

But glad you got it working.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...