Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议:增加生成nfo信息的选项 #58

Open
orangeff opened this issue Jan 20, 2021 · 7 comments
Open

建议:增加生成nfo信息的选项 #58

orangeff opened this issue Jan 20, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@orangeff
Copy link

orangeff commented Jan 20, 2021

卑微建议一下

在下载视频的时候生成一个nfo文件,nfo文件包含视频上传时间,表演者,表演者头像链接。该nfo文件配合poster图像导入倒Plex中可以达到海报墙的效果
以BV1754y1s7vd为例
image

  • nfo文件
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<movie>
  <title>超辣舔手舞!!《泫雅-Lip&Hip》❤雨乃❤</title>
  <year>2021</year>
  <premiered>2021-01-16</premiered>
  <plot>录制前准备了很多很多的一个舞蹈,已经想跳这支舞想了几百年了!今年终于终于把她实现啦~能把脑海中的一些画面还原出来真滴超满足!不过还是有很多不足和遗憾~舞蹈其实可以更好的></plot>
  <runtime>1</runtime>
  <id>BV1754y1s7vd</id>
  <genre>韩舞</genre>
  <genre>明星舞蹈</genre>
  <genre>舞蹈</genre>
  <genre>明星舞蹈</genre>
  <genre>舞蹈</genre>
  <genre>泫雅</genre>
  <genre>雨乃</genre>
  <genre>lip&hip</genre>
  <actor>
    <name>雨乃哟</name>
    <role>up</role>
    <thumb>https://i2.hdslb.com/bfs/face/b86e40f345788bf1434b463018c8e752bfd88b10.jpg@128w_128h_1o.webp</thumb>
  </actor>
</movie>
  • 文件结构
    image
  • Plex海报
    image
    image
    image
@orangeff orangeff added the bug Something isn't working label Jan 20, 2021
@lifegpc lifegpc added enhancement New feature or request and removed bug Something isn't working labels Feb 19, 2021
@lifegpc
Copy link
Owner

lifegpc commented Feb 19, 2021

@orangeff
换行需要进行转换吗?
image

@orangeff
Copy link
Author

@orangeff
换行需要进行转换吗?
image

大佬牛逼,这么快就弄出来了,好像是需要换行的

@orangeff
Copy link
Author

@orangeff
换行需要进行转换吗?
image

我研究了一下,如果是多P视频,想要plex正确识别并自动切换的话视频文件名需要命名为videotitle - pt[0-9].ext,整个目录下需要一个videotitle-poster.jpg才能识别封面
image
image
image

@lifegpc
Copy link
Owner

lifegpc commented Feb 21, 2021

video title是要与NFO文件中的title一致吗?

@orangeff
Copy link
Author

video title是要与NFO文件中的title一致吗?

这个倒是不用,plex的识别逻辑是文件名中videotitle保持一致
例如一个2P视频则需要以下文件则能正常识别(ass文件可选,pt*前-需两边空格)
videotitle - pt1.mkv
videotitle - pt1.zh.ass

videotitle - pt2.mkv
videotitle - pt2.zh.ass

videotitle-poster.jpg
videotitle.nfo

@lifegpc
Copy link
Owner

lifegpc commented Feb 21, 2021

当前代码是为每1P生成NFO文件

@orangeff
Copy link
Author

orangeff commented Feb 21, 2021

当前代码是为每1P生成NFO文件

每P的nfo差别好像不大,我的方法是直接复制一个nfo并重命名为videotitle.nfo
if [ -f *pt1.nfo ];then
cp -f *pt1.nfo "$video_title.nfo"
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants