jellyfin-kodi icon indicating copy to clipboard operation
jellyfin-kodi copied to clipboard

Playback series from integrated library does not work

Open exaveal opened this issue 2 years ago • 12 comments

Describe the bug On a clean Kodi Installation I install the JellyFin Plugin running in AddOn Mode. Syncing libraries is working fine, also for the TV shows. Selecting a tv show from the home screen does take several seconds to list the seasons. Very annoying but okay. Then when selecting a season it takes again several seconds to list the episodes. Also annoying but okay. When now starting to play a episode, an error showss up "General Error. Please see Log files" (something like this). Movies, Music, Musicvideos are working fine. It's also working to watch TV shows when going via the menu items "TV shows" and selecting the TV show>Season>Episode directly. Then there is also no waiting for selection season & episode.

To Reproduce

  1. Select a TV show on the home screen, e.g. from "Started watching" (do not open TV shows from menu, this works!)
  2. Click on a TV show
  3. Click on "Search" to select a season > takes several seconds
  4. Click on a episode > takes several seconds
  5. Start playback > Error shows up

Expected behavior Video playback starts, as it does for movies or tv shows selected via menu

Logs

2022-07-13 13:04:48.517 T:1570     INFO <general>: initializing python engine.
2022-07-13 13:04:49.320 T:1570     INFO <general>: JELLYFIN.__main__ -> DEBUG::default.py:18 --->[ default ]
2022-07-13 13:04:49.325 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.jellyfin.client -> DEBUG::jellyfin_kodi/jellyfin/client.py:35 JellyfinClient initializing...
2022-07-13 13:04:49.330 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.jellyfin.configuration -> DEBUG::jellyfin_kodi/jellyfin/configuration.py:25 Configuration initializing...
2022-07-13 13:04:49.335 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.jellyfin.configuration -> DEBUG::jellyfin_kodi/jellyfin/configuration.py:50 Begin http constructor.
2022-07-13 13:04:49.340 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.jellyfin.ws_client -> DEBUG::jellyfin_kodi/jellyfin/ws_client.py:34 WSClient initializing...
2022-07-13 13:04:49.345 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.jellyfin.connection_manager -> DEBUG::jellyfin_kodi/jellyfin/connection_manager.py:39 ConnectionManager initializing...
2022-07-13 13:04:49.350 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.jellyfin.credentials -> DEBUG::jellyfin_kodi/jellyfin/credentials.py:23 Credentials initializing...
2022-07-13 13:04:49.355 T:1570     INFO <general>: JELLYFIN -> INFO::jellyfin_kodi/jellyfin/__init__.py:98 ---[ START JELLYFINCLIENT ]---
2022-07-13 13:04:49.361 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> INFO::jellyfin_kodi/entrypoint/default.py:72 path:  params: {}
2022-07-13 13:04:49.367 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/musicvideos/Musikvideos ] library://video/jellyfinmusicvideosac675b01e9e42eaeb6099b87f267ebb2/
2022-07-13 13:04:49.438 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/homevideos/Fotos ] plugin://plugin.video.jellyfin/?mode=browse&type=homevideos&id=fc76ef625023da8e99b2e1679d93c64b
2022-07-13 13:04:49.472 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/music/Musik ] library://music/
2022-07-13 13:04:49.504 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/tvshows/Serien ] library://video/jellyfintvshows43cfe12fe7d9d8d21251e0964e0232e2/
2022-07-13 13:04:49.538 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/movies/Recordings (Filme) ] library://video/jellyfinmovies79a2726d3c50e769a8af1e4184e4fccf/
2022-07-13 13:04:49.604 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/tvshows/Recordings (Serien) ] library://video/jellyfintvshows79a2726d3c50e769a8af1e4184e4fccf/
2022-07-13 13:04:49.670 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing// ] 
2022-07-13 13:04:49.677 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/boxsets/Sammlungen ] plugin://plugin.video.jellyfin/?mode=browse&type=boxsets&id=dbbcb697ad52d5e9939f9ec1e9fc2c07
2022-07-13 13:04:49.706 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/movies/Podcasts (Filme) ] library://video/jellyfinmovies608e1ed1e97ee5c4556f3d0299ac9894/
2022-07-13 13:04:49.737 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/tvshows/Podcasts (Serien) ] library://video/jellyfintvshows608e1ed1e97ee5c4556f3d0299ac9894/
2022-07-13 13:04:49.743 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing// ] 
2022-07-13 13:04:49.748 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/movies/Filme ] library://video/jellyfinmovies7a2175bccb1f1a94152cbd2b2bae8f6d/
2022-07-13 13:04:49.771 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/books/Hörbücher ] plugin://plugin.video.jellyfin/?mode=browse&type=books&id=16795e3accb36058bd2737dc153fc696
2022-07-13 13:04:49.776 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/movies/Dokumentationen ] library://video/jellyfinmoviesd28622d6e0964adea39c5655ae42ebf0/
2022-07-13 13:04:49.837 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/playlists/Playlists ] plugin://plugin.video.jellyfin/?mode=browse&type=playlists&id=1071671e7bffa0532e930debee501d2e
2022-07-13 13:04:49.842 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/livetv/Live TV ] plugin://plugin.video.jellyfin/?mode=browse&type=livetv&id=2d57f2c7db9fbfb595e454b0dd9be874
2022-07-13 13:04:49.871 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/playlists/Playlists ] plugin://plugin.video.jellyfin/?mode=browse&type=playlists&id=091c4699656f1cd52f62d8be81b617e3
2022-07-13 13:04:49.906 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/favorites/Favorisierte Filme ] library://video/jellyfin_Favoritemovies.xml
2022-07-13 13:04:49.939 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/favorites/Favorisierte Serien ] library://video/jellyfin_Favoritetvshows.xml
2022-07-13 13:04:49.972 T:1570     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> DEBUG::jellyfin_kodi/entrypoint/default.py:187 --[ listing/favorites/Favorisierte Episoden ] library://video/jellyfin_Favoriteepisodes.xml
2022-07-13 13:04:50.243 T:1570     INFO <general>: JELLYFIN.__main__ -> INFO::default.py:25 ---<[ default ]
2022-07-13 13:04:50.243 T:1570     INFO <general>: CPythonInvoker(21, /storage/.kodi/addons/plugin.video.jellyfin/default.py): script successfully run
2022-07-13 13:04:50.653 T:1570     INFO <general>: Python interpreter stopped
2022-07-13 13:04:51.032 T:1573    ERROR <general>: Unable to find plugin 
2022-07-13 13:04:51.032 T:1573    ERROR <general>: GetDirectory - Error getting plugin://
2022-07-13 13:04:51.033 T:834     ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://) failed
2022-07-13 13:04:51.413 T:1567    ERROR <general>: GetDirectory - Error getting library://video/movies/
2022-07-13 13:04:51.575 T:1566    ERROR <general>: GetDirectory - Error getting library://video/tvshows/
2022-07-13 13:04:52.235 T:1577    ERROR <general>: GetDirectory - Error getting library://video/musicvideos/

Screenshots

System (please complete the following information):

  • OS: LibreElec 10.0.2
  • Jellyfin Version: 10.8.1.0
  • Kodi Version: 19.4.0
  • Addon Version: 0.7.8+py3
  • Playback Mode: Add-On

exaveal avatar Jul 13 '22 10:07 exaveal

What device is this on? The slowness is presumably due to the SD card (assuming RPi here). I don't really see anything interesting in the log snippet you provided.

oddstr13 avatar Jul 31 '22 18:07 oddstr13

It's a raspberrypi, yes. But this shouldn't be any problem. I have tried to make a short video - because I cannot explain it and the video shows it very clear.

  1. When you try to watch Simpsons directly from the "Home"-Screen of TV-Shows the button for seasons is called "Browse", every menu items takes several seconds to load. Playing an episode is not possible with an error message to check logs. But in the logs I don't find anything.
  2. When you try to play the Episode from the TV-Show Main Menu Item, it's as fast as it always has been and it's possible to play the episode.

https://user-images.githubusercontent.com/21370398/184832087-1977d8cd-e3bd-4f67-ae85-e175e115d654.mp4

exaveal avatar Aug 16 '22 08:08 exaveal

Any idea? The video should be clarify what is the problem.

exaveal avatar Sep 01 '22 12:09 exaveal

The menu being slow is because that particular "browse" function has to retrieve data from the server instead of the local database. iirc, the reason for that is complicated but basically boils down to "Kodi doesn't like us hijacking it's menus". And I can't replicate the playback errors. When I open a menu using the browse function from the home screen everything plays just fine.

mcarlton00 avatar Sep 01 '22 23:09 mcarlton00

Thanks for your information. I don't understand why this problem seems to occur just me. I have tested again and again with a fresh Jellyfin & Kodi installation. Nothing else installed or configured specially. I use AddOn mode, not Native. Could this be the reason?

exaveal avatar Sep 07 '22 09:09 exaveal

Switching to native mode solved the problem. Nevertheless this seems to be a bug in AddOn mode. Really easy to reproduce with clean installation.

exaveal avatar Sep 08 '22 08:09 exaveal

What am i observing is that for me this error on occurs with x265 clips, and if i select the option to transcode de episode it works normaly

gabrielpetry avatar Nov 29 '22 20:11 gabrielpetry

switching to native did not resolve the issue for me. (hopefully) relevant log snip is here: https://hastebin.com/share/porucijeso.yaml

Cassock avatar Feb 12 '23 21:02 Cassock

@Cassock Did you ever find a solution? @exaveal I also have the same problem. A skin creator for kodi said it might be an addon problem and I think so. I will be trying Native mode tomorrow and reporting back if it works for me or not. I have also attached a video of how it happens to me. It is exactly as you said. Movies work fine for me though. It seems to browse into jellyfin the addon not your library when you click a specific tv show, but when you click a tv show from the menu it treats it as its part of the library. They only way around this for me is long pressing the episode then clicking play from here. I have also attached a video of how it happens to me. Quality is not the best. Here is youtube video with better quality: https://youtu.be/Hc23trBj7LI

https://github.com/jellyfin/jellyfin-kodi/assets/157428220/2dbdd826-d914-4fdf-93df-1d93420aef00

AtlasHoldingWorld avatar Jan 22 '24 23:01 AtlasHoldingWorld

I'm up and running on a couple boxes now, but I don't recall what the solution was. Very likely just a fresh install. Sorry I can't be more help.

Cassock avatar Jan 22 '24 23:01 Cassock

@Cassock Thank you. At least I know there is a solution now. I will try a new install tomorrow.

AtlasHoldingWorld avatar Jan 22 '24 23:01 AtlasHoldingWorld

Same for me: Native mode solved my problem. Meanwhile I have Kodi running in AddOn Mode on another Raspi in my campervan, there the problem does not exist. I cannot reproduce it anymore and still today I have no clue what the problem is about and why just "some selected" setup seems to have this.

exaveal avatar Jan 24 '24 20:01 exaveal