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

RAI Radio getChannels broke the add-on #59

Open
andcoz opened this issue May 15, 2022 · 0 comments
Open

RAI Radio getChannels broke the add-on #59

andcoz opened this issue May 15, 2022 · 0 comments

Comments

@andcoz
Copy link

andcoz commented May 15, 2022

During the initialization, the add-on tries to get the list of "radio" channel at http://www.raiplayradio.it/dirette/ContentSet-8e2a3414-bbfd-4a72-852b-7d827dc00e7e.html?json but it gets a 404 response.

2022-05-15 17:15:03.775 T:1300042624   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.HTTPError'>
                                            Error Contents: HTTP Error 404: Not Found
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.raitv/default.py", line 49, in <module>
                                                radio_stations = cache.cacheFunction(RaiPlayRadio().getChannels)
                                              File "/storage/.kodi/addons/script.common.plugin.cache/resources/lib/storage_server/StorageServer.py", line 628, in cacheFunction
                                                ret_val = funct(*args)
                                              File "/storage/.kodi/addons/plugin.video.raitv/resources/lib/raiplayradio.py", line 43, in getChannels
                                                response = json.loads(utils.checkStr(urllib2.urlopen(self.channelsUrl).read()))
                                              File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
                                              File "/usr/lib/python2.7/urllib2.py", line 435, in open
                                              File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
                                              File "/usr/lib/python2.7/urllib2.py", line 467, in error
                                              File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
                                              File "/usr/lib/python2.7/urllib2.py", line 654, in http_error_302
                                              File "/usr/lib/python2.7/urllib2.py", line 435, in open
                                              File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
                                              File "/usr/lib/python2.7/urllib2.py", line 473, in error
                                              File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
                                              File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
                                            HTTPError: HTTP Error 404: Not Found
                                            -->End of Python script error report<--
2022-05-15 17:15:03.966 T:1455420288   ERROR: GetDirectory - Error getting plugin://plugin.video.raitv/?content_type=video
2022-05-15 17:15:03.969 T:1937115584   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.raitv/?content_type=video) failed'

As a temporary work around, I regained "video" streaming by commenting out line 49 of default.py.

@@ -46,7 +46,7 @@
 # Cache channels for 1 hour
 cache = StorageServer.StorageServer("plugin.video.raitv", 1) # (Your plugin name, Cache time in hours)
 tv_stations = cache.cacheFunction(RaiPlay(Addon).getChannels)
-radio_stations = cache.cacheFunction(RaiPlayRadio().getChannels)
+#radio_stations = cache.cacheFunction(RaiPlayRadio().getChannels)
 raisport_keys = cache.cacheFunction(RaiPlay(Addon).fillRaiSportKeys)
 
 # utility functions

IMHO, the migration of "radio" streaming to https://www.raiplaysound.it/ changed something in service endpoints but, unluckily, I am unable to check it now.

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