GithubHelp home page GithubHelp logo

media_server_tools's Introduction

media_server_tools

Emby/Jellyfin/Plex 媒体中文自动同步

  1. 中文标题
  2. 媒体概述
  3. 中文人名(Plex 暂时不支持)
  4. 中文扮演(Plex 暂时不支持)
  5. 剧集概述评分图片同步
  6. 剧集组自定义同步
  7. 媒体搜刮检查是否正确(配合 NasTools)
  • 注意使用本工具需要媒体服务器本身刮削了 tmdb 的完整数据,工具只是获取原有的数据进行替换使用方式
  • 源码运行
  1. 配置文件 config/config.yaml
  2. win 下使用安装 Python3 安装过程连续点击下一步
  3. 安装依赖模块
  • python -m pip install -r requirement.txt
  1. 启动 cmd 输入 python main.py
  • exe 运行
  1. 下载发布版本
  2. 配置文件 config/config.yaml
  3. 启动 media_server_tools.exe
  • docker compose 运行
version: '3'

services:
  jd_server:
    image: sleikang/media_server_tools:latest
    container_name: media_server_tools
    environment:
      - TZ=Asia/Shanghai
    volumes:
      - /your_path/media_server_tools/log:/app/log #日志文件目录
      - /your_path/media_server_tools/config:/app/config #配置文件目录
    restart: always

  • docker run
docker run -d \
  --name media_server_tools \
  -e TZ=Asia/Shanghai \
  -v /your_path/media_server_tools/log:/app/log \
  -v /your_path/media_server_tools/config:/app/config \
  --restart always \
  sleikang/media_server_tools:latest

image image image

media_server_tools's People

Contributors

ddsderek avatar ddsrem avatar sleikang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

media_server_tools's Issues

多季描述会重复

发现有两个情况
1.一个剧有多季的有时候会只替换第一季
2.比如生死狙击和名校风暴这种,最后一季会和前面一季的描述重复,一模一样

读取不了媒体列表

环境:docker
媒体库:jellyfin
日志如下
1

按照路径访问过去得到以下
2
大佬帮忙看看~谢谢

日志报错:获取TMDB信息失败

主要是番剧。以下截取部分经过验证,在TMDB中是存在对应信息,但却报错的日志。
2023-07-26 14:57:31,263 INFO: 获取TMDB媒体[南家三姐妹]ID[56354]季ID[4]信息失败, 文件[/MediaServerTools/api/tmdb.py]行[148]异常错误:Expecting value: line 1 column 1 (char 0)
2023-07-26 15:05:57,090 INFO: 获取TMDB媒体[这样算是僵尸吗?]ID[38420]季ID[2]信息失败, 文件[/MediaServerTools/api/tmdb.py]行[148]异常错误:Expecting value: line 1 column 1 (char 0)
2023-07-26 15:08:32,947 INFO: 获取TMDB媒体[黑礁]ID[12598]季ID[1]信息失败, 文件[/MediaServerTools/api/tmdb.py]行[148]异常错误:Expecting value: line 1 column 1 (char 0)
发现过程:
最早是在其它电影中发现有部分演员名称还是英文,查看日志发现有类似报错,
2023-07-26 14:46:18,678 INFO: 获取TMDB人物[Shunichi Yoshizawa]ID[2148653]信息失败, 文件[/MediaServerTools/api/tmdb.py]行[148]异常错误:Expecting value: line 1 column 1 (char 0)
但检查后发现是TMDB里边就没有这个人。
同时发现有很多季信息失败的日志,但这些季集信息在TMDB里边都是有的。

中文扮演怎么配置

请问中文扮演如何配置

system:
checkmediasearch: true
delnotimagepeople: false
mediaserver: Emby
seasongroup:

  • "\u7EB8\u623F\u5B50|62ed7ac87d5504007e4ab046"
    taskdonespace: 1
    threadnum: 1
    updateoverview: true
    updatepeople: true
    updateseasongroup: false
    updatetime: 1

telegram-cloud-photo-size-5-6258240978246809498-y

演员名字都自动更正了,但是扮演的角色还是英文的,我看介绍是有写中文扮演

部分剧集2,3季概述和图片被替换成第1季

出现概率不高,但是特定剧集的特定季必现,我库里发现的有蛇蝎美人第2季,应召女友第2,3季,嗜血法医第8季

复现流程:
1.新建了一个全新的emby server,并按照常规命名创建了一个空的媒体文件S02E01
image

2.使用emby创建媒体库,导入刮削后,元数据和封面信息正常:
image
image

3.配置MediaTools进行刷新后,可以看到该集变成了S01E01的图片和数据:
image
image

平时用的好好的,今天运行出错,是怎么回事,日志全是这个错误

2023-07-27 12:49:29,046 INFO: 保存TMDB人物[Romyen Tangsubutra]ID[1393533]信息失败, The resource you requested could not be found.
2023-07-27 12:49:29,234 INFO: 保存TMDB人物[James Joseph O'Neil]ID[154887]信息失败, The resource you requested could not be found.
2023-07-27 12:49:29,251 INFO: 获取TMDB人物[Zhu Zongwei]ID[3652475]信息失败, The resource you requested could not be found.
2023-07-27 12:49:29,508 INFO: 获取TMDB人物[Zhu Zongwei]ID[3652475]信息失败, The resource you requested could not be found.
2023-07-27 12:49:29,565 INFO: 保存TMDB人物[Nadia Shazana]ID[2068481]信息失败, The resource you requested could not be found.
2023-07-27 12:49:29,758 INFO: 获取TMDB人物[Zhu Zongwei]ID[3652475]信息失败, The resource you requested could not be found.
2023-07-27 12:49:30,019 INFO: 获取TMDB人物[Zhu Zongwei]ID[3652475]信息失败, The resource you requested could not be found.
2023-07-27 12:49:30,222 INFO: 保存TMDB人物[Mario Tufino]ID[1393534]信息失败, The resource you requested could not be found.
2023-07-27 12:49:30,273 INFO: 保存TMDB人物[Carmen Plumb]ID[179857]信息失败, The resource you requested could not be found.
2023-07-27 12:49:30,458 INFO: 保存TMDB人物[Shawn Storer]ID[115582]信息失败, The resource you requested could not be found.
2023-07-27 12:49:30,526 INFO: 保存TMDB人物[Adam Jamal Craig]ID[1230849]信息失败, The resource you requested could not be found.
2023-07-27 12:49:30,691 INFO: 保存TMDB人物[David Talbot]ID[1239413]信息失败, The resource you requested could not be found.
2023-07-27 12:49:30,837 INFO: 保存TMDB人物[Charles Hirsch]ID[2068482]信息失败, The resource you requested could not be found.
2023-07-27 12:49:31,337 INFO: 保存TMDB人物[Jack Samson]ID[1832678]信息失败, The resource you requested could not be found.

希望作者大大能出有控制台的版本

非常感谢作者大大得代码,解决了emby中文得问题,真心不错。就是有时候信息更新了,要重新跑一遍,能否出一个控制台,可以罗列媒体文件,手动单个进行补充更新,感谢!好人一生平安~

能否新增影片过滤设置

小猪佩奇第8和第9季,TMDB没有相关信息,就持续一直在报错。能否通过设置,将长期报错无法更新信息的影片过滤掉
23/07/14 下午1:15:17
2023-07-14 13:15:17,104 INFO: 获取TMDB媒体[小猪佩奇]ID[12225]季ID[8]信息失败, The resource you requested could not be found.
2023/07/14 下午1:15:17
2023-07-14 13:15:17,466 INFO: 获取TMDB媒体[小猪佩奇]ID[12225]季ID[8]信息失败, The resource you requested could not be found.

代理问题

可以加个代理设置吗,docker下不好操作

项目建议

配置文件

使用config.yaml.default文件(每次发布新版本时做出的改动都体现在这个文件),在每次程序启动时判断目录下是否存在config.yaml文件,没有就利用config.yaml.default创建,否则就读取原有config.yaml文件配置内容,填入新的config.yaml文件(使用新config.yaml.default模板),这样就可以在更新时保留旧配置信息。

数据库文件

启动时应该判断是否有data.db文件,否则程序启动时会自动创建一个空的data.db影响正常运行,其余思路与上一个建议相同。
👍(程序很实用)

尊敬的开发者大大,请问有如何在群晖docker部署的说明吗?

在网上搜了一圈,没有找到,我对命令行操作docker不熟悉,试探了几次都出错了……
在群晖下的docker目录下建立了文件夹EmbyChineseNameSynchronous,然后里面放了/config,里面再放config.yaml,其中按自己的配置修改了下,但log显示如下,不知道哪里弄错了,请开发者大大指点,非常感谢。
image


_____  ____  _   _  ____  

| ____|/ ___|| \ | |/ ___| 

|  _| | |    |  \| |\___ \ 

| |___| |___ | |\  | ___) |

|_____|\____||_| \_||____/ 

以PUID=0,PGID=0的身份启动程序,umask=022

2022-10-30 17:10:04,127 INFO: 开始刷新媒体库元数据

2022-10-30 17:10:04,138 INFO: 获取Emby媒体总列表失败, 异常错误:Invalid URL '/emby/Users//Items?api_key=': No scheme supplied. Perhaps you meant http:///emby/Users//Items?api_key=?

Jellyfin 获取信息失败

作者大大请问下,每次正常处理完一些之后就会开始,jellyfin获取任务信息失败,接着就是jellyfin媒体获取失败。请问是jellyfin的API的访问次数有限制么?有什么解决的办法么?

2023-01-27 10:23:32,320 INFO: 刷新媒体库元数据完成
2023-01-27 11:23:32,434 INFO: 开始刷新媒体库元数据
2023-01-27 11:23:32,608 INFO: 总媒体数量[1971]
2023-01-27 11:24:06,232 INFO: 媒体[致命ID]处理完成
2023-01-27 11:24:22,918 INFO: 媒体[迷魂记]处理完成
2023-01-27 11:24:27,084 INFO: 媒体[海洋]处理完成
。。。
2023-01-27 11:46:06,144 INFO: 原始人物名称[Harold Waiglein]更新为[哈拉尔德·魏格莱因]
2023-01-27 11:46:58,903 INFO: 获取Jellyfin人物信息失败, 异常错误:('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2023-01-27 11:46:58,920 INFO: 获取Jellyfin人物信息失败, 异常错误:HTTPConnectionPool(host='10.0.0.3', port=8096): Max retries exceeded with url: /Users/39408eadd65b4505a7b16cd8a16d31b0/Items/0a1dc517c07aaaf4e4a5bfb600c977d6?Fields=ChannelMappingInfo&api_key=c5481796a39d4ac89f5e2958922e61af (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d6aedd990>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-01-27 11:46:58,928 INFO: 获取Jellyfin人物信息失败, 异常错误:HTTPConnectionPool(host='10.0.0.3', port=8096): Max retries exceeded with url: /Users/39408eadd65b4505a7b16cd8a16d31b0/Items/8efa8bdba83ea41199260bd39146ffb8?Fields=ChannelMappingInfo&api_key=c5481796a39d4ac89f5e2958922e61af (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d6aedfa60>: Failed to establish a new connection: [Errno 111] Connection refused'))
。。。
2023-01-27 11:46:59,961 INFO: 媒体[辩护人]处理失败
2023-01-27 11:46:59,963 INFO: 获取Jellyfin媒体[一九一七]ID[77563d218493360f8b398aedc2698afe]信息失败, 异常错误:HTTPConnectionPool(host='10.0.0.3', port=8096): Max retries exceeded with url: /Users/39408eadd65b4505a7b16cd8a16d31b0/Items/77563d218493360f8b398aedc2698afe?Fields=ChannelMappingInfo&api_key=c5481796a39d4ac89f5e2958922e61af (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d6aedf790>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-01-27 11:46:59,964 INFO: 媒体[一九一七]处理失败
2023-01-27 11:46:59,966 INFO: 获取Jellyfin媒体[银翼杀手]ID[27aee696422b9bf03d821fb5616449b1]信息失败, 异常错误:HTTPConnectionPool(host='10.0.0.3', port=8096): Max retries exceeded with url: /Users/39408eadd65b4505a7b16cd8a16d31b0/Items/27aee696422b9bf03d821fb5616449b1?Fields=ChannelMappingInfo&api_key=c5481796a39d4ac89f5e2958922e61af (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d6aedd4b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-01-27 11:46:59,966 INFO: 媒体[银翼杀手]处理失败

配置文件增加更换 tmdb的api的功能

希望可以在配置文件里面增加自选tmdbapi的内容,目前默认的api.themoviedb.org不挂梯子的话没有办法直连,但是api.tmdb.org是可以直连的,希望可以自行选择配置,感谢大佬了。

Max retries exceeded with url

获取TMDB媒体ID[None]季ID[1]信息失败, 异常错误:HTTPSConnectionPool(host='api.themoviedb.org', port=443): Max retries exceeded with url: /3/tv/None/season/1?api_key=******************&language=zh-SG&append_to_response=alternative_titles (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f1ca818b5b0>: Failed to establish a new connection: [Errno 101] Network unreachable'))

更换了api也是这样提示,配置文件没有更改,跟之前的一样,正常工作了一周,这两天提示这个

docker 版报错

2023-08-25 10:27:50,825 INFO: 保存TMDB人物[Wang Qian]ID[1723872]信息失败, None
2023-08-25 10:27:51,034 INFO: 保存TMDB人物[Liu Zhi-Hong]ID[1723873]信息失败, None
2023-08-25 10:27:51,330 INFO: 保存TMDB人物[Tiffani Timms]ID[1915973]信息失败, None
2023-08-25 10:27:51,549 INFO: 保存TMDB人物[Mia Jiao]ID[1723875]信息失败, None

2023-08-25 10:10:30,706 INFO: 保存豆瓣媒体[我的少女时代]ID[26366465]信息失败, 异常错误:HTTPSConnectionPool(host='frodo.douban.com', port=443): Max retries exceeded with url: /api/v2/search/weixin?q=3D%E8%82%89%E8%92%B2%E5%9B%A2%E4%B9%8B%E6%9E%81%E4%B9%90%E5%AE%9D%E9%89%B4&start=0&count=3&apikey=0ac44ae016490db2204ce0a042db2916 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f7d5b5534f0>: Failed to resolve 'frodo.douban.com' ([Errno -3] Try again)"))

docker 网络模式必须是host吗?

1.用的docker compose default网络,启动起来发现后台一点日志输出也没有,是因为网络没用host的原因吗
2.nastool跟jellyfin都搭建在同一个default网络之下,如果不用host,请问这样还需要映射端口吗?

version: "3"
services:
  MediaServerTools:
    container_name: MediaServerTools
    volumes:
      - /volume1/docker/MediaServerTools:/config
      略
    environment:
        - TZ=Asia/Shanghai
        - PUID=1026
        - PGID=100
        - UMASK=022
        - MediaServerTools_AUTO_UPDATE=true # 自动更新
        - MediaServerTools_CN_UPDATE=true # 使用国内源更新
    logging:
      driver: json-file
      options:
        max-size: 5m
    image: 'ddsderek/mediaservertools:latest'

  nas-tools:
    image: nastool/nas-tools:latest
    ports:
      - 3000:3000
    volumes:
      - /volume1/docker/nastools:/config
      略
    environment:
      - PUID=1026 # 想切换为哪个用户来运行程序,该用户的uid
      - PGID=100 # 想切换为哪个用户来运行程序,该用户的gid
      - UMASK=000 # 掩码权限,默认000,可以考虑设置为022
      - NASTOOL_AUTO_UPDATE=false # 如需在启动容器时自动升级程程序请设置为true
      - NASTOOL_CN_UPDATE=false # 如果开启了容器启动自动升级程序,并且网络不太友好时,可以设置为true,会使用国内源进行软件更新
      #- REPO_URL=https://ghproxy.com/https://github.com/NAStool/nas-tools.git # 当你访问github网络很差时,可以考虑解释本行注释
      - TZ=Asia/Shanghai # 时区
    restart: always
    hostname: nas-tools
    container_name: nas-tools

同一演员被翻译成不同中文名字

环境:
群晖docker,
nyanmikas/jellyfin,10.8.6
nas-tools,2.4.2

如图,斯嘉丽约翰逊会被翻译成两个不同的中文名字,这种是哪方面的问题呢?
顺便感谢大佬支持jellyfin!

ef112c145fa19d48e3fda84bf376f14
f4b2a9eb6262e1c637ba6cadb896ee4

运行,日志报错基本都是:获取TMDB人物**信息失败, 异常错误,Max retries exceeded with url:Connection to api.themoviedb.org timed out.

  • 2023-09-13 08:25:32,300 INFO: 获取TMDB人物[Patrick Jordan]ID[1244314]信息失败, 异常错误:HTTPSConnectionPool(host='api.themoviedb.org', port=443): Max retries exceeded with url: /3/person/1244314?api_key=******&language=zh-TW (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6e95170070>, 'Connection to api.themoviedb.org timed out. (connect timeout=None)'))
  • 2023-09-13 08:25:32,172 INFO: 获取TMDB人物[Shirin Caiola]ID[1185594]信息失败, 异常错误:HTTPSConnectionPool(host='api.themoviedb.org', port=443): Max retries exceeded with url: /3/person/1185594?api_key=******&language=zh-SG (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6e95173250>, 'Connection to api.themoviedb.org timed out. (connect timeout=None)'))
  • 2023-09-13 08:25:31,532 INFO: 获取TMDB人物[Don Sinnar]ID[2691583]信息失败, 异常错误:HTTPSConnectionPool(host='api.themoviedb.org', port=443): Max retries exceeded with url: /3/person/2691583?api_key=******&language=zh-TW (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6e94434910>, 'Connection to api.themoviedb.org timed out. (connect timeout=None)'))
  • 2023-09-13 08:24:11,276 INFO: 获取TMDB人物[Dan Amboyer]ID[1190987]信息失败, 异常错误:HTTPSConnectionPool(host='api.themoviedb.org', port=443): Max retries exceeded with url: /3/person/1190987?api_key=******&language=zh-SG (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6e94434b80>, 'Connection to api.themoviedb.org timed out. (connect timeout=None)'))
  • 2023-09-13 08:24:09,996 INFO: 获取TMDB人物[Marshall Dancing Elk Lucas]ID[3865549]信息失败, 异常错误:HTTPSConnectionPool(host='api.themoviedb.org', port=443): Max retries exceeded with url: /3/person/3865549?api_key=******&language=zh-CN (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6e94435db0>, 'Connection to api.themoviedb.org timed out. (connect timeout=None)'))
  • 2023-09-13 08:23:25,068 INFO: 获取TMDB人物[Patrick Jordan]ID[1244314]信息失败, 异常错误:HTTPSConnectionPool(host='api.themoviedb.org', port=443): Max retries exceeded with url: /3/person/1244314?api_key=******&language=zh-SG (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6e94437340>, 'Connection to api.themoviedb.org timed out. (connect timeout=None)'))

emby中TMDB能正常刮削

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.