Ccccx159 / Emby_Notifier

Emby Notifier is a media notification service for Emby Server. It utilizes Emby Server's webhooks plugin to receive notifications when new media is added. It then formats and sends the information to your Telegram channel.
31 stars 3 forks source link

一直报错无法使用 #1

Closed G2Wyn closed 3 months ago

G2Wyn commented 3 months ago

[2024-05-17 16:40:54] [my_httpd.py|worker|8] [INFO] : Emby Notifier started. [2024-05-17 16:40:54] [my_httpd.py|my_httpd|58] [INFO] : HTTP server started at http://localhost:8000 [2024-05-17 16:41:01] [media.py|process_media|214] [INFO] : Received message: Test Notification [2024-05-17 16:41:01] [media.py|process_media|216] [WARNING] : Unsupported event type: system.notificationtest

Ccccx159 commented 3 months ago

[2024-05-17 16:40:54] [my_httpd.py|worker|8] [INFO] : Emby Notifier started. [2024-05-17 16:40:54] [my_httpd.py|my_httpd|58] [INFO] : HTTP server started at http://localhost:8000 [2024-05-17 16:41:01] [media.py|process_media|214] [INFO] : Received message: Test Notification [2024-05-17 16:41:01] [media.py|process_media|216] [WARNING] : Unsupported event type: system.notificationtest

从这段日志中无法得到任何 ERROR 信息,请提供一下信息:

  1. Emby Notifier 的版本号
  2. Emby Server 的版本号
  3. 运行的命令
  4. 贴出 ERROR 部分报错日志,可以的话,请将 LOG_LEVEL 设置为 DEBUG,并贴出完整日志(请注意信息脱敏)

谢谢~

G2Wyn commented 3 months ago

NOtifier是docker得最新版 EMBY是4.8.3.0 使用的docker compost命令是: version: '3' services: emby_notifier_tg: build: context: . dockerfile: dockerfile image: b1gfac3c4t/emby_notifier_tg:latest environment:

Debug日志是: Checking environment variables... emby_notifier_tg_1 | TMDB_API_TOKEN: (req) emby_notifier_tg_1 | TVDB_API_KEY: (req) <B**********103> emby_notifier_tg_1 | TG_BOT_TOKEN: (req) <69***********FCS8Q> emby_notifier_tg_1 | TG_CHAT_ID: (req) <-10************00> emby_notifier_tg_1 | LOG_LEVEL: (opt) DEBUG emby_notifier_tg_1 | LOG_EXPORT: (opt) False emby_notifier_tg_1 | LOG_PATH: (opt) /var/tmp/emby_notifier_tg/ emby_notifier_tg_1 | [2024-05-17 17:04:20] [my_httpd.py|worker|8] [INFO] : Emby Notifier started. emby_notifier_tg_1 | [2024-05-17 17:04:20] [my_httpd.py|my_httpd|58] [INFO] : HTTP server started at http://localhost:8000 emby_notifier_tg_1 | [2024-05-17 17:05:19] [my_httpd.py|handle_post|23] [DEBUG] : {"Title":"Test Notification","Description":"Test Notification Description","Date":"2024-05-17T09:05:12.1244061Z","Event":"system.notificationtest","Server":{"Name":"飞跃彩虹","Id":"747c7e46274d4415811b9243c7a0753f","Version":"4.8.3.0"}} emby_notifier_tg_1 | [2024-05-17 17:05:19] [my_httpd.py|worker|11] [DEBUG] : Worker received message:{"Title":"Test Notification","Description":"Test Notification Description","Date":"2024-05-17T09:05:12.1244061Z","Event":"system.notificationtest","Server":{"Name":"飞跃彩虹","Id":"747c7e46274d4415811b9243c7a0753f","Version":"4.8.3.0"}} emby_notifier_tg_1 | [2024-05-17 17:05:19] [media.py|process_media|214] [INFO] : Received message: Test Notification emby_notifier_tg_1 | [2024-05-17 17:05:19] [media.py|process_media|216] [WARNING] : Unsupported event type: system.notificationtest

Ccccx159 commented 3 months ago

注意一下,日志内容里面的 BOT token 和 chat id 没有脱敏哦~

还有我想了解一下,你是如何得出当前报错无法使用这个结论的?我从你的日志中没有看到任何 error 的日志信息。

emby_notifier_tg_1 | [2024-05-17 17:05:19] [media.py|process_media|216] [WARNING] : Unsupported event type: system.notificationtest

这个 warning 是正常的处理,因为你点击了 Emby Server 控制面板中的测试按钮,对测试事件的一个响应。

Emby Notifier 是针对新增影片事件的服务,对媒体库中已经存在的影片是无法感知的。你可以向媒体库中新增一个影片,然后点击控制台中的扫描媒体库 “Scan media library”,触发扫库后,观察 tg 是否正常收到推送消息,如果没有的话,再检查一下日志