The list of posters that I had generated from the corrupted database contains the name of the movie and the Internal ID...
Forget about the "Internal ID"—it has nothing to do with this process and won't help you.
I have tried that but no export seem to give me any image path...
Neither will this. Poster paths cannot be exported or imported.
The only tool available for importing images is IMGbyID. It can only work if the image is named by ID, and the new database has the same ID assigned to the target movie. This is not the case illustrated by your two text files—
the ID's do not match.
Hopefully, you still have a copy of the corrupt database—with the images saved in the database. You can then start over and...
1. Delete any existing external images.
2.
Reindex movies.
3. Change the option to save images outside the database.
4. Export the data and re-import to create a new database (with the same ID's!)
5. Rename the images from [Title]_[ID].jpg to [ID].jpg.
6. Use IMGbyID to import the images.
Alternatively, use the new database and external images you have now, but rename the images using the current (i.e., correct ID)...
1.
Reindex movies—to ensure they all have a unique ID.
2. Export a list of [ID] and [Title], and import this into Excel.
3. Import
poster list.txt (assuming this is an accurate list of the externally saved images) into Excel; based on the "_" character, extract [Title] to a new column.
4. In the second sheet, use the
vlookup function to lookup the title in the first sheet and get the ID.
5. In a new column, create a batch command to rename the image file (i.e., "rename [original name] [ID].jpg").
6. Copy the batch command column to a text file, rename that file with a .BAT extension and run it in the image directory.
7. Use IMGbyID to import the images.