azzy9 / plugin.video.rumble

Rumble Kodi Plugin with login and subscription functionality
GNU General Public License v2.0
21 stars 1 forks source link

Error when clicking on Crowder, #8

Closed techzilla closed 1 year ago

techzilla commented 1 year ago

Other channels work that I've tried, but when clicking on Crowder's channel from following, it produces an error.

https://rumble.com/c/StevenCrowder

azzy9 commented 1 year ago

Hi, unfortunately I cannot replicate this issue. I have tried it from search & my follow list. Please could you try to unfollow then follow again see if that changes anything. If not, could you please send me a log.

techzilla commented 1 year ago

I unfollowed, then followed again, but the error persists. https://paste.kodi.tv/amoviqubox

2023-05-19 11:46:48.944 T:1399571328   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'\U0001f534' in position 88: ordinal not in range(128)
                                      Traceback (most recent call last):
                                        File "/storage/.kodi/addons/plugin.video.rumble/main.py", line 733, in <module>
                                          main()
                                        File "/storage/.kodi/addons/plugin.video.rumble/main.py", line 709, in main
                                          pagination(url, page, cat)
                                        File "/storage/.kodi/addons/plugin.video.rumble/main.py", line 175, in pagination
                                          amount = list_rumble( page_url, cat )
                                        File "/storage/.kodi/addons/plugin.video.rumble/main.py", line 240, in list_rumble
                                          amount = dir_list_create( data, cat, 'video', False, 2 )
                                        File "/storage/.kodi/addons/plugin.video.rumble/main.py", line 263, in dir_list_create
                                          add_dir( video_title, BASE_URL + link, 4, str(img), str(img), '', cat, False, True, play, { 'name' : channel_link, 'subscribe': True }  )
                                      UnicodeEncodeError: 'ascii' codec can't encode character u'\U0001f534' in position 88: ordinal not in range(128)                                     

This was what I suspected was happening.

azzy9 commented 1 year ago

Thank you @techzilla for posting your log. I can confirm it is due to how kodi is handling the unicode characters that steven crowders videos have in the title. I installed Kodi 18.9 32bit but still couldn't replicate it. Instead I took an approach to just remove the unicode characters from titles. Please can you try v1.3.4 to see if it fixes your issue.

azzy9 commented 1 year ago

Since there is no feedback I will close this issue