TechBuzzPro

How to Create a Library in Kodi (Add Videos & Music)

· 6 min read · Streaming & TV

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To create a library in Kodi, you add a source (a folder or drive with your media) and then scan it into the library. This organizes your movies, TV shows, and music into a clean, searchable interface with artwork and metadata. You'll need Kodi installed on your device and your media files stored on the same device, a network drive, or a USB drive.

What You'll Need

  • Kodi installed (any recent version, e.g., Kodi 19 or 20)
  • Media files (movies, TV episodes, or music) in a folder on your device, external drive, or network location
  • If using network storage, make sure it's accessible from the device running Kodi (e.g., SMB share, NFS, or UPnP)

Step-by-Step

  1. Open Kodi on your device. The main menu appears with categories like Movies, TV Shows, Music, etc.
  2. Go to the media type you want to add – for example, click Movies from the left menu. If you don't see it, scroll down to Video or Music and select it.
  3. Open the sidebar or context menu – on most skins, you'll see an option like Enter files mode or a small icon (e.g., a plus sign or three dots) in the top-left. Click it to switch to file browsing.
  4. Add a source – In file mode, click Add videos… (or Add music… for music). A window pops up asking for the path.
  5. Browse to your media folder – Click Browse and navigate to the folder containing your media. For network shares, choose Add network location and enter the server details (e.g., SMB://server/share). Select the folder and click OK.
  6. Name the source – After selecting the path, you can type a name (e.g., "My Movies") or leave it as the default. Click OK to add it.
  7. Choose content type – A dialog asks "This directory contains". Select Movies, TV Shows, or Music videos (for music, you'll do this later). Click OK.
  8. Set scraper options – The next screen lets you choose a scraper (e.g., The Movie Database for movies, TheTVDB for TV). Leave the defaults and click OK. Kodi will ask if you want to refresh the info for existing items – click Yes to scan now.
  9. Wait for the scan to finish – Kodi will fetch artwork and metadata. The time depends on the number of files and your internet speed.
  10. For music – Repeat steps 2–8 but choose Music from the main menu, then Add music…. After adding the source, select Music as the content type and choose a music scraper (like Universal Scraper or MusicBrainz).
  11. Access your library – Once scanned, go back to the main menu and select Movies or Music – you'll now see the library view with posters, fanart, and details.

Common Mistakes

  • Not naming files correctly – Kodi relies on file names to match metadata. For movies, use the format Movie Name (Year).mp4 (e.g., Inception (2010).mp4). For TV shows, use Show Name S01E01.mkv (e.g., Breaking Bad S01E01.mkv).
  • Adding a folder with mixed content – If a folder contains both movies and TV shows, Kodi will misidentify them. Keep them in separate folders and add each as a separate source.
  • Choosing the wrong scraper – For TV shows, using a movie scraper will fail. Always select the appropriate scraper for the content type.
  • Not enabling network sharing properly – If you're adding a network drive, ensure it's shared and accessible from the Kodi device (check permissions and firewall settings).
  • Forgetting to scan after adding files – If you add new files to the source folder later, you need to update the library manually (right-click the source and choose Scan for new content).

Tips

  • Use a consistent naming convention – This dramatically improves scraper accuracy. For TV shows, include season folders (e.g., Show/Season 1/Show S01E01.mkv).
  • Set up automatic library updates – In Kodi's settings, go to Settings > Media > Library and enable Update library on startup to keep it fresh.
  • Use a library cleaner – If you delete files, use the Clean library option (right-click the source or in Settings > Media > Library) to remove entries for missing files.
  • Customize the view – Press Left on the remote or keyboard to change the view type (poster, list, etc.) to your preference.
  • For large libraries – Consider using a MySQL database to share the library across multiple Kodi devices, but that's advanced and not needed for most users.

Troubleshooting

If the scan doesn't find any items:

  • Check that your files are in a supported format (common formats like MP4, MKV, AVI are fine).
  • Verify the source path is correct – go back to file mode and see if the folder appears and contains files.
  • If using a network share, test access from the Kodi device (e.g., try opening the share in Kodi's file manager).

If items are incorrectly matched (e.g., wrong movie poster):

  • Right-click the item in the library and choose Movie information (or TV show information), then click Refresh and manually search for the correct title.
  • Ensure your file name is correct – even a small typo can cause a mismatch.

If the library is empty after scanning:

  • Make sure you selected the correct content type (Movies vs. TV Shows) for the source.
  • Check that the scraper is working – try refreshing an item manually. If it fails, your internet connection may be blocked (e.g., firewall) or the scraper service is down.

If Kodi crashes or freezes during scan:

  • Restart Kodi and try again. If it persists, try scanning a smaller folder first to isolate the issue.
  • Update Kodi to the latest version from the official website or app store.

Frequently Asked Questions

Do I need to add each movie individually?

No. You add a folder as a source, and Kodi scans all files in that folder (and subfolders) automatically.

Can I add a network drive (NAS) as a source?

Yes. In the source dialog, choose Add network location and enter the server details (e.g., SMB, NFS, or UPnP). Make sure the share is accessible from the Kodi device.

Why are my TV shows not showing up in the TV Shows library?

You likely added the source as Movies instead of TV Shows. Go to the source, right-click it, and choose Change content to set it to TV Shows.

Can I add music videos to the library?

Yes. When adding a video source, choose Music videos as the content type. Kodi will scrape metadata from sites like TheAudioDB.

How do I remove a source from my library?

Go to the media type (e.g., Movies), enter file mode, right-click the source, and choose Remove source. This removes it from the library but does not delete your files.

What if my media files are on a USB drive?

Plug in the USB drive, then browse to it when adding a source (it appears as a removable drive). The drive must be connected whenever you want to access the library.