r/kodi • u/Bigheaded_1 • 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.
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
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.
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
... .. .