跳至主内容
非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

本地 .nfo 元数据

Jellyfin 能够读取和写入本地的 .nfo 元数据文件,用于与其他程序或工具之间导入导出元数据。

.nfo 文件命名规范

为确保 Jellyfin 能正确识别 .nfo 文件,必须遵循特定命名规则。下表将指导您进行命名。

Media TypeFilename
Moviesmovie.nfo, VIDEO_TS.nfo or for DVDs <filename of the movie>.nfo
TV Showstvshow.nfo
TV Seasonseason.nfo
Episode<filename of the episode>.nfo
Music Artistartist.nfo
Music Albumalbum.nfo
Music Videosee Movies

从 .nfo 文件读取元数据

Jellyfin 支持通用 .nfo 元数据标签集,以下列表可能未涵盖全部标签。

注意

若多个标签映射到相同的 Jellyfin 内部数据(如 plotreview),则文件中最后出现的标签具有优先权。

备注

当前无法禁用 .nfo 元数据功能。本地元数据始终会被读取,且优先级高于 TMDb 等远程元数据提供源。

备注

用户数据导入仅支持单一用户。该用户可在 .nfo 设置中进行配置。

TagNote
name
titlesame as name
localtitlesame as name
dateadded
originaltitle
sortname
criticrating
sorttitle
plot
biographysame as plot
reviewsame as plot
language
watchedplease see the note about user data
playcountplease see the note about user data
lastplayedplease see the note about user data
countrycode
lockedfields
tagline
country
mpaa
customrating
runtime
aspectratio
lockdata
studiomultiple tags allowed
directormultiple tags allowed
creditsmultiple tags allowed
writermultiple tags allowed
actormultiple tags allowed
trailerkodi format
displayorder
year
ratingsame as customrating
ratingsmultiple child tags allowed; name attribute of each tag will specify whether the rating is critics or community rating
aired
formed
premiered
releasedate
enddate
genremultiple tags allowed. These tags will be ignored for music albums and music artists.
tagmultiple tags allowed
stylemultiple tags allowed
fileinfo
uniqueidtype attribute specifies id provider
thumbplease see the section about images
fanartplease see the section about images

同时支持遵循 <PROVIDER_NAME+id> 格式的提供商 ID 标签。

您还可以通过 .nfo 文件帮助 Jellyfin 识别媒体内容。只需输入 IMDb、TMDb 或 TVDb 链接,即可将媒体关联至特定提供商 ID。

有关 .nfo 文件的更多信息,请参阅 Kodi 维基

将元数据写入 .nfo 文件

Jellyfin 支持将元数据写入 .nfo 文件。启用此功能需在媒体库设置中选择 "Nfo saver"。写入过程中支持保存以下标签:

.nfo tagNote
title
idIMDb id for movies, TVDb id for tv shows,
originaltitle
seasonnumberonly for tv show seasons
showtitleonly for tv show episodes
episodeonly for tv show episode
seasononly for tv show episode
airedonly for tv show episode
airsafter_seasononly for tv show episode
airsbefore_episodeonly for tv show episode
airsbefore_seasononly for tv show episode
displayepisodeonly for tv show episode; which episode this special airs before
displayseasononly for tv show episode; season the special aired in
directornew tag for each director
writernew tag for each writer
creditsnew tag for each credit
trailerYouTube URL in the Kodi format plugin://plugin.video.youtube/?action=play_video&videoid=<Youtube Video ID>
rating
year
sorttitle
mpaa
aspectratio
dateaddedin UTC
collectionnumberTMDb collection id
setcollection name; only for movies
imdb_idonly for TV shows
imdbidfor all other media types
tvdbid
tmdbid
language
countrycode
formedonly for music artists
premiered
enddate
releasedate
criticrating
runtime
countrynew tag for each production country
genrenew tag for each genre
studionew tag for each studio
disbandedonly for music artists
audiodbartistidonly for music
audiodbalbumidonly for
zap2itidonly for tv shows
musicbrainzalbumidonly for music
musicbrainzalbumartistidonly for music
musicbrainzartistidonly for music
musicbrainzreleasegroupidonly for music
tvrageid
artonly if save image paths is enabled in the nfo settings; backdrops with child element fanart, posters with the tag poster

额外提供商 ID 同样受支持,导出时将使用 <providernameid> 标签格式。

.nfo 文件中的图像路径与 URL

使用 .nfo 文件管理图像时需注意以下细节:

  • Jellyfin 每种艺术作品类型仅支持单张图像,即仅使用每种类型首个 thumb 标签

  • 通过 .nfo 文件定义的本地路径或 URL 艺术作品,优先级高于远程图像源及媒体文件夹中的图像