Release La7 on demand plugin
#1
This addon is broken. La 7 On Demand service has been shut down

Hi everybody,

I made a plugin to watch La7 catch up TV.

Source code can be found at github:
https://github.com/nightflyer73/plugin.v...7ondemand/

You can also download a snapshot as a zip file containing all the code from github. Copy the root folder into the addons folder of xbmc (NB: each OS has its specific path)

Comments and suggestions are very welcome.

Bye!
Reply
#2
Thanks!
Reply
#3
Hi Nightflyer, i have installed with success your plugin. The section "archivio cult" works, but "la settimana" not. I'm not able to reproduce any video.

The xbmc log says:

19:21:05 T:4984 WARNING: CVideoInfoTag::GetDurationFromMinuteString <runtime> should be in minutes. Interpreting '0:35:47' as 0 minutes

If you need a full log i'll post it on pastebin.
Thanks for your work (btw the other plugin for the rai channel is amazing!)
Reply
#4
(2013-04-15, 19:35)henrava Wrote: Hi Nightflyer, i have installed with success your plugin. The section "archivio cult" works, but "la settimana" not. I'm not able to reproduce any video.

The xbmc log says:

19:21:05 T:4984 WARNING: CVideoInfoTag::GetDurationFromMinuteString <runtime> should be in minutes. Interpreting '0:35:47' as 0 minutes

If you need a full log i'll post it on pastebin.

I was able to reproduce the problem. It is not related to the warning you are reporting. Probably upstream video URL's changed. I'll investigate this issue soon.
Reply
#5
I've just updated the plugin to v1.0.1. Now all the videos should work again and I also fixed the problems with the video metadata.
Reply
#6
Thanks Bro Nice Share Not Tried It Yet Though.. But I Believe It's Cool
Yeah, Me, Myself, and I, The Three Musketeers
Image
Reply
#7
(2013-04-16, 11:09)nightflyer Wrote: I've just updated the plugin to v1.0.1. Now all the videos should work again and I also fixed the problems with the video metadata.
Nice Bro
Yeah, Me, Myself, and I, The Three Musketeers
Image
Reply
#8
Hi Nightflyer, something in the update broke the plugin.
From my log:

12:27:42 T:1408 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: getVideoURL() takes exactly 4 arguments (3 given)
Traceback (most recent call last):
File "D:\XBMC_Frodo_12_2\portable_data\addons\plugin.video.la7ondemand\default.py", line 128, in <module>
show_episodes(mode, name)
File "D:\XBMC_Frodo_12_2\portable_data\addons\plugin.video.la7ondemand\default.py", line 113, in show_episodes
addLinkItem(ond.getVideoURL(episode["xmlURL"], bitrate), liStyle)
TypeError: getVideoURL() takes exactly 4 arguments (3 given)
-->End of Python script error report<--
12:27:42 T:2668 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.la7ondemand/?mode=epg&name=tgla7
12:27:42 T:2668 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.la7ondemand/?mode=epg&name=tgla7) failed
12:27:42 T:2580 NOTICE: Thread XBPyThread start, auto delete: false
12:27:42 T:2580 NOTICE: -->Python Interpreter Initialized<--
12:27:42 T:1484 NOTICE: Thread Background Loader start, auto delete: false
12:27:51 T:3888 NOTICE: Thread XBPyThread start, auto delete: false
12:27:51 T:3888 NOTICE: -->Python Interpreter Initialized<--
12:27:52 T:3888 ERROR: NEWADDON Invalid Date Format ""
12:27:52 T:3888 WARNING: CVideoInfoTag::GetDurationFromMinuteString <runtime> should be in minutes. Interpreting '0:29:08' as 0 minutes
12:27:52 T:3888 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: getVideoURL() takes exactly 4 arguments (3 given)
Traceback (most recent call last):
File "D:\XBMC_Frodo_12_2\portable_data\addons\plugin.video.la7ondemand\default.py", line 133, in <module>
show_episodes(mode, name)
File "D:\XBMC_Frodo_12_2\portable_data\addons\plugin.video.la7ondemand\default.py", line 113, in show_episodes
addLinkItem(ond.getVideoURL(episode["xmlURL"], bitrate), liStyle)
TypeError: getVideoURL() takes exactly 4 arguments (3 given)
-->End of Python script error report<--
12:27:52 T:2668 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.la7ondemand/?mode=cult&name=ottoemezzo
12:27:52 T:2668 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.la7ondemand/?mode=cult&name=ottoemezzo) failed

I have errors in both categories, "la settimana2 and "cult".
Ciao and Thanks
Reply
#9
(2013-04-16, 12:34)henrava Wrote: Hi Nightflyer, something in the update broke the plugin.

Your update was not successful. Your copy of default.py is still the old one.
Reply
#10
You are right. I re-download the updated plugin and all is ok. Sorry for my mistake.
Tested with many videos, all is good.

Big Thanks

ps: I think the plugin is now ok for xbmc official repo
Reply
#11
I've just pushed version 1.0.2.

Changelog:
- Updated required python API version to 2.1.0. This addon should now work with both XBMC 12 (Frodo) and XBMC 13 (Gotham)
- Updated because of new XMLs and new HTML video URLs (fix #1)
- Removed no longer needed addon settings
Reply
#12
It seems this service has been shut down. Even la7 page on cubovision is no longer updated. This addon won't work anymore. Sorry.
Reply
#13
Hi nightflyer, are you talking about http://www.la7.it/rivedila7 ?
It seems working now, but in the past i saw LA7 on demand only through your addon, so I don't know the previous web interface.

Thanks a lot.

---
Thank for you support to Italian XBMC users!
If I could, I kindly reccomend you a couple of streaming TV interesting to add to XBMC:
1. http://www.tvsvizzera.it/ (recently opened, see http://www.dday.it/redazione/11820/La-tv...liani.html)
2. Mediaset. I now you are not interested on it, but something is interesting to see. I.E. Le Iene, Zeling, and so on...
Reply
#14
(2014-02-09, 12:39)patanegra Wrote: Hi nightflyer, are you talking about http://www.la7.it/rivedila7 ?
It seems working now, but in the past i saw LA7 on demand only through your addon, so I don't know the previous web interface.

"Rivedi La7" is a different service and a new addon is required.

(2014-02-09, 12:39)patanegra Wrote: Thank for you support to Italian XBMC users!
If I could, I kindly reccomend you a couple of streaming TV interesting to add to XBMC:
1. http://www.tvsvizzera.it/ (recently opened, see http://www.dday.it/redazione/11820/La-tv...liani.html)
2. Mediaset. I now you are not interested on it, but something is interesting to see. I.E. Le Iene, Zeling, and so on...

I already planned an addon for tvsvizzera but I 'm not going to write an addon for Mediaset.
Reply
#15
Hi. I just installed this addon (git version)in gotham beta3 and it doesn't work. here's the error log:
Code:
13:34:25 T:2608   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: File not found.
                                            Traceback (most recent call last):
                                              File "C:\Users\Emanuele\AppData\Roaming\XBMC\addons\plugin.video.la7ondemand\default.py", line 113, in <module>
                                                show_last_week()
                                              File "C:\Users\Emanuele\AppData\Roaming\XBMC\addons\plugin.video.la7ondemand\default.py", line 49, in show_last_week
                                                grid = ond.getGrid(ond.EPG)
                                              File "C:\Users\Emanuele\AppData\Roaming\XBMC\addons\plugin.video.la7ondemand\resources\lib\libLa7.py", line 23, in getGrid
                                                xmldata = urllib2.urlopen(url).read()
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 127, in urlopen
                                                return _opener.open(url, data, timeout)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 410, in open
                                                response = meth(req, response)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 523, in http_response
                                                'http', request, response, code, msg, hdrs)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 448, in error
                                                return self._call_chain(*args)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 382, in _call_chain
                                                result = func(*args)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib2.py", line 531, in http_error_default
                                                raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
                                            HTTPError: HTTP Error 403: File not found.
                                            -->End of Python script error report<--
Reply

Logout Mark Read Team Forum Stats Members Help
La7 on demand plugin1