jellyfin / jellyfin-kodi

Jellyfin Plugin for Kodi
https://jellyfin.org
GNU General Public License v3.0
860 stars 113 forks source link

Add trailer by using Invidious #810

Open DavidHenryThoreau opened 10 months ago

DavidHenryThoreau commented 10 months ago

Describe the bug It would be nice to use invidious https://invidious.io/ (you can found invidious instances here => https://redirect.invidious.io/ ) instead of youtube to display movie's trailer

To Reproduce

  1. Go to movie
  2. Click on trailer
  3. The trailer come from invidous

Expected behavior Invidious is an Open Source YoutTube alternative which respects privacy

Logs

Screenshots

System (please complete the following information):

Additional context

oddstr13 commented 10 months ago

Does Jellyfin itself support this? Does Kodi have an addon for playing this?

The only reference to YouTube I see in this codebase is the following;

https://github.com/jellyfin/jellyfin-kodi/blob/f1cd38a53049baae65f5b26a1ca0f70205d627ef/jellyfin_kodi/objects/movies.py#L163-L173

DavidHenryThoreau commented 9 months ago

As far as I know Jellyfin only supports YouTube in order to watch trailers.

Jellyfin only redirects to YouTube. The Jellyfin addon for Kodi redirects to plugin.video.youtube. Maybe if you add another if condition in order to redirect to plugin.video.invidious API path might be the same ;)

Another information plugin Invidious for Kodi : https://github.com/lekma/plugin.video.invidious