115-Openlist-strm-jellyfin-infuse play problem

I’m using 115-Openlist-strm-jellyfin-infuse media chain, But infuse can’t play (thought other players can). So I searched and found this topic. Is this a real bug?

根据我的调试发现问题在于Infuse请求时没有传递User-Agent,Openlist会使用一个默认的User-Agent去生成115直链。然后Infuse访问直链时因为User-Agent与默认的不同导致验签失败。
本地修改代码在生成直链时不使用默认UA,就用空的去生成115直链,然后Infuse就可以播放了。
但这会引入另一个问题,播放时Infuse不会缓存302的直链,所以会频繁的调用Openlist生成115直链,体验不是很好。
我的方案是使用nginx以url和UA作为cache_key,将302响应缓存,这样配置下来体验还可以。

Mod Edit For Translation:

According to my debugging, the problem is that the User-Agent is not passed in the Infuse request, and Openlist will use a default User-Agent to generate a 115 direct link. Then when Infuse accessed the direct link, the signature verification failed because the User-Agent was different from the default one.
The local modification code does not use the default UA when generating direct links, use empty to generate 115 direct links, and then Infuse can play it.
But this will introduce another problem. Infuse will not cache 302 direct links during playback, so it will frequently call Openlist to generate 115 direct links, and the experience is not very good.
My solution is to use nginx to use url and UA as cache_key to cache the 302 response. After configuration like this, the experience is OK.

Please also post in English unless you’re posting in 汉语 - Chinese - Firecore so that more users can benefit from your contributions. Also you may get an answer sooner from others who have had the same problem.

也请用英文发布,以便更多用户可以从您的贡献中受益。 此外,您可能会更快地从遇到同样问题的其他人那里得到答案。