smirgol / plugin.video.crunchyroll

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

kodi 18 (leia) does not work #12

Closed tester38 closed 9 months ago

tester38 commented 9 months ago

This is from my logfile: (kodi 18.9)

2023-12-22 22:25:16.857 T:1750790976   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.SyntaxError'>
                                            Error Contents: invalid syntax (model.py, line 86)
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.crunchyroll/default.py", line 30, in <module>
                                                from resources.lib import crunchyroll
                                              File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 26, in <module>
                                                from .api import API
                                              File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 23, in <module>
                                                from .model import AccountData
                                              File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/model.py", line 86
                                                class Meta(type, metaclass=type("", (type,), {"__str__": lambda _: "~hi"})):
                                                                          ^
                                            SyntaxError: invalid syntax
                                            -->End of Python script error report<--
2023-12-22 22:25:16.940 T:1734005568   ERROR: GetDirectory - Error getting plugin://plugin.video.crunchyroll/
2023-12-22 22:25:16.947 T:3011003776   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.crunchyroll/) failed
smirgol commented 9 months ago

You might need to be a little bit patient here, as I cannot test my changes. But I think we are almost there. I've pushed another update that should fix this particular error

tester38 commented 9 months ago

THANK YOU soo much for your help. I didn't want to seem impatient. I just wanted to give you quick feedback. Sadly it did not work. But first concentrate on your work for matrix and nexus version. I didn't want to prevent you from your work. Here is my log if it helps you.

Have a nice Christmas.

2023-12-23 02:15:10.436 T:2639631168 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

  • NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.AttributeError'> Error Contents: 'module' object has no attribute 'translatePath' Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.crunchyroll/default.py", line 33, in crunchyroll.main(sys.argv) File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 79, in main if api.start(): File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 78, in start session_data = self.load_from_storage() File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 230, in load_from_storage storage_file = self.get_storage_path() File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 223, in get_storage_path profile_path = xbmcvfs.translatePath(self.args.addon.getAddonInfo("profile")).decode("utf-8") AttributeError: 'module' object has no attribute 'translatePath' -->End of Python script error report<-- 2023-12-23 02:15:10.489 T:2653926208 ERROR: GetDirectory - Error getting plugin://plugin.video.crunchyroll/ 2023-12-23 02:15:10.511 T:3011333248 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.crunchyroll/) failed
smirgol commented 9 months ago

No problem, I just wanted to say that we need some time to make it work. I wish I had some way to test my changes, so you don't need to test so often, but unfortunately I can't. That's why I was saying you need to be patient with me here. :)

I pushed another fix to resolve that new error

tester38 commented 9 months ago

thank you so much. I am always happy when you change something I just installed kodi 18.9 on my laptop. so its easier and much faster to install and test.

2023-12-23 03:08:29.627 T:2635207488 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

  • NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.AttributeError'> Error Contents: exit Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.crunchyroll/default.py", line 34, in crunchyroll.main(sys.argv) File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 79, in main if api.start(): File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 92, in start self.create_session(session_restart) File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 171, in create_session self.write_to_storage(self.account_data) File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 259, in write_to_storage with xbmcvfs.File(storage_file, 'w') as f: AttributeError: exit -->End of Python script error report<-- 2023-12-23 03:08:29.689 T:2653926208 ERROR: GetDirectory - Error getting plugin://plugin.video.crunchyroll/ 2023-12-23 03:08:29.710 T:3011472512 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.crunchyroll/) failed
smirgol commented 9 months ago

And here goes another fix. Where did you get the Leia version from? I'm trying to install it somehow, so I can test things, but I have yet to find a download source for linux.

tester38 commented 9 months ago

and another log:

2023-12-23 08:56:20.223 T:3011472512   ERROR: Control 550 in window 10025 has been asked to focus, but it can't
2023-12-23 08:56:20.705 T:2653926208   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: No JSON object could be decoded
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.crunchyroll/default.py", line 34, in <module>
                                                crunchyroll.main(sys.argv)
                                              File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 79, in main
                                                if api.start():
                                              File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 80, in start
                                                session_data = self.load_from_storage()
                                              File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 238, in load_from_storage
                                                data = JSON.load(f)
                                              File "/usr/lib/python2.7/json/__init__.py", line 291, in load
                                              File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
                                              File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
                                              File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
                                            ValueError: No JSON object could be decoded
                                            -->End of Python script error report<--
2023-12-23 08:56:20.764 T:2761278272   ERROR: GetDirectory - Error getting plugin://plugin.video.crunchyroll/
2023-12-23 08:56:20.765 T:3011472512   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.crunchyroll/) failed
smirgol commented 9 months ago

I added some exception handling to that part, maybe it works. I also tried hard to get Leia up and running yesterday (or should I say "yesternight" ^^), but to no avail yet. :|

smirgol commented 9 months ago

Okay, I finally was able to install Kodi Leia and all the required dependencies, so I could test things and fix them. It should work now, please let me know if it works for you, too.

smirgol commented 9 months ago

does it work for you?

tester38 commented 9 months ago

woooow thank you soooo much. It seems to work. i am so happy now and can watch jujutsu kaisen. Is there any way to donate something for you ? i think its not possible to dm you here. didnt find anything.

Sry for answering now... i just arrived at home and the first thing ive done is testing your addon.

smirgol commented 9 months ago

Glad to hear we have finally made this work :) I was just wondering, because you have changed the title or the PR but did not leave a response, that's why I asked again.

And you absolutely don't have to donate anything, I'm happy to be able to give something back to the community. But, if you really really, like really, want to, you can buy me a coffee. :) https://ko-fi.com/smirgol Still, you really don't have to.

tester38 commented 9 months ago

I was at Work and recognized there was written KODi 17 in title. So i changed to 18. I bought you some Coffee for the Holidays. Have a nice Weekend and Beautiful Christmas days with your Family

smirgol commented 9 months ago

Thank you very much and Happy Christmas as well! :) Edit: That's a lot of coffee oO. Thank you so much, you really didn't have to! :)