[Add-on Request] [Add-on Request] Swiss (French and Italian) TV News - Printable Version
+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Add-ons (/forumdisplay.php?fid=26)
+---- Forum: Requests (/forumdisplay.php?fid=251)
+---- Thread: [Add-on Request] [Add-on Request] Swiss (French and Italian) TV News (/showthread.php?tid=276776)
[Add-on Request] Swiss (French and Italian) TV News - A.T.E. - 2016-05-26 00:00
Would anyone be so kind to make an add-on to see these video streams:
And another one for this:
RE: [Add-on Request] Swiss (French and Italian) TV News - MetalChris - 2016-07-03 15:27
Here ya go (at least for the first two)...
EDIT: link removed. Please download the latest version from post #6.
It's nice when websites provide a full RSS feed. However, some of the links in the feeds seem to be broken. The add-on will check for these and remove them from the listing, so even though there are 40 stories in each feed the add-on will return less than that.
I've tested on Linux (Ubuntu 12.04 & Lubuntu 14.04), Mac OS (Lion), and Android (Lollipop), running Gotham, Helix, and Isengard, and experienced no issues.
If you have any issues with the add-on, please post a log (wiki).
RE: [Add-on Request] Swiss (French and Italian) TV News - A.T.E. - 2016-07-04 17:13
That's great. I have tested it on Xbian (Raspberry Pi 2). It basically works.
So far I have found two issues, but none of them is a malfunctioning that can be captured in a log (I suppose):
1. the addon fails to render the special characters such as the accented vowels (e.g.: è, é, à...). I have tried to add a line in the addon.py file reading # -*- encoding: utf-8 -*- but it has no effect.
2. as you wrote, some links in the RSS feed are broken. Strange, as they are accessible through the web link but not the direct file link in the RSS html page. Bad, as one of the broken links is the main 30 minute tv news link.
Anyway, I have tried to improve the addon:
- Add-on renamed from "RTS Un / RTS Deux" to "RTS - Info"
- Change icon and fanart
- Add UTF-8 encoding
As you will see, I have tried to do things without having a programming knowledge. Still, if you would be still willing to develop it, I would definitely try to help.
These are the files that I have made:
You can download it from address: http://s000.tinyupload.com/?file_id=21718497557879881727
You can download it from address: http://s000.tinyupload.com/?file_id=86020803931783644684
You can download it from address: http://s000.tinyupload.com/?file_id=02914419469898223758
RE: [Add-on Request] Swiss (French and Italian) TV News - A.T.E. - 2016-07-05 19:07
- Rename the two folders
You can download it from address: http://s000.tinyupload.com/?file_id=31112247675576398779
RE: [Add-on Request] Swiss (French and Italian) TV News - MetalChris - 2016-07-07 03:03
(2016-07-04 17:13)A.T.E. Wrote: Hi,
(2016-07-05 19:07)A.T.E. Wrote: Version 0.0.9
You've been busy! Nice modifications.
The encoding is definitely an issue. Not too bad on my 'buntu systems, but it's terrible on Android and even worse on my Macbook. I did try to force UTF-8, but it didn't change anything. I'll look into this and see if I find a way to clean things up a bit.
As far as the 30 minute segments go - If they work on the website, I'm pretty sure I can get those directly from there. I'll put some time into this on the weekend and maybe get an update out then.
RE: [Add-on Request] Swiss (French and Italian) TV News - MetalChris - 2016-07-10 02:35
Ok, I think I've got this working (better) now. I've experimented with different parsers and encodings, and I think I've come up with a combination that works well. We're both using flavors of linux, but it seems you're seeing different results than I, so for now, I've added options in the add-on settings that will let you choose between two different parsers and two different encodings. The default settings seem to provide uniform results on all my devices, with accented vowels, whereas previously I was getting different results on each device. Let me know if any combination provides correct, or at least better results for you. I've also made a feeble attempt at translating the add-on description to French. My understanding of French is limited, but I do know that a missing, or misplaced accent can change the meaning of the word, so the encoding issue really needs to be worked out.
As far as the dead links, I've been able to direct the add-on to scrape links from the website when it finds a dead link in the xml feed. This results in a slight slow down as the add-on now has to poll the website an additional ~10-15 times. As a bonus though, after investigating the website for stream links, I've also found that I can get the live stream, RTS Info en continu, in 720p.
Give this one a try, and let me know how it works for you:
RTS - Info - v 0.1.1
If you have any issues with the add-on, please post a log (wiki) to pastebin or similar site.
EDIT: The live stream is geo-blocked for Switzerland only though, as are the streams from the website links.