rickybiscus / plugin.video.auvio

Kodi plugin to stream content from the RTBF Auvio website (public broadcasting organization of the French Community of Belgium)
GNU General Public License v3.0
42 stars 16 forks source link

Can't access the "Catégories/Film" folder anymore #32

Closed SDaron closed 3 years ago

SDaron commented 3 years ago

Hi,

The plugin can't access the "Catégories/Film" folder anymore. Here is the log:

2021-02-04 21:42:48.314 T:1761603808   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnboundLocalError'>
                                            Error Contents: local variable 'section_count' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.auvio/main.py", line 752, in <module>
                                                common.plugin.run()
                                              File "/home/osmc/.kodi/addons/plugin.video.auvio/lib/simpleplugin/simpleplugin.py", line 1041, in run
                                                result = action_callable(params)
                                              File "/home/osmc/.kodi/addons/plugin.video.auvio/main.py", line 149, in menu_single_category
                                                sidebar_listing = get_sidebar_listing(sid)
                                              File "/home/osmc/.kodi/addons/plugin.video.auvio/main.py", line 565, in get_sidebar_listing
                                                if section_count:
                                            UnboundLocalError: local variable 'section_count' referenced before assignment
                                            -->End of Python script error report<--
2021-02-04 21:42:48.490 T:1284477152   ERROR: GetDirectory - Error getting plugin://plugin.video.auvio/?action=menu_single_category&category_id=36&sidebar_id=3819
2021-02-04 21:42:48.491 T:1915953168   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.auvio/?action=menu_single_category&category_id=36&sidebar_id=3819) failed

In case it helps, actually I've found a workaround on my backuped favorites. This link will be accepted: `

ActivateWindow(10025,"plugin://plugin.video.auvio/?action=list_widget_section_items&section_id=0&widget_id=8574",return)` But if I add the folder to the Favorites from the auvio menu now, this is the link (broken): ` ActivateWindow(10025,"plugin://plugin.video.auvio/?action=menu_single_category&category_id=36&sidebar_id=3819",return)` If any body experience the same problem, just use this favorites to be able to navigate onto it.
fougo64 commented 3 years ago

Hi I have the same problem.

From what I understand it is due to a change in the json structure of the api auvio.

Apparently it's a widget id=14026 that causes the problem by returning null with the parameter v=8. When we change the parameter v=9 we find the json structure corresponding to the banner visible on the site.

2021-02-04 10:33:38.535 T:1547043712   DEBUG: CWebServer[8080]: request received for /jsonrpc
2021-02-04 10:33:42.214 T:1401934720   DEBUG: Previous line repeats 6 times.
2021-02-04 10:33:42.214 T:1401934720   DEBUG: plugin.video.auvio [v.3.1.8]: Cache hit: get_widget_detail(14026,){}
2021-02-04 10:33:42.540 T:1622578048   DEBUG: CWebServer[8080]: request received for /jsonrpc
2021-02-04 10:33:46.604 T:1401934720   DEBUG: Previous line repeats 10 times.
2021-02-04 10:33:46.604 T:1401934720   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnboundLocalError'>
                                            Error Contents: local variable 'section_count' referenced before assignment
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.auvio/main.py", line 752, in <module>
                                                common.plugin.run()
                                              File "/storage/.kodi/addons/plugin.video.auvio/lib/simpleplugin/simpleplugin.py", line 1041, in run
                                                result = action_callable(params)
                                              File "/storage/.kodi/addons/plugin.video.auvio/main.py", line 149, in menu_single_category
                                                sidebar_listing = get_sidebar_listing(sid)
                                              File "/storage/.kodi/addons/plugin.video.auvio/main.py", line 565, in get_sidebar_listing
                                                if section_count:
                                            UnboundLocalError: local variable 'section_count' referenced before assignment
                                            -->End of Python script error report<--
2021-02-04 10:33:46.604 T:1401934720   DEBUG: onExecutionDone(29, /storage/.kodi/addons/plugin.video.auvio/main.py)
2021-02-04 10:33:46.700 T:1936924688   DEBUG: ------ Window Init (DialogNotification.xml) ------
2021-02-04 10:33:46.714 T:1622578048   DEBUG: CWebServer[8080]: request received for /jsonrpc

Maybe @rickybiscus will solve the problem when he can.

@SDaron I will try the method with favorites and I'll see

rickybiscus commented 3 years ago

Indeed. I have to find a way to fix this.