smirgol / plugin.video.crunchyroll

Watch videos from the anime platform Crunchyroll.com on Kodi
GNU Affero General Public License v3.0
51 stars 10 forks source link

RuntimeError: Unknown addon id 'inputstream.adaptive'. #84

Closed mhetzi closed 1 month ago

mhetzi commented 1 month ago

Hi, I wanted to try this addon but on selecting an episode it says it cant play. This is from the logs:

2024-10-17 20:25:38.869 T:6232     info <general>: Skipped 1 duplicate messages..
2024-10-17 20:25:38.869 T:6232    error <general>: GetDirectory - Error getting /home/pi/.kodi/userdata/addon_data/plugin.video.crunchyroll/cache_subtitles/
2024-10-17 20:25:38.870 T:6232     info <general>: [PLUGIN] Crunchyroll: VideoStream: Starting to retrieve data async
2024-10-17 20:25:38.872 T:6232     info <general>: [PLUGIN] Crunchyroll: URL: https://cr-play-service.prd.crunchyrollsvc.com/v1/GX9U31KQQ/android/phone/play
2024-10-17 20:25:40.261 T:6232     info <general>: [PLUGIN] Crunchyroll: VideoStream: Finished to retrieve data async
2024-10-17 20:25:40.344 T:6232  warning <general>: "totaltime" in ListItem.setProperty() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.setResumePoint().
2024-10-17 20:25:40.378 T:6232  warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-10-17 20:25:40.685 T:6232    error <general>: EXCEPTION: Unknown addon id 'inputstream.adaptive'.
2024-10-17 20:25:40.851 T:6232    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'RuntimeError'>
                                                   Error Contents: Unknown addon id 'inputstream.adaptive'.
                                                   Traceback (most recent call last):
                                                     File "/home/pi/.kodi/addons/plugin.video.crunchyroll/default.py", line 36, in <module>
                                                       crunchyroll.main(sys.argv)
                                                     File "/home/pi/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 97, in main
                                                       return check_mode()
                                                              ^^^^^^^^^^^^
                                                     File "/home/pi/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 165, in check_mode
                                                       controller.start_playback()
                                                     File "/home/pi/.kodi/addons/plugin.video.crunchyroll/resources/lib/controller.py", line 498, in start_playback
                                                       video_player.start_playback()
                                                     File "/home/pi/.kodi/addons/plugin.video.crunchyroll/resources/lib/videoplayer.py", line 55, in start_playback
                                                       self._prepare_and_start_playback()
                                                     File "/home/pi/.kodi/addons/plugin.video.crunchyroll/resources/lib/videoplayer.py", line 133, in _prepare_and_start_playback
                                                       if is_helper.check_inputstream():
                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/home/pi/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/__init__.py", line 420, in check_inputstream
                                                       if self.drm == 'widevine' and not self._supports_widevine():
                                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/home/pi/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/__init__.py", line 146, in _supports_widevine
                                                       is_version = parse_version(addon_version(self.inputstream_addon))
                                                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/home/pi/.kodi/addons/script.module.inputstreamhelper/lib/inputstreamhelper/kodiutils.py", line 103, in addon_version
                                                       addon = xbmcaddon.Addon(addon_name)
                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                   RuntimeError: Unknown addon id 'inputstream.adaptive'.
                                                   -->End of Python script error report<--

And after that, the webbrowser and smartphone is blocked from watching because of the stream limit. Only closing kodi completly unblocks the browser or smartphone.

smirgol commented 1 month ago

That is odd, seems like there is an issue with your version of inputstream_helper. What Kodi version are you using and is there any chance you can check the version of inputstream_helper?

Also, I've found this, maybe that helps. Try that first:

First from the main menu go Addons > My Add-ons > Videoplayer InputStream and if it's there select InputStream Adaptive and check it's enabled.

If it's not installed, go to Addons > Install from repository > Kodi Add-on repository (you may not need this step if you have no other repo's installed) > VideoPlayer InputStream and install it from there.

mhetzi commented 1 month ago

hi i could not find it, and looking at dependencies from youtube (which definitly worked a few weeks ago) i found it greyed out (adaptive). not installable. so inputstream_helper is in the repo and input_streamhelper adaptive is not. Turns out i now need to install it (input_streamhelper adaptive) via apt (debian on raspberry).

smirgol commented 1 month ago

Looks like this has been resolved