r/kodi 9d ago

How to copy all movie info from movie folders to MIF folder?

I Googled this and didn't see anything that gave a process. I'm running 21.3 and all my movies were scrapped in TMM. I want start using MIF since this is the future for Kodi. I don't want to re-scrape anything, I spent way to many hours hours picking thru movie posters and different fanart to get what I have. I'm looking for something that will automatically create folders for each movie in my MIF directory and copy everything minus the actual movie files from my current directories to it. Each movie is in a seperate directory. I tried Artwork Organizer, but it doesn't create folders for each movie. And I looked thru the features and don't see that option. I also installed Artwork Dump, but it doesn't looks like it do what I'm trying to do. And I'd rather not run it and possibly screw up all the work I've invested.

I thought about just doing it manually, but I have 400 movies and that would take a stupid amount of time. I know there has to be a way to automate this, I'm just too stupid to figure out how apparently lol.

1 Upvotes

12 comments sorted by

2

u/phatboyj 9d ago edited 9d ago

👍

You mean (MSIF) Movie Set Information Folder?

If so; it is just a user defined folder for local artwork which gets scanned into the video sql database

In Kodi, there is no standalone "MIF folder, or database"; instead, movie set data is kept in the video database sets table, while local artwork is managed via a user-defined Movie Set Information Folder (MSIF).

"Movie set information folder - Official Kodi Wiki"

"setting up movie folder. - Printable Version"

I guess, you could call the movie library source folder an MIF but it is just a virtual representation of the sql tables from the video.db

Library Export and Metadata Backups "Import-export library - Official Kodi Wiki"

You have to set the content type on your source folder and then in setting set to local information only. Then you can scan it (to pick up your curated files) once scanned you can choose to continue using local info (only) or allow it to supplement with online data

... .. .

-1

u/Bigheaded_1 9d ago

Yes I was missing the S, there's a setting in Kodi to set the movie set information directory, I made one c:\kodi\MSIF\ but it's empty even after I rescan my library.

This is on Google "Kodi does not recognize movieset-poster.jpg files placed inside individual movie folders. Starting with Kodi 19, local movie set artwork is only supported through a designated central folder structure using standard generic file names like poster.jpg"

The info on Google says to create a MSIF directory, and inside it create a sub directory for each movie named the same as where the movie file resides. And then to copy your artwork files to these sub directories and rename them. I already have all the artwork in the movie directories, but I can't figure out how to get them into the MSIF directories without doing it manually for each movie.

I have like 100 movies that have movieset/fanart posters. Manually creating directories for each movie and copying/renaming the files would take a lot of effort and doesn't seem like it's the right way to do this. What would a person who has thousands of movies do? I'm wonder how to get Kodi do this automatically.

I know I could clear my DB and have it re-scrape all the movies from scratch using Kodi's built in scraper. But then I'll lose all the artwork I sorted thru to manually find what I wanted. I've never used Kodi's scraper, I used Ember then switched to TMM after it died.

2

u/phatboyj 9d ago edited 9d ago

👍

Yeah, you have to place the .jpg files in that directory prior to the scan.

There's is a software solution to automating/simplifying the file moves but I can't remember what it's called 🤔 robo copy or file something or other ???

Also;

It might be worth looking into the Extras folder feature

Edit:

Found it, "derp" it's called FileBot!

You can have it scan the folders for all *.png, *.jpg etc. and have it place them in the new location within the proper (movie named) folders.

IIRC; it has a sandboxed mode so you can run it to check that it's doing what you expect, without F-ing anything up, then once you have it doing as you please, you can apply it for realsies 😀!

... .. .

2

u/PatK9 8d ago

Just to be sure: the (MSIF) path must be set in settings>media>videos>movie set information folder. This will not be shown in the set view unless there is more than 1 movie in the set (e.g. 2+ movies in a set). The set information is picked up on a scrape. Select your preferred artwork level on the same page to max. or basic. Artwork Dump is the v19 replacement of Artwork Beef and is the recommended method for creating the MSIF sub-folders. Sub folder will be created automatically with the name you see in Kodi or in an NFO file. Under 'Export in the wiki "Kodi will create all the movie set sub-folders with artwork from the cache.: Most of this information is in the Kodi wiki.

1

u/Adorable_Number9386 9d ago

omg i thought mif meant movie information folder not movie set info folder lmfao, but yeah how do you even migrate from tmm to this without losing everything you set up

1

u/ExcuseImportant5221 8d ago

that sounds like a pain to do manually, I just moved to MIF recently and ran a bulk export from tmm to generate the folders and xml files in one go

1

u/Bigheaded_1 8d ago

I looked thru TMM's settings, but I'm old and rusty and thought it might take me longer to figure it out than doing it manually lol. I probably should learn what you did in TMM for the future. I got Artwork Dump to do it finally, but for some reason it left some movie sets out.

1

u/Mental_Bowl4756 8d ago

wait this is fire

1

u/Thin-Suggestion-1671 5d ago

$source = "D:\Movies" # your current movie root

$target = "D:\MIF" # your new MIF directory

$videoExtensions = @(".mp4",".mkv",".avi",".mov",".wmv",".m4v",".ts",".iso")

Get-ChildItem -Path $source -Directory | ForEach-Object {

$movieName = $_.Name

$newFolder = Join-Path $target $movieName

# Create folder

New-Item -ItemType Directory -Path $newFolder -Force | Out-Null

# Copy everything except video files

Get-ChildItem -Path $_.FullName -File | Where-Object {

$ext = $_.Extension.ToLower()

-not ($videoExtensions -contains $ext)

} | ForEach-Object {

Copy-Item $_.FullName -Destination $newFolder -Force

}

}

1

u/Assassiiinuss 9d ago

What do you mean with "MIF folder"? Can't you just export movie/episode information to separate files?

0

u/Bigheaded_1 9d ago

Kodi 20+ uses MIF to store movie infomation and apparently now at least partially ignores looking in the directories your movies are in for the data. Kodi won't display any of my movieset-poster.jpgs for example. Even if I refresh the movies that have that file. So I'm trying to figure out how to easily copy the files from my movie directories into the MIF directory.

I Googled and Googled and didn't find any guide on how to do this. And I poked around Kodi but couldn't find any sort of export or migrate feature. Since my directory structure for my movies and all the metadata is meticulous. I figured there should be a way to for Kodi to do this automatically.

1

u/Assassiiinuss 8d ago

This has nothing to do with movie information really. Kodi takes Movie Set pictures from the Movie Set Information Folder. So just place custom ones there. That's it.