[Add-on Request] Swiss (French and Italian) TV News
#1
Would anyone be so kind to make an add-on to see these video streams:

http://www.rts.ch/video/info/journal-19h...ss/podcast
http://www.rts.ch/video/info/journal-12h...ss/podcast

And another one for this:

http://www.rsi.ch/la1/programmi/informaz...ss/podcast
Reply
#2
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).
Kodi Matrix on Dell Optiplex 980 Lubuntu 22.04 | Kodi Matrix on HTPC Lubuntu 20.04 | My Add-ons | Legacy Repo | Matrix Repo
>>>>> Newest MetalChris Addons: Local Now | Redbox | NEWSnet| NHL Radio | Weather Unlocked
Reply
#3
Hi,
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:

Version 0.0.8
- Add-on renamed from "RTS Un / RTS Deux" to "RTS - Info"

Version 0.0.7
- Change icon and fanart

Version 0.0.6
- 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:

plugin.video.rts12-0.0.6.zip
You can download it from address: http://s000.tinyupload.com/?file_id=2171...7879881727

plugin.video.rts12-0.0.7.zip
You can download it from address: http://s000.tinyupload.com/?file_id=8602...1783644684

plugin.video.rtsinfo-0.0.8.zip
You can download it from address: http://s000.tinyupload.com/?file_id=0291...9898223758
Reply
#4
Version 0.0.9
- Rename the two folders

plugin.video.rtsinfo-0.0.9.zip
You can download it from address: http://s000.tinyupload.com/?file_id=3111...5576398779
Reply
#5
(2016-07-04, 17:13)A.T.E. Wrote: Hi,
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:

Version 0.0.8
- Add-on renamed from "RTS Un / RTS Deux" to "RTS - Info"

Version 0.0.7
- Change icon and fanart

Version 0.0.6
- 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:

plugin.video.rts12-0.0.6.zip
You can download it from address: http://s000.tinyupload.com/?file_id=2171...7879881727

plugin.video.rts12-0.0.7.zip
You can download it from address: http://s000.tinyupload.com/?file_id=8602...1783644684

plugin.video.rtsinfo-0.0.8.zip
You can download it from address: http://s000.tinyupload.com/?file_id=0291...9898223758

(2016-07-05, 19:07)A.T.E. Wrote: Version 0.0.9
- Rename the two folders

plugin.video.rtsinfo-0.0.9.zip
You can download it from address: http://s000.tinyupload.com/?file_id=3111...5576398779

You've been busy! Smile 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.
Kodi Matrix on Dell Optiplex 980 Lubuntu 22.04 | Kodi Matrix on HTPC Lubuntu 20.04 | My Add-ons | Legacy Repo | Matrix Repo
>>>>> Newest MetalChris Addons: Local Now | Redbox | NEWSnet| NHL Radio | Weather Unlocked
Reply
#6
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.
Kodi Matrix on Dell Optiplex 980 Lubuntu 22.04 | Kodi Matrix on HTPC Lubuntu 20.04 | My Add-ons | Legacy Repo | Matrix Repo
>>>>> Newest MetalChris Addons: Local Now | Redbox | NEWSnet| NHL Radio | Weather Unlocked
Reply

Logout Mark Read Team Forum Stats Members Help
[Add-on Request] Swiss (French and Italian) TV News0