Add-on Request - [Add-on Request] Swiss (French and Italian) TV News

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
A.T.E. Offline
Junior Member
Posts: 8
Joined: May 2016
Reputation: 0
Post: #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
find quote
MetalChris Offline
Fan
Posts: 678
Joined: Jan 2014
Reputation: 35
Location: U.S.A.
Post: #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).

XBMC Gotham (13.2) on ThinkPad T400 Ubuntu 12.04.5 | Kodi Jarvis (16.1) on HTPC Lubuntu 14.04 | My Add-ons | My Repo
(This post was last modified: 2016-07-10 04:47 by MetalChris.)
find quote
A.T.E. Offline
Junior Member
Posts: 8
Joined: May 2016
Reputation: 0
Post: #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
find quote
A.T.E. Offline
Junior Member
Posts: 8
Joined: May 2016
Reputation: 0
Post: #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
find quote
MetalChris Offline
Fan
Posts: 678
Joined: Jan 2014
Reputation: 35
Location: U.S.A.
Post: #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.

XBMC Gotham (13.2) on ThinkPad T400 Ubuntu 12.04.5 | Kodi Jarvis (16.1) on HTPC Lubuntu 14.04 | My Add-ons | My Repo
find quote
MetalChris Offline
Fan
Posts: 678
Joined: Jan 2014
Reputation: 35
Location: U.S.A.
Post: #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.

XBMC Gotham (13.2) on ThinkPad T400 Ubuntu 12.04.5 | Kodi Jarvis (16.1) on HTPC Lubuntu 14.04 | My Add-ons | My Repo
(This post was last modified: 2016-10-31 03:40 by MetalChris.)
find quote