nightflyer73 / plugin.video.raitv Goto Github PK
View Code? Open in Web Editor NEWKodi plugin for RAI
License: GNU General Public License v3.0
Kodi plugin for RAI
License: GNU General Public License v3.0
rai.tv check the user agent and the plugin doesn't work
Gentile Nightflyer, il plugin è contrassegnato come non funzionante nel repository ufficiale e non è possibile visiualizzare i programmi raiplay e ondemand. Le dirette funzionano. C'è qualche speranza di aggiornamento del plugin? Aiutaci ti prego!
RAI offers a variety of its programs with audio descriptions for blind people. The page that shows them is
http://www.rai.tv/dl/RaiTV/programmi/page/Page-09f11f27-027c-4140-a208-ab910d028583.html
Could you add support for them in the addon, please? A lot of italian blind people could benefit from this.
Hi,
for a few days any attempt to access the RAI plugin has been failing.
My system info:
Here below the debug lines:
2021-12-26 21:44:01.176 T:2470043840 DEBUG: Previous line repeats 9 times.
2021-12-26 21:44:01.176 T:2470043840 DEBUG: StartScript - calling plugin Rai Play('plugin://plugin.video.raitv/','11','','resume:false')
2021-12-26 21:44:01.177 T:2478436544 DEBUG: Thread LanguageInvoker start, auto delete: false
2021-12-26 21:44:01.177 T:2478436544 INFO: initializing python engine.
2021-12-26 21:44:01.177 T:2478436544 DEBUG: CPythonInvoker(14, /home/pi/.kodi/addons/plugin.video.raitv/default.py): start processing
2021-12-26 21:44:01.197 T:2478436544 DEBUG: -->Python Interpreter Initialized<--
2021-12-26 21:44:01.197 T:2478436544 DEBUG: CPythonInvoker(14, /home/pi/.kodi/addons/plugin.video.raitv/default.py): the source file to load is "/home/pi/.kodi/addons/plugin.video.raitv/default.py"
2021-12-26 21:44:01.197 T:2478436544 DEBUG: CPythonInvoker(14, /home/pi/.kodi/addons/plugin.video.raitv/default.py): setting the Python path to /home/pi/.kodi/addons/plugin.video.raitv:/home/pi/.kodi/addons/script.common.plugin.cache/resources/lib/storage_server/:/home/pi/.kodi/addons/script.module.inputstreamhelper/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/home/pi/.local/lib/python2.7/site-packages:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/gtk-2.0
2021-12-26 21:44:01.197 T:2478436544 DEBUG: CPythonInvoker(14, /home/pi/.kodi/addons/plugin.video.raitv/default.py): entering source directory /home/pi/.kodi/addons/plugin.video.raitv
2021-12-26 21:44:01.198 T:2478436544 DEBUG: CPythonInvoker(14, /home/pi/.kodi/addons/plugin.video.raitv/default.py): instantiating addon using automatically obtained id of "plugin.video.raitv" dependent on version 2.25.0 of the xbmc.python api
2021-12-26 21:44:01.523 T:2752807104 DEBUG: CWebServer[8383]: request received for /jsonrpc
2021-12-26 21:44:01.566 T:2478436544 DEBUG: Previous line repeats 1 times.
2021-12-26 21:44:01.566 T:2478436544 DEBUG: CAddonSettings[script.common.plugin.cache]: loading setting definitions
2021-12-26 21:44:01.566 T:2478436544 DEBUG: CAddonSettings[script.common.plugin.cache]: trying to load setting definitions from old format...
2021-12-26 21:44:01.634 T:2478436544 DEBUG: CAddonSettings[script.common.plugin.cache]: loading setting definitions
2021-12-26 21:44:01.634 T:2478436544 DEBUG: CAddonSettings[script.common.plugin.cache]: trying to load setting definitions from old format...
2021-12-26 21:44:02.383 T:2478436544 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 "/home/pi/.kodi/addons/plugin.video.raitv/default.py", line 49, in <module>
radio_stations = cache.cacheFunction(RaiPlayRadio().getChannels)
File "/home/pi/.kodi/addons/script.common.plugin.cache/resources/lib/storage_server/StorageServer.py", line 628, in cacheFunction
ret_val = funct(*args)
File "/home/pi/.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
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 467, in error
result = self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 654, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
-->End of Python script error report<--
2021-12-26 21:44:02.383 T:2478436544 DEBUG: onExecutionDone(14, /home/pi/.kodi/addons/plugin.video.raitv/default.py)
2021-12-26 21:44:02.391 T:2973260928 DEBUG: ------ Window Init (DialogNotification.xml) ------
2021-12-26 21:44:02.457 T:2478436544 INFO: Python interpreter stopped
2021-12-26 21:44:02.457 T:2478436544 DEBUG: Thread LanguageInvoker 2478436544 terminating
2021-12-26 21:44:02.462 T:2470043840 ERROR: GetDirectory - Error getting plugin://plugin.video.raitv/
2021-12-26 21:44:03.549 T:2744414400 DEBUG: CWebServer[8383]: request received for /jsonrpc
2021-12-26 21:44:08.131 T:2973260928 DEBUG: Previous line repeats 5 times.
2021-12-26 21:44:08.131 T:2973260928 DEBUG: ------ Window Deinit (DialogNotification.xml) ------
2021-12-26 21:44:09.545 T:2470043840 DEBUG: CWebServer[8383]: request received for /jsonrpc
2021-12-26 21:44:22.755 T:2719236288 DEBUG: Previous line repeats 13 times.
2021-12-26 21:44:22.756 T:2719236288 DEBUG: Thread JobWorker 2719236288 terminating (autodelete)
2021-12-26 21:44:23.596 T:2744414400 DEBUG: CWebServer[8383]: request received for /jsonrpc
I would like to use mpv or vlc to view the rai channels. is there a quick way to modify your script in order to get the url of the "diretta"? I tried to understand it but looks very complex and complicated.
Oggi cercavo di installarlo dal repo ufficiale, ma non lo trovavo.
Cercanfo sul wiki kodi leggo che è stato deprecato ?
Da ieri appare un errore nel tentativo di accedere ai programmi di raireplay con segnalazione d'errore di indice non valido nell'array. Dal log non è chiaro se è un problema di parametri di chiamata al servizio o se questo sta rispondendo in modo non conforme a quanto si aspetta lo script
Tried to load this add-on in the latest Kodi app (V19).
It produces an error saying the add-on doesn't meet the minimum Python version - "the dependency on xbmc.python version 2.1.0 could not be satisfied".
Update: When I updated my Windows Kodi to V19, it did not remove the RAI Play addon and works. However, Kodi on Android update removed the RAI Play addon and won't let me load it and produes the error above.
Are there any plans for an update?
HI
WHEN INSTALLING FROM REPO, KODI 19 CRASHES, IF INSTALLED FROM ZIP, WHEN PLAYING CONTENTS, THE VIDEO STOPS AFTER SOME TIME AND RETURNS TO THE CHANNEL MENU (SOOOOO BAD FOR LIVE STREAMS)
With theme Aeon MQ 7 the blue color on "Rai Replay" make difficult to read the lines of programs.
I edited the file "default.py" and changed the line 234 from:
liStyle = xbmcgui.ListItem("[COLOR blue]" + entry + " " + title + "[/COLOR]",
to
liStyle = xbmcgui.ListItem("[COLOR yellow]" + entry + " " + title + "[/COLOR]",
Now there is only a problem with selection line because the selection band is white and not change the color under the character but with the unavailable video elements the character color changes with black color.
13:32:32 T:2928380784 NOTICE: Relinker URL: http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2621467&output=47&output=20
13:32:32 T:2928380784 NOTICE: Playing URL: %7B%0D%0A%22video%22:[%22http://httpstream2.rai.it/Italy/rai1.isml/QualityLevels(1256000)/manifest(format=m3u8-aapl).m3u8?primaryToken=1414064132_c3877a1d825ea55e226b6862a1df4871%22]%20,%0D%0A%0D%0A%22ct%22:%22hls_ios%22,%22bitrate%22:%220%22,%22smooth%22:%22Y%22,%22is_live%22:%22Y%22,%22description%22:%22Rai%22,%22geoprotection%22:%22Y%22,%22category%22:%223033%22%0D%0A%7D
13:32:32 T:3079395120 NOTICE: DVDPlayer: Opening: %7B%0D%0A%22video%22:[%22http://httpstream2.rai.it/Italy/rai1.isml/QualityLevels(1256000)/manifest(format=m3u8-aapl).m3u8?primaryToken=1414064132_c3877a1d825ea55e226b6862a1df4871%22]%20,%0D%0A%0D%0A%22ct%22:%22hls_ios%22,%22bitrate%22:%220%22,%22smooth%22:%22Y%22,%22is_live%22:%22Y%22,%22description%22:%22Rai%22,%22geoprotection%22:%22Y%22,%22category%22:%223033%22%0D%0A%7D
13:32:32 T:3079395120 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
13:32:32 T:2928380784 NOTICE: Thread CDVDPlayer start, auto delete: false
13:32:32 T:2928380784 NOTICE: Creating InputStream
13:32:32 T:2928380784 WARNING: CreateLoader - Unsupported protocol(%7b%0d%0a%22video%22:[%22http) in %7b%0d%0a%22video%22:[%22http://httpstream2.rai.it/Italy/rai1.isml/QualityLevels(1256000)/manifest(format=m3u8-aapl).m3u8?primaryToken=1414064132_c3877a1d825ea55e226b6862a1df4871%22]%20,%0D%0A%0D%0A%22ct%22:%22hls_ios%22,%22bitrate%22:%220%22,%22smooth%22:%22Y%22,%22is_live%22:%22Y%22,%22description%22:%22Rai%22,%22geoprotection%22:%22Y%22,%22category%22:%223033%22%0D%0A%7D
13:32:32 T:2928380784 ERROR: CDVDPlayer::OpenInputStream - error opening [%7B%0D%0A%22video%22:[%22http://httpstream2.rai.it/Italy/rai1.isml/QualityLevels(1256000)/manifest(format=m3u8-aapl).m3u8?primaryToken=1414064132_c3877a1d825ea55e226b6862a1df4871%22]%20,%0D%0A%0D%0A%22ct%22:%22hls_ios%22,%22bitrate%22:%220%22,%22smooth%22:%22Y%22,%22is_live%22:%22Y%22,%22description%22:%22Rai%22,%22geoprotection%22:%22Y%22,%22category%22:%223033%22%0D%0A%7D]
In the new Rai Play platform, you can re-play also shows of the same day.
Could you check if possible also through the API?
Hi! I was done with watching a cartoon when Kodi told me that the plugin was not working, and it was uninstalled from my environment! I tried to install it again but it didn't show on the video plugin list (Rai YoYo is still there). Looking for information I stumbled upon this page https://kodi.tv/addon/music-add-ons-plugins-video-add-ons/rai-demand where it says "This Add-On is marked as Broken. This add-on is no longer function correctly and not maintained by it's developer.". From my experience the plugin is working ok, I use it everyday... What happened? I will try to install as zip, hoping Kodi will not uninstall it again.
Edit: ok, installing as zip works and kodi doesn't uninstall it anymore. Thanks
Mi capita che le dirette tv smettano di funzionare in maniera causale.
Ad esempio rai 2 per tutta la durate delle olimpiadi invernali in Corea non ha funzionato ed ora è l'unica rete rai che riesco a vedere in diretta. mentre rai scuola che è sempre andata ora non parte più.
Succede anche a voi, con kodi 16 e ubuntu 16.04 ?
Ho aggiornato il Repo, e pure il VPN. Su kodi non si connetta. Se invece scarico l’app per l’ipad ed uso il VPN funziona. Non so se e un guasto del Repo o la Rai che blocca tutto ciò che viene da Kodi.
Hello,
almost all content is blocked (siamo spiacenti... available in Italy only...). I am not in Italy but I have a VPN connection established and all traffic is routed via an IP from Milan (I verified that the VPN is working perfectly).
Is there an issue in the addon or does it currently work for you in Italy?
Addon is the latest git mainstream, kodi 17.6
Dal sito web della rai si puo' configurare la qualita' dello stream. Comodo quando si ha poca banda.
E' possibile farlo anche attraverso il plugin ?
Se andate a visitare la mia fork
https://github.com/maxbambi/plugin.video.raitv/
potete vedere quello che ho fatto al plugin Raiplay, sfruttando alcuni suggerimenti di @cttynul.
Ho aggiunto una nuova sezione con il materiale del sito di Rai Sport.
Chiaramente va tutto collaudato per vedere se non intervengono errori e poi lascerei a @cttynul il compito di integrarlo in quello che è il suo progetto, visto che ha prestato fino ad adesso molta attenzione all'uso delle librerie per la compatibilità fra python 2 e 3.
Diciamo che ho più o meno fatto il lavoro sporco di cercare le chiavi nei file json...
Non ve ne siete accorti?
kodi.log
Salve,
E grazie per l'eccellente addon! Da circa un paio di settimane, ho problemi con rai on demand. Ha smesso di funzionare sia con Kodi 17.6 su android che con Kodi 17.1 su Linux.
Uso un VPN, ma non ho cambiato niente nella sua configurazione da mesi.
Sono l'unico ad avere problemi?
Grazie 1000
Ciao,
Non conosco python, ma da ieri non funzionava più e ho fatto un breve debug e nel file
plugin.video.raitv/resources/lib/rayplay.py
L'errore è un 403 sull'url:
http://mediapolisgs.rai.it/relinker/relinkerServlet.htm?cont=201342
File "/home/pi/.kodi/addons/plugin.video.raitv/default.py", line 429, in log_country() File "/home/pi/.kodi/addons/plugin.video.raitv/default.py", line 354, in log_country country = raiplay.getCountry() File "/home/pi/.kodi/addons/plugin.video.raitv/resources/lib/raiplay.py", line 16, in getCountry response = urllib2.urlopen(self.localizeUrl).read() File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 437, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 550, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 475, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 403: Forbidden
Ho notato che mettendo fisso "IT" che è la response dell'url incriminato è tornato a funzionare, ma non è ovviamente la soluzione... cosa può essere che da browser risponde e da pyhton ritorna 403?
def getCountry(self): #response = urllib2.urlopen(self.localizeUrl).read() response = "IT" return response
18:38:22 T:140260137666304 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named StorageServer
Traceback (most recent call last):
File "/home/strk/.xbmc/addons/plugin.video.raitv/default.py", line 18, in <module>
import resources.lib.stations as stations
File "/home/strk/.xbmc/addons/plugin.video.raitv/resources/lib/stations.py", line 3, in <module>
import StorageServer
ImportError: No module named StorageServer
-->End of Python script error report<--
18:38:22 T:140260548740992 ERROR: GetDirectory - Error getting plugin://plugin.video.raitv/?content_type=video
18:38:22 T:140260548740992 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.raitv/?content_type=video) failed
Ho Kodi 17.1 e RAI on demand 2.0.0 scaricata dal repo ufficiale di Kodi. Da un paio di settimane l'add-on non si avvia. Ho provato sia su MacOS che Amazon fire tv.
Sono fuori dall'Italia, ma tanti programmi sono normalmente visibili su RAI.tv
Come da titolo, purtroppo il plugin ha smesso di funzionare, probabilmente a causa di qualche cambiamento lato server (errore http 403).
11:11:13.137 T:140079121213184 ERROR: GetDirectory - Error getting
11:11:14.255 T:140078247405312 ERROR: Previous line repeats 6 times.
11:11:14.255 T:140078247405312 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 403: Forbidden
Traceback (most recent call last):
File "/home/lord/.kodi/addons/plugin.video.raitv/default.py", line 429, in <module>
log_country()
File "/home/lord/.kodi/addons/plugin.video.raitv/default.py", line 354, in log_country
country = raiplay.getCountry()
File "/home/lord/.kodi/addons/plugin.video.raitv/resources/lib/raiplay.py", line 16, in getCountry
response = urllib2.urlopen(self.localizeUrl).read()
File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib64/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
-->End of Python script error report<--
11:11:14.317 T:140079584046208 ERROR: GetDirectory - Error getting plugin://plugin.video.raitv/?content_type=video
11:11:14.318 T:140079584046208 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.raitv/?content_type=video) failed
si riesce ad aggiornare?
Da alcuni giorni il plugin non funziona più: alla selezione di qualsiasi contenuto (Diretta o Replay che sia), non succede nulla e non viene riprodotto nulla.
Il log non mi sembra molto utile, questa è l'unica linea di errore che contiene, insieme ad alcuni warning:
10:03:09.517 T:1939034128 ERROR: Control 55 in window 10025 has been asked to focus, but it can't 10:03:33.899 T:1939034128 WARNING: Playlist Player: ListItem type must be audio or video, use ListItem::setInfo to specify! 10:04:45.451 T:1494713200 WARNING: Previous line repeats 1 times. 10:04:45.452 T:1494713200 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder 10:04:45.523 T:1494713200 WARNING: Previous line repeats 2 times. 10:04:45.523 T:1494713200 NOTICE: LoadJpeg: unable to load http://www.rai.it/resizegd/256x-/dl/img/2018/01/11/1515668736162_sottovoce.jpg 10:04:45.561 T:1709937520 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder 10:04:45.561 T:1709937520 NOTICE: LoadJpeg: unable to load http://www.rai.it/resizegd/256x-/dl/img/2017/09/11/1505142966393_unomattina_2017_2048x1152.jpg 10:04:45.569 T:1486320496 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder 10:04:45.569 T:1486320496 NOTICE: LoadJpeg: unable to load http://www.rai.it/resizegd/256x-/dl/img/2018/08/01/1533130877623_l-estate-del-mio-primo-bacio_2048x1152.jpg 10:04:45.576 T:1503105904 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder 10:04:45.577 T:1503105904 NOTICE: LoadJpeg: unable to load http://www.rai.it/resizegd/256x-/dl/img/2018/08/31/1535727003883_2048x1152.jpg
Sto usando LibreELEC 8.90.005 con Kodi 18.0b2 di Kodi su Raspberry Pi 2B.
La versione del plugin è la 2.0.0.
Gentile sviluppatore,
sto provando ad aprire un Programma On Demand e ottengo questo errore. Non so come risolvere... Grazie per il tuo lavoro.
18:48:15.844 T:1691087616 NOTICE: LoadJpeg: unable to load https://www.raiplay.it/resizegd/256x-/dl/img/2018/07/18/1531907694677_2048x1152.jpg
18:48:46.117 T:1438642944 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 "/home/osmc/.kodi/addons/plugin.video.raitv/default.py", line 426, in
play(url, pathId)
File "/home/osmc/.kodi/addons/plugin.video.raitv/default.py", line 119, in play
url = raiplay.getVideoUrl(pathId)
File "/home/osmc/.kodi/addons/plugin.video.raitv/resources/lib/raiplay.py", line 61, in getVideoUrl
response = json.load(urllib2.urlopen(url))
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
-->End of Python script error report<--
18:48:46.252 T:1925818880 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.raitv/?path_id=%2Fvideo%2F2016%2F01%2FCorreva-lanno---La-rivoluzione-sulle-ruote-LItalia-in-viaggio-negli-anni-Sessanta-del-17012016-f266f027-ac50-419c-86a8-0a86f618e53d.html%3Fjson&mode=play]
I've tried on 17.1 and 16.1 Kodi. Spmc 16.3 and 16.6. No luck having Rai on demand opening since yesterday. Is the add on dead?
I'm getting this error with plugin version 1.0.8 when trying to access episodes of "fuoriclasse" fiction from "OnDemand" area.
20:27:19 T:2814655344 NOTICE: Relinker URL: http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=h8zYNCpPpPluss1ewweeqqEEqual&output=20
20:27:19 T:2814655344 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 'ondemand' referenced before assignment
Traceback (most recent call last):
File "/home/pepperlight/.xbmc/addons/plugin.video.raitv/default.py", line 563, in <module>
play(title, url, thumbnail, uniquename)
File "/home/pepperlight/.xbmc/addons/plugin.video.raitv/default.py", line 126, in play
url = ondemand.baseUrl + url
UnboundLocalError: local variable 'ondemand' referenced before assignment
-->End of Python script error report<--
Hi Nightfly,
thank you for your remarkable work.
Since a few days Rai Ondemand addon has disappeared from the Kodi 17 Krypton video addon.
I tried to install it using the zip file provided here but not all programmes are availlable, in fact you can see just Live programmes and not on demand videos.
I would love to use it again, could you help me please?
Thanks and regards
From a few days I can't see any video on channels but audio work. I removed the plugin, directory and package on .kodi path and reinstalled from kodi repository but the problem it's the same.
With confluence default skin the plugin work correctly but with Aeon MQ7 I can't see the video.
In attachment the sceenshot.
The others plugins or streaming TV working correctly. I.e. Video Mediaset or La7 on demand I can see the video.
...as of April 6 2016
Ciao nightflyer,
on initialition of the plugin a HTTP error 403 is raised. The problem seems to be the same as in the closed issue #26 . I will attach the log below.
I am new to Kodi and Python in general, but i tried to compare my local addon source code files to the Github version. It seems to me that there is a difference between the Github and the Kodi respository.
As the issue #26 was closed I assusmed that the fix was pushed to the Kodi repository.
Am I right with my assumption?
In case yes, should I just replace my local files with the versions from Github?
Thanks in advance for your help.
23:12:14.783 T:1480 ERROR: XFILE::CDirectory::GetDirectory - Error getting
23:12:18.201 T:5504 ERROR: Previous line repeats 6 times.
23:12:18.201 T:5504 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 403: Forbidden
Traceback (most recent call last):
File "C:\Users\Thom\AppData\Roaming\Kodi\addons\plugin.video.raitv\default.py", line 429, in
log_country()
File "C:\Users\Thom\AppData\Roaming\Kodi\addons\plugin.video.raitv\default.py", line 354, in log_country
country = raiplay.getCountry()
File "C:\Users\Thom\AppData\Roaming\Kodi\addons\plugin.video.raitv\resources\lib\raiplay.py", line 16, in getCountry
response = urllib2.urlopen(self.localizeUrl).read()
File "C:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.601.0_x86__4n2hpmxwrvr6p\system\python\Lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.601.0_x86__4n2hpmxwrvr6p\system\python\Lib\urllib2.py", line 435, in open
response = meth(req, response)
File "C:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.601.0_x86__4n2hpmxwrvr6p\system\python\Lib\urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.601.0_x86__4n2hpmxwrvr6p\system\python\Lib\urllib2.py", line 473, in error
return self._call_chain(*args)
File "C:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.601.0_x86__4n2hpmxwrvr6p\system\python\Lib\urllib2.py", line 407, in _call_chain
result = func(*args)
File "C:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.601.0_x86__4n2hpmxwrvr6p\system\python\Lib\urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
-->End of Python script error report<--
23:12:18.269 T:5092 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.raitv/?content_type=video
23:12:18.295 T:5092 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.raitv/?content_type=video) failed
I have tried to look for your email but I've not chance to find it.
I would like to use this software in order to stream channel to tvheadend and then to kodi.
could you help me to get it work? i need to find url for every channel. I've tried to read you code but have no chance to found a solution.
https://github.com/Jalle19/node-ffmpeg-mpegts-proxy
thanks
Giovanni
When I select a show in elenco programmi it doesnt play it returns to the programmi on demand section.
Why doesn't it works?
Hi,
I'm using the add-on in Canada with airvpn (which allows rai.tv content through). I can watch all RAI channels via the rai.tv website, but unfortunately they aren't playing in Kodi with the add-on (only the international channel opens). In my Kodi log and it indicates that it's returning my location as ESTERO. I'm not sure why the streams would play through rai.tv, but not through the add-on. Any thoughts? Thanks for all of your work on making a great add-on!
Best,
VJ
you may also enter the global search rai.tv?
Because many episodes do not appear in the list, but if they are searched there are...
for example, the episode "Kursk Trappola mortale" of "la storia siamo noi" there is not in the list.
Salve,
da un paio di giorni la sezione "Programmi TV On Demand" mostra solo le voci "Bambini e Ragazzi" (probabilmente l'ultima utilizzata) e "Cerca". Ho provato a disinstallare il plugin e a reinstallarlo (ultima versione 2.0.0 dal presente repository) e ora la sezione "Programmi TV On Demand" è completamente vuota (a parte la voce "Cerca").
Noto che c'è il seguente commento:
#45 (comment)
inviato un paio di giorni fa, quindi contemporaneo al mio, e che sembra descrivere il mio stesso problema, anche se è inserito in un Issue che non so dire se descriva lo stesso problema e che è stato aprerto svariati mesi fa.
Grazie e complimenti per l'ottimo lavoro
Stefano
Come mai la diretta TV di RAI1 RAI2 e RAI3 sono interdetto, hai i sorgenti o il file m3u di queste dirette ?
Hello, running Kodi 17.6 on Windows 10, add-on does not load. It used to work fine. This is the error I get from the log.
20:57:19.193 T:9504 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 403: Forbidden Traceback (most recent call last): File "C:\Users\Dorigo-Hsu\AppData\Roaming\Kodi\addons\plugin.video.raitv\default.py", line 429, in <module> log_country() File "C:\Users\Dorigo-Hsu\AppData\Roaming\Kodi\addons\plugin.video.raitv\default.py", line 354, in log_country country = raiplay.getCountry() File "C:\Users\Dorigo-Hsu\AppData\Roaming\Kodi\addons\plugin.video.raitv\resources\lib\raiplay.py", line 16, in getCountry response = urllib2.urlopen(self.localizeUrl).read() File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 435, in open response = meth(req, response) File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 548, in http_response 'http', request, response, code, msg, hdrs) File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 473, in error return self._call_chain(*args) File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 407, in _call_chain result = func(*args) File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib2.py", line 556, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 403: Forbidden -->End of Python script error report<--
Con l'user-agent settato in relinker.py come "Android 4.2.2 (smart) / RaiPlay 2.1.3 / WiFi"
i film, serie etc on demand possono essere visti massimo a 1024x576, mentre sono disponibili anche a 1280x720.
Se come user-agent (sempre in relinker.py) imposto quello commentato "Chrome 64 on Windows 10", allora riesco a vedere l'on demand a 720p.
When I try to install the .zip on Frodo (11.0) the installer just tells me "Missing dependency". I'm assuming the dependencies are those written in the addon.xml, but how to install them ?
Could the README contain some info about that ?
TIA (loved your plugin before throwing away all the config..)
You can get the list of available movies but none plays. Something must have changed upstream...
Per favore, potresti aggiungere nella sezione "Dirette" i link delle dirette di Rai sport web?
Attualmente:
Rai Sport web 1
http://www.raisport.rai.it/dl/raiSport/dirette/ContentItem-71748fa3-9966-4d31-afda-919adee82426.html
Rai Sport web 2
http://www.raisport.rai.it/dl/raiSport/dirette/ContentItem-98a62bed-e520-47f6-8511-ad4ef533eb51.html
Rai Sport web 3
http://www.raisport.rai.it/dl/raiSport/dirette/ContentItem-bd5dc98a-e9b8-452b-a80d-8288b470d955.html
Ho trovato un video nella sezione Replay e anche nella sezione Demand che non si avvia. L'errore che ottengo è questo:
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: unknown url type: /dl/video/stl/Montalbano_2_.srt
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.raitv/default.py", line 447, in
play(url, pathId)
File "/storage/.kodi/addons/plugin.video.raitv/default.py", line 127, in play
srtFile = raiplay.fixSRT(srtUrl)
File "/storage/.kodi/addons/plugin.video.raitv/resources/lib/raiplay.py", line 95, in fixSRT
data = urllib2.urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
File "/usr/lib/python2.7/urllib2.py", line 421, in open
File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
ValueError: unknown url type: /dl/video/stl/Montalbano_2_.srt
-->End of Python script error report<--
Altri video della stessa sezione invece funzionano correttamente.
Grazie,
Dario
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.