• 1
  • 13
  • 14
  • 15(current)
  • 16
  • 17
  • 21
[RELEASE] RTP Play Video addon (Portuguese Television)
Hi @enen92.

I too use this add-on extensively.

When I am at the linux command line I use a one-liner to play media from it. Last weekend that one-liner was affected by the same "mata-bicho" annoying media (although I appreciate Bruno Nogueira humour... but enough is enough)

Since you guys are too wanting to enjoy that content, I will share with you this line of code:

for i in $(curl 'http://www.rtp.pt/play/p361/musica-com-pes-e-cabeca' | grep -a 'p361' | grep -a episode | tr -s ' ' | cut -f 3 -d ' ' | cut -f2 -d'"' | cut -f4 -d'/');do mpv $(curl https://www.rtp.pt/play/p361/$i/musica-com-pes-e-cabeca | grep 'mp3' | grep 'file\:' | grep ,$ | cut -d '"' -f2) --no-ytdl --ao alsa ;done

this is for one of my favorite shows. But you can easily adapt it to whatever is in their repository.

If there is any need to explain what and each part of the code is, feel free to ask.

Cheers
Reply
(2017-12-19, 12:17)mccurly Wrote: Hi @enen92.

I too use this add-on extensively.

When I am at the linux command line I use a one-liner to play media from it. Last weekend that one-liner was affected by the same "mata-bicho" annoying media (although I appreciate Bruno Nogueira humour... but enough is enough)

Since you guys are too wanting to enjoy that content, I will share with you this line of code:

for i in $(curl 'http://www.rtp.pt/play/p361/musica-com-pes-e-cabeca' | grep -a 'p361' | grep -a episode | tr -s ' ' | cut -f 3 -d ' ' | cut -f2 -d'"' | cut -f4 -d'/');do mpv $(curl https://www.rtp.pt/play/p361/$i/musica-com-pes-e-cabeca | grep 'mp3' | grep 'file\:' | grep ,$ | cut -d '"' -f2) --no-ytdl --ao alsa ;done

this is for one of my favorite shows. But you can easily adapt it to whatever is in their repository.

If there is any need to explain what and each part of the code is, feel free to ask.

Cheers

Thanks for the links. Live is 80% working atm in the addon, the missing 20% is due to another useless protection. I'll try to find some time to update it soon.
Reply
enen92, you're welcome. the way I figured out my way was to grep with that ',$' string. since your add-on is in another language than shell scripting, (python maybe?) I won't be able to help any further (with it, I mean).

anyway, cheers and thanks for your add-on, support, and feedback!
Reply
(2017-12-19, 15:42)enen92 Wrote:
(2017-12-19, 12:17)mccurly Wrote: Hi @enen92.

I too use this add-on extensively.

When I am at the linux command line I use a one-liner to play media from it. Last weekend that one-liner was affected by the same "mata-bicho" annoying media (although I appreciate Bruno Nogueira humour... but enough is enough)

Since you guys are too wanting to enjoy that content, I will share with you this line of code:

for i in $(curl 'http://www.rtp.pt/play/p361/musica-com-pes-e-cabeca' | grep -a 'p361' | grep -a episode | tr -s ' ' | cut -f 3 -d ' ' | cut -f2 -d'"' | cut -f4 -d'/');do mpv $(curl https://www.rtp.pt/play/p361/$i/musica-com-pes-e-cabeca | grep 'mp3' | grep 'file\:' | grep ,$ | cut -d '"' -f2) --no-ytdl --ao alsa ;done

this is for one of my favorite shows. But you can easily adapt it to whatever is in their repository.

If there is any need to explain what and each part of the code is, feel free to ask.

Cheers

Thanks for the links. Live is 80% working atm in the addon, the missing 20% is due to another useless protection. I'll try to find some time to update it soon. 

Hey Enen92, is there a way for me to get 80% live working as well?
Reply
(2017-12-23, 18:08)vincez28 Wrote:
(2017-12-19, 15:42)enen92 Wrote:
(2017-12-19, 12:17)mccurly Wrote: Hi @enen92.

I too use this add-on extensively.

When I am at the linux command line I use a one-liner to play media from it. Last weekend that one-liner was affected by the same "mata-bicho" annoying media (although I appreciate Bruno Nogueira humour... but enough is enough)

Since you guys are too wanting to enjoy that content, I will share with you this line of code:

for i in $(curl 'http://www.rtp.pt/play/p361/musica-com-pes-e-cabeca' | grep -a 'p361' | grep -a episode | tr -s ' ' | cut -f 3 -d ' ' | cut -f2 -d'"' | cut -f4 -d'/');do mpv $(curl https://www.rtp.pt/play/p361/$i/musica-com-pes-e-cabeca | grep 'mp3' | grep 'file\:' | grep ,$ | cut -d '"' -f2) --no-ytdl --ao alsa ;done

this is for one of my favorite shows. But you can easily adapt it to whatever is in their repository.

If there is any need to explain what and each part of the code is, feel free to ask.

Cheers

Thanks for the links. Live is 80% working atm in the addon, the missing 20% is due to another useless protection. I'll try to find some time to update it soon.  

Hey Enen92, is there a way for me to get 80% live working as well? 
I don't know if this is the same issue, but I got my dad a Shield TV a few months ago and about 2 or 3 weeks ago he started getting the error message,  "couldn't open URL/check connection". He says he hasn't been able to watch anything for like a week straight now. Unlike the previous crappy box we had which ran on linux there are no options I can change in the android version. Or at least no where that I can find. Is there a file I can edit using file explorer to help get some of these streams back up?
Reply
enen92 ' Wrote: Thanks for the links. Live is 80% working atm in the addon, the missing 20% is due to another useless protection. I'll try to find some time to update it soon.

hello again @enen92.

the protection you are talking about is anyway related to the "fileKey: (...)" lines that are present in the source code of the web pages from rtp play websites?
if that is the case the line that contains the url to the media file is the one ending with a "," (comma) and that is why I "grepped" for ",$" string which allowed me then to have EITHER :
the direct url for the music file;

OR:

to infer the URLs of the desired video files.


the extraction of the video URLs goes as follows:


(since all the media is referred to by an id beginning with the letter "p" followed by a bunch of numbers that are unique to that series of media content, one can profit from this way of naming to fetch (almost directly), that particular video because it is predictable.

this is the the first common part:
"https://streaming-ondemand.rtp.pt/nas2.share/h264/512x384"

after that the id of the series of videos follows:

("p3181" in my example)

after that it ends with the name of the desired file:

"p3181_1_20171222.mp4" (in my example) which means:
"p3181" is the series id;
then "_1_" means that this particular video broadcast had more than one part...
and finally the date string "20171222" that refers to the broadcast date. (in the example 22nd of December 2017).

if one takes this url scheme, one can in fact play it with any media program that can take a network file as an input.

"https://streaming-ondemand.rtp.pt/nas2.s...171222.mp4"


that is all

seasons greetings!
Reply
Wooo Hoo! the latest update seems to have the live channels back up and running!

Thanks! Have a Happy Holidays!
Reply
So is RTP actively trying to block people from streaming using Kodi? RTP play stopped working again yesterday. Still doesn't work today. What is going on?
Reply
Probably the update have not reached your machine yet. Try to manually check for updates
Reply
Hello @enen92.

I don't know if you have already addressed this question so I beg your pardon for bringing this up (again).

Do you plan on restoring access to the on-demand content of rtp's site?

Thanks.
Reply
3.0.1 is the latest. 

Sometimes when he clicks on the live stream nothing happens, sometimes when he clicks on a live stream he gets Playback failed. He has a Nvidia Shield TV. I don't know if there are settings in the machines video settings that should be turned off, but when RTP Play does work it works well. It just keeps failing to play videos a lot more often lately. With the latest failure starting two days ago.
Reply
An update 3.1.2 was sent last night to the Repo it should already be available
Reply
It's not up yet on the official repo and I can't find that version for download manually on the rtp play site either.
Reply
(2018-01-05, 21:51)gaald Wrote: It's not up yet on the official repo and I can't find that version for download manually on the rtp play site either.
 It is in the official repository, I received the update on my systems. Just go to addon info screen in Kodi and click on the update icon. Also, this plugin is unnoficial and not supported or endorsed by RTP so you won't find any version on the RTP play website.
Reply
Thumbs Up 
Great job Enen....
Hope u can do ur magic with VOD....would be great thanx !
Reply
  • 1
  • 13
  • 14
  • 15(current)
  • 16
  • 17
  • 21

Logout Mark Read Team Forum Stats Members Help
[RELEASE] RTP Play Video addon (Portuguese Television)5