Emby、Jellyfin 和 Plex 的连接信息

  • 更新

概述

Infuse 能够连接 Emby、Jellyfin 和 Plex 服务器,并提供各种头信息,其中包括连接类型的详细信息,如 User-Agent、Product、 Version。 服务器管理员可以使用此头信息来路由和控制来自 Infuse 的请求。

连接类型

提出请求时,Infuse 将使用三种连接类型之一。

Infuse-Direct

这样,Infuse 就能直接访问服务器,并根据需要按需加载内容。 这与本地应用程序与服务器交互的方式类似。 无需预先缓存数据或全面扫描图书馆。 这是 Infuse 7.7+ 中的默认连接类型。

Infuse-Library

这是 Infuse 中使用的原始连接方法,会在 Infuse 应用程序中预先缓存来自服务器的数据。 在 Infuse 7.7+ 中,这是一种可选的连接类型。

Infuse-Download

从服务器下载文件供离线使用时,将使用这种连接类型。

在 7.7 之前的版本中,所有请求都使用 "Infuse" 连接类型。

申请示例

Emby/Jellyfin

GET Request HTTP/1.1
Host: IP:port
X-Emby-Authorization: MediaBrowser Token="#####", Client="Infuse-Direct", Version="7.7", Device="####", DeviceId="###-#-###"
Accept: application/json
User-Agent: Infuse-Direct/7.7
Accept-Language: en-US,en-GB;q=0.9,en;q=0.8
Accept-Encoding: gzip, deflate
Connection: keep-alive

Plex

GET Request HTTP/1.1
Host: IP:port
Accept: application/json
X-Plex-Device: ####
X-Plex-Container-Start: 0
X-Plex-Platform: ###
X-Plex-Product: Infuse-Direct
X-Plex-Client-Identifier: ####-#-###
X-Plex-Container-Size: 2000
Accept-Language: en-US,en-GB;q=0.9,en;q=0.8
Accept-Encoding: gzip, deflate
X-Plex-Device-Name: ###
X-Plex-Version: 7.7
User-Agent: Infuse-Direct/7.7
Connection: keep-alive
X-Plex-Token: ##########
分享这篇文章

这篇文章有帮助吗?

4 人中有 2 人觉得有帮助

还有其它问题?提交请求