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

[Skyline WebCams] A few issues here and there #163

Open
pitsi opened this issue Nov 24, 2024 · 0 comments
Open

[Skyline WebCams] A few issues here and there #163

pitsi opened this issue Nov 24, 2024 · 0 comments

Comments

@pitsi
Copy link

pitsi commented Nov 24, 2024

After seeing the page on a friend's pc, I got jealous and decided to install the addon. And here are a few issues that I found

a) The "greek live cams" entry from the main menu does not work and pops this in the log.

2024-11-24 17:35:14.883 T:922     ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'bytes' object has no attribute 'encode'
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.skylinecctv/default.py", line 352, in <module>
                                                       get_greek_cams()
                                                     File "/storage/.kodi/addons/plugin.video.skylinecctv/default.py", line 102, in get_greek_cams
                                                       r = r.encode('utf-8')
                                                   AttributeError: 'bytes' object has no attribute 'encode'
                                                   -->End of Python script error report<--

b) Setting the language to greek in the settings makes the addon fail to launch afterwards. I had to completely delete ~./kodi/userdata/addon_data/plugin.video.skylinecctv/ to make it work again! It does not happen with any other language. Log output

2024-11-24 17:36:33.089 T:968     ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'KeyError'>
                                                   Error Contents: 'Ελληνικά'
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.skylinecctv/default.py", line 50, in <module>
                                                       web_lang = get_lang()
                                                     File "/storage/.kodi/addons/plugin.video.skylinecctv/default.py", line 47, in get_lang
                                                       return lang_dict[lang]
                                                   KeyError: 'Ελληνικά'
                                                   -->End of Python script error report<--

c) On python2 (kodi 18), most entries from the main menu fail to start with the following error

2024-11-24 17:42:18.884 T:140491626620672   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeEncodeError'>
                                            Error Contents: 'ascii' codec can't encode character u'\u2019' in position 69: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.skylinecctv/default.py", line 346, in <module>
                                                get_content(url)
                                              File "/storage/.kodi/addons/plugin.video.skylinecctv/default.py", line 199, in get_content
                                                desc = desc.decode('ascii', errors='ignore')
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 69: ordinal not in range(128)
                                            -->End of Python script error report<--

d) Last but not least, the menu entry "live cams by category" returns nothing. This applies to both python2 and python3.

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant