Globo.tv Addon [Brazilian TV Show producer]

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
vhd90 Offline
Junior Member
Posts: 43
Joined: Nov 2012
Reputation: 2
Post: #1
WAS: GNT Addon

So, did this just for fun, and it worked.

I do watch with my wife a cooking show they air, but the plugin fetchs all the videos available on the website divided by each TV Show.

The channel features original brazilian tv shows mostly targeted for women, no subs available.

Also saw that other globosat channels has the same structure (multishow, futura, canal brasil, globo news, etc)
So, I'm posting this here to see if there's any interest from other (brazilian or not) users in such add-on.

Also saw older threads about globo.com, I guess it could be done in the future.

Anyhow, here it goes:
https://github.com/downloads/vitorhirota...nt-0.1.zip


It's a very initial version, so any questions or problems, let me know.

UPDATE:
I'm updating the first thread so it keeps easier for new users.

UPDATE 2:
As of version 0.5.5.1, the plugin moved to repository.brazilian.xbmc-addons. Which will allow automatic updates for new versions.

The plugin is available for download now here:
http://vitorhirota.github.com/plugin.video.globotv/
https://bitbucket.org/vitorhirota/reposi...-1.0.0.zip

For issues and code, visit the repository page at https://bitbucket.org/vitorhirota/reposi...mc-addons/

Never have thought about this, but since some people asked, here goes a donation button.
If you are feeling thankful, and would like to buy me a beer, I will definitely be as thankful Smile

[Image: btn_donate_SM.gif]

There are a lot of items that are actually a playlist, and for some reason xbmc will skip the first item. So, make sure you are watching the right item... This should be fixed. Let me know if anyone is still seeing skipping behavior.

I'm also copying the changelog below:
Code:
0.5.5.1
PT: atualização da versão da api na url de hash
EN: api version update in hash url

0.5.5
PT: atualização código de hash
EN: hash code update

0.5.4
PT: Correção da lista de recursos de vídeo
EN: Video resource list fix

0.5.3
PT: Correção de bug
EN: statement fix

0.5.2
PT: Correção de UnicodeError para algumas mensagens de log.
EN: UnicodeError fix for some log messages.

0.5.1
PT: Correção para retro compatibilidade com Eden
EN: Backwards compatibility for Eden

0.5
PT: Alterado estrutura para swift2 e requests.
     Correções:
     - 'skipping unplayable item'
     - cabeçalho de cookie fixo para autorização
     - casos em que aparentemente nenhum video toca (filtragem de playlists)
EN: Major move to swift2 and requests. Bug-fixes.
         Fixes:
         - 'skipping unplayable item' errors, which skipped every first item of playlists
         - authorization issues for exclusive content, which made the plugin stream only in low def
         - cases in which 'apparently no video worked' was probably due to unhandled m3u playlists being fetched, which was using relative paths to globo servers, these are filtered out now

0.4
PT: Possibilidade de assistir aos vídeos em alta-resolução quando disponível, e autenticação, permitindo a usuários assinantes assistir ao conteúdo exclusivo.
EN: Watch HD videos when available and authentication for paying users, allowing for subscribers only video streaming.

0.3.1
PT: Corrigido casos em que próxima página não retorna nenhum vídeo.
EN: Fixed when next page does not bring any results.

0.3
PT: Melhorado a regexp de busca de vídeos, corrigindo casos em que o mesmo id de seção seria buscado duas vezes.
EN: Improved video scraping regexp, correcting cases in which the same section id would be fetched twice.

0.2
PT: Alterado o nome do plugin de gnt para globotv, já que agora busca diretamente no website da globotv.
EN: Change plugin name from gnt to globotv, since it's now scrapping globotv website directly.

0.1
PT: Primeira versão para Eden, listagem básica dos programas disponíveis e seus episódios.
EN: First Version for Eden, basic listing of available shows and its episodes.
(This post was last modified: 2013-11-10 16:13 by vhd90.)
find quote
ericcosta Offline
Junior Member
Posts: 1
Joined: Nov 2012
Reputation: 0
Post: #2
Gonna test it here.

And Globo News would be VERY appreciated. Big Grin

Thanks, man.
find quote
vhd90 Offline
Junior Member
Posts: 43
Joined: Nov 2012
Reputation: 2
Post: #3
Just to update... The addon has been changed to fetch videos from http://globo.tv instead.
The download link above is broken since the repository name changed to plugin.video.globotv

You can download the new addon here:
https://github.com/downloads/vitorhirota...-fixed.zip

Enjoy!
(This post was last modified: 2012-11-28 14:56 by vhd90.)
find quote
naldorp Offline
Junior Member
Posts: 8
Joined: May 2012
Reputation: 0
Post: #4
(2012-11-25 21:10)vhd90 Wrote:  Just to update... The addon has been changed to fetch videos from http://globo.tv instead.
The download link above is broken since the repository name changed to plugin.video.globotv

You can download the new addon here:
https://github.com/downloads/vitorhirota...tv-0.2.zip

Enjoy!

Hi..

It's not working....when I try to install, the xbmc shows the message: "Add-on does not have the correct structure"
find quote
vhd90 Offline
Junior Member
Posts: 43
Joined: Nov 2012
Reputation: 2
Post: #5
Sorry... it's fixed here:
https://github.com/downloads/vitorhirota...-fixed.zip

Let me know if you run in any other problems...
find quote
naldorp Offline
Junior Member
Posts: 8
Joined: May 2012
Reputation: 0
Post: #6
it's working...thanks...I was using it for three days now and there's no problem at all.
find quote
vhd90 Offline
Junior Member
Posts: 43
Joined: Nov 2012
Reputation: 2
Post: #7
nice! thanks for the feedback. glad it was useful Smile
find quote
Wanilton Offline
Posting Freak
Posts: 1,081
Joined: Jun 2010
Reputation: 24
Location: Florianópolis - Brazil
Post: #8
In latest XBMC Frodo, I have error in script

12:51:37 T:7028 NOTICE: -->Python Interpreter Initialized<--
12:51:37 T:7028 NOTICE: cache:
12:51:37 T:7028 NOTICE: Action: list_videos
12:51:37 T:7028 NOTICE: Params: {'action': 'list_videos', 'uri': '/rede-globo/fantastico', 'page': 1, 'rail_id': '4e3192ae91089174a000000c'}
12:51:37 T:7028 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('filter',)
Traceback (most recent call last):
File "D:\xbmcfrodo12\portable_data\addons\plugin.video.globotv\default.py", line 244, in <module>
locals()[action](**params)
File "D:\xbmcfrodo12\portable_data\addons\plugin.video.globotv\default.py", line 106, in list_videos
_filter = kwargs['filter']
KeyError: ('filter',)
-->End of Python script error report<--
12:51:37 T:8576 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.globotv/?action=list_videos&page=1&rail_id=4e3192ae91089174a000000c&uri=%2frede-globo%2ffantastico
12:51:37 T:8576 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.globotv/?action=list_videos&page=1&rail_id=4e3192ae91089174a000000c&uri=%2frede-globo%2ffantastico) failed
12:51:37 T:9244 NOTICE: Thread XBPyThread start, auto delete: false
12:51:37 T:9244 NOTICE: -->Python Interpreter Initialized<--
12:51:38 T:9244 NOTICE: cache:
12:51:38 T:9244 NOTICE: Action: list_rails
12:51:38 T:9244 NOTICE: Params: {'action': 'list_rails', 'path': 'root/jornalismo/rede-globo/fantastico', 'uri': '/rede-globo/fantastico'}
12:51:38 T:8468 NOTICE: Thread Background Loader start, auto delete: false

http://www.xbmcbrasil.net
XBMC Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham - Aeon MQ 5
My Room Entertaiment´s
About me
find quote
vhd90 Offline
Junior Member
Posts: 43
Joined: Nov 2012
Reputation: 2
Post: #9
Wanilton, can you describe your actions (ie, what items/path have you chose) to get the error? Also, is this happening to other items?
(This post was last modified: 2012-11-30 03:15 by vhd90.)
find quote
vhd90 Offline
Junior Member
Posts: 43
Joined: Nov 2012
Reputation: 2
Post: #10
I've just uploaded a new version, improving the regexp to scrape videos.
I noticed some cases in which sections of a show would repeat the videos fetched, even though the title of the section was right.

I'm trying to work out a way to get the videos in higher def. Right now it's streaming the very low def videos for mobiles.

Version 0.3 available here:
https://github.com/vitorhirota/plugin.vi.../downloads

Wanilton, also added some code that should prevent you from having that error message again.

There are a lot of items that are actually a playlist, and in some cases, for some reason it will skip the first item. So, make sure you are watching the right item...
find quote
Wanilton Offline
Posting Freak
Posts: 1,081
Joined: Jun 2010
Reputation: 24
Location: Florianópolis - Brazil
Post: #11
@vhd90, it´s work fine now, thanks...

http://www.xbmcbrasil.net
XBMC Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham - Aeon MQ 5
My Room Entertaiment´s
About me
find quote
moshtagh Offline
Junior Member
Posts: 8
Joined: Sep 2011
Reputation: 0
Post: #12
Thank you so much my wife is going to love me for this Big Grin
find quote
ls84 Offline
Junior Member
Posts: 1
Joined: Dec 2012
Reputation: 0
Post: #13
Yes! This is so cool. Got it working for the most part.

A couple thoughts (I'm an XMBC noob, so I apologize):

We subscribe to the site so can watch the Para Assisantes videos. Sometimes they don't work, crashing XBMC. But if I log in on a enough internet browsers and start with a free video, I am able to authenticate somehow and then watch the videos. Any way to build-in an authentication step to watch pay content more fluidly?

Again--I expect nothing. This is just what I've been looking for. Thanks!
find quote
vhd90 Offline
Junior Member
Posts: 43
Joined: Nov 2012
Reputation: 2
Post: #14
(2012-12-25 21:00)ls84 Wrote:  Any way to build-in an authentication step to watch pay content more fluidly?

Sure, there's a new version on the way supporting authentication.

I will post here once I get it done!
find quote
gts02 Offline
Junior Member
Posts: 1
Joined: Jan 2012
Reputation: 0
Post: #15
@vhd90 you rock!! I've been waiting for this for so long! Thank you so so much! Smile
find quote
Post Reply