Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trailer by using Invidious #810

Open
DavidHenryThoreau opened this issue Jan 25, 2024 · 2 comments
Open

Add trailer by using Invidious #810

DavidHenryThoreau opened this issue Jan 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@DavidHenryThoreau
Copy link

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):

  • OS: Linux
  • Jellyfin Version: 10.8.13
  • Kodi Version: 20.3
  • Addon Version: 0.7.11
  • Playback Mode: Add-on & native

Additional context

@oddstr13
Copy link
Member

oddstr13 commented Feb 4, 2024

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;

def trailer(self, obj):
try:
if obj['LocalTrailer']:
trailer = self.server.jellyfin.get_local_trailers(obj['Id'])
obj['Trailer'] = "plugin://plugin.video.jellyfin/trailer?id=%s&mode=play" % trailer[0]['Id']
elif obj['Trailer']:
obj['Trailer'] = "plugin://plugin.video.youtube/play/?video_id=%s" % obj['Trailer'].rsplit('=', 1)[1]
except Exception as error:

@oddstr13 oddstr13 added the question Further information is requested label Feb 4, 2024
@DavidHenryThoreau
Copy link
Author

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

@oddstr13 oddstr13 added enhancement New feature or request and removed question Further information is requested labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants