Goldenfreddy0703 / Otaku

Repository for Otaku Development
GNU General Public License v3.0
114 stars 22 forks source link

Can't watch TV Shows, Only Movies #188

Closed OKSoda closed 11 months ago

OKSoda commented 11 months ago

Hey there

Fresh install of Otaku on a fresh Kodi Install.

I can successfully see sources from movies in Otaku but when I try to browse shows, whenever I select a show I get an error in Kodi. Here is what the logo shows

2023-12-20 17:11:59.488 T:1908    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'TypeError'>
                                                   Error Contents: 'NoneType' object is not subscriptable
                                                   Traceback (most recent call last):
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\default.py", line 21, in <module>
                                                       main.Main()
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\main.py", line 2526, in Main
                                                       router_process(control.get_plugin_url(), control.get_plugin_params())
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\ui\router.py", line 70, in router_process
                                                       return route_obj.func(payload, params)
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\main.py", line 731, in ANIMES_PAGE
                                                       anime_general, content = _BROWSER.get_anime_init(anilist_id, filter_lang)
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\OtakuBrowser.py", line 109, in get_anime_init
                                                       data = simkl.SIMKLAPI().get_episodes(anilist_id, filter_lang)
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\indexers\simkl.py", line 174, in get_episodes
                                                       return self._process_episode_view(anilist_id, poster, fanart, eps_watched, tvshowtitle, filter_lang,
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\indexers\simkl.py", line 96, in _process_episode_view
                                                       s_id = utils.get_season(sync_data[0])
                                                   TypeError: 'NoneType' object is not subscriptable
                                                   -->End of Python script error report<--

2023-12-20 17:11:59.635 T:5304    error <general>: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.otaku/animes/154587/52991/0
2023-12-20 17:11:59.644 T:15444   error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.otaku/animes/154587/52991/0) failed
2023-12-20 17:12:00.010 T:15444    info <general>: Loading skin file: C:\Users\joeyw\AppData\Roaming\Kodi\addons\script.logviewer\resources\skins\Default\720p\script.logviewer-textwindow-fullscreen.xml, load type: LOAD_ON_GUI_INIT
2023-12-20 17:12:00.010 T:15444 warning <general>: Skin has invalid include: Animation_DialogPopupOpenClose
2023-12-20 17:12:18.469 T:19408   error <general>: CImageLoader::DoWork - Direct texture file loading failed for resource://resource.images.studios.coloured/Wit Studio.png
2023-12-20 17:12:20.902 T:11392   error <general>: CImageLoader::DoWork - Direct texture file loading failed for resource://resource.images.studios.coloured/Frontier Works.png
2023-12-20 17:12:38.484 T:11392   error <general>: CImageLoader::DoWork - Direct texture file loading failed for resource://resource.images.studios.coloured/Wit Studio.png
2023-12-20 17:12:45.384 T:14708   error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'TypeError'>
                                                   Error Contents: 'NoneType' object is not subscriptable
                                                   Traceback (most recent call last):
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\default.py", line 21, in <module>
                                                       main.Main()
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\main.py", line 2526, in Main
                                                       router_process(control.get_plugin_url(), control.get_plugin_params())
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\ui\router.py", line 70, in router_process
                                                       return route_obj.func(payload, params)
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\main.py", line 731, in ANIMES_PAGE
                                                       anime_general, content = _BROWSER.get_anime_init(anilist_id, filter_lang)
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\OtakuBrowser.py", line 109, in get_anime_init
                                                       data = simkl.SIMKLAPI().get_episodes(anilist_id, filter_lang)
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\indexers\simkl.py", line 174, in get_episodes
                                                       return self._process_episode_view(anilist_id, poster, fanart, eps_watched, tvshowtitle, filter_lang,
                                                     File "C:\Users\joeyw\AppData\Roaming\Kodi\addons\plugin.video.otaku\resources\lib\indexers\simkl.py", line 96, in _process_episode_view
                                                       s_id = utils.get_season(sync_data[0])
                                                   TypeError: 'NoneType' object is not subscriptable
                                                   -->End of Python script error report<--

I've tried everything i can think of, reinstalling, clearing cache etc. LMK what else to try! Thanks.

Goldenfreddy0703 commented 11 months ago

Ok weird, 2 other people had this issue and I did as well this morning. Idk if it's a connection issue or a debrid issue. I tried finding the cause or source of it but was not able to find it. I will have someone look into this.

Thank you.

OKSoda commented 11 months ago

Slightly comforting knowing im not alone. Thanks for the quick response!

joezito129 commented 11 months ago

it looks like syncurl (ie. https://find-my-anime.dtimur.de/api) stopped working.

joezito129 commented 11 months ago

if you want a quick fix change line 96 of simkl.py to s_id = [-1] This should let you watch the show but will show season# as -1.

Goldenfreddy0703 commented 11 months ago

it looks like syncurl (ie. https://find-my-anime.dtimur.de/api) stopped working

Omg I thought it would have something to do with simkl or mal sync. Completely forgot about find-my-anime to get synonyms. Ok i will provide a fix tonight in a few hours.

Thank you

Goldenfreddy0703 commented 11 months ago

Alright so apparently some idiot around 5 hours, abused the api which is why went down. Hopefully it will be back up soon. image

OKSoda commented 11 months ago

Ok, sounds good. Will keep an eye on it.

Goldenfreddy0703 commented 11 months ago

Hey so good news, we got it fixed and i added a fallback. @joezito129 about that quick fixed you mentioned, I did this instead "s_id = utils.get_season(sync_data[0]) if sync_data else None" cause i think the find-my-anime will come back online very soon.

Release should be out so @OKSoda hopefully this should fix your issue. Will go ahead and close this but if issues still occur, please message in here and we will open this and look further.

Thank you