You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Kodi电影库导入视频:元数据标题未生效的问题咨询

Answers to Your Kodi Metadata Questions

Let’s tackle your two core questions with practical, hands-on advice—since I’ve wrestled with Kodi’s scraper logic and metadata quirks plenty of times myself.

1. What’s the actual role of title metadata in MP4/MKV files for Kodi?

First, it’s important to understand Kodi’s default scanning priority:

  • By default, Kodi’s scrapers (like TheMovieDB) prioritize filename/folder structure over embedded file metadata. It will first try to parse movie names, years, and other details directly from your filenames before falling back to embedded tags.
  • The embedded title metadata serves two key purposes:
    • It acts as a fallback when Kodi can’t scrape info from the filename (e.g., if your filename is overly messy or lacks clear identifiers like a release year).
    • It’s used to display the movie name in Kodi’s file browser (not just the library view) and in cases where you disable online scraping entirely.
  • Also, once Kodi has cached a recognition result for a file (like your Blade.mkv being tagged as Blade), changing the embedded metadata won’t automatically update the library—you need to manually refresh the entry or clear the library cache to trigger a re-scan.

2. Can you keep your custom filename rules and get Kodi to recognize files correctly without NFO files?

Absolutely! You just need to tweak a few Kodi settings and ensure your embedded metadata is complete. Here’s how:

Step 1: Adjust scraper priority to prioritize embedded metadata

Kodi lets you tell scrapers to use file metadata first. Here’s how to set this up:

  • Go to Settings > Media > Videos
  • Select your video source, click Edit > Content
  • Choose your scraper (e.g., The Movie Database) and open its Settings
  • Look for an option like "Prefer embedded metadata" or "Use file tags for title/year" (the exact wording varies slightly by Kodi version) and enable it. This tells Kodi to check your embedded title/year before trying to parse the filename.

Step 2: Add more complete metadata (not just title)

Kodi’s scrapers rely on more than just the title to match movies. Use mkvpropedit to add key details like release year, which will make matching far more reliable:

mkvpropedit "2010 Moi, moche et méchant (Despicable Me).mkv" \
  --edit info \
  --set title="Despicable Me" \
  --set date="2010"

For MP4 files, you can use ffmpeg to set similar tags:

ffmpeg -i "your-file.mp4" -metadata title="Despicable Me" -metadata date="2010" -c copy "output-file.mp4"

Step 3: Fix existing misrecognized entries

If files are already incorrectly tagged in your library (like Blade.mkv showing as Blade):

  • Navigate to the misrecognized entry in Kodi’s library
  • Press the context menu key (or right-click) and select Refresh
  • Choose "Ignore local metadata and refresh from online source" (or similar) if prompted—this will force Kodi to re-check your embedded tags and match correctly.

Step 4: Optimize your filename (while keeping your custom rule)

Your current filename format (YYYY Original Title (English Title).mkv) is actually scraper-friendly! The leading year helps Kodi narrow down matches, even if you prioritize metadata. You don’t need to change this rule—just keep using it alongside complete embedded metadata.

Bonus tip: Trigger automatic re-scans after metadata edits

After updating a file’s metadata, use the touch command to update its modification timestamp. Kodi will detect the change and re-scan the file automatically next time it checks the source:

touch "2010 Moi, moche et méchant (Despicable Me).mkv"

Final Notes

By combining adjusted scraper priorities, complete embedded metadata, and quick fixes for cached entries, you can stick to your custom filename rules and avoid NFO files entirely. Kodi’s flexibility lets you balance your personal naming preferences with reliable library organization.

内容的提问来源于stack exchange,提问作者malat

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 04:44:20