vitorhirota / plugin.video.globotv Goto Github PK
View Code? Open in Web Editor NEWGlobo.tv XBMC Plugin
License: GNU General Public License v3.0
Globo.tv XBMC Plugin
License: GNU General Public License v3.0
Caro Vitor, estou tentando rodar o addon globo.TV na raspberry. Ela esta portando a última versão do OpenElec com o XBMC. O addon é instalado normalmente e as opções também são listadas porém quando tento rodar qualquer vídeo é apresentado um erro de script. Consultei o log do xbmc e copio abaixo para talvez ajuda-lo a identificar o problema. Também gostaria de obter informações de como aprender sobre programação destes Addons e também contribuir já que também sou programador. Parabéns pelo trabalho e se puder me dar mais informações deste addon na raspberry agradeço.
Abaixo segue log. Caso precise de mais alguma informação do sistema me oriente que lhe envio!
Abraço
Eduardo Duarte
11:15:46 T:2786137184 NOTICE: -->Python Interpreter Initialized<--
11:15:53 T:2786137184 NOTICE: [xbmcswift2] Request for "/play/1797790" matches rule for function "play"
11:15:56 T:2786137184 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: cannot import name constants
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.globotv-master/addon.py", line 169, in
plugin.run()
File "/storage/.xbmc/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 332, in run
items = self._dispatch(self.request.path)
File "/storage/.xbmc/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 306, in _dispatch
listitems = view_func(**items)
File "/storage/.xbmc/addons/plugin.video.globotv-master/addon.py", line 56, in play
videos = api.get_videos(vid)
File "/storage/.xbmc/addons/plugin.video.globotv-master/resources/lib/globo.py", line 206, in get_videos
data = self._get_video_info(video_id)
File "/storage/.xbmc/addons/plugin.video.globotv-master/resources/lib/globo.py", line 85, in _get_video_info
data = self._get_cached(INFO_URL % video_id)['videos'][0]
File "/storage/.xbmc/addons/plugin.video.globotv-master/resources/lib/globo.py", line 53, in _get_cached
and json.loads(r.text) or r.text)
File "/storage/.xbmc/addons/script.module.requests/lib/requests/models.py", line 577, in text
encoding = self.apparent_encoding
File "/storage/.xbmc/addons/script.module.requests/lib/requests/models.py", line 482, in apparent_encoding
return chardet.detect(self.content)['encoding']
File "/storage/.xbmc/addons/script.module.requests/lib/requests/packages/charade/init.py", line 22, in detect
from . import universaldetector
File "/storage/.xbmc/addons/script.module.requests/lib/requests/packages/charade/universaldetector.py", line 29, in <modu$
from . import constants
ImportError: cannot import name constants
-->End of Python script error report<--
11:15:56 T:3045372880 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.globotv/play/1797790]
11:16:01 T:2786137184 NOTICE: Thread BackgroundLoader start, auto delete: false
11:18:42 T:2786137184 NOTICE: Thread XBPyThread start, auto delete: false
11:18:42 T:2786137184 NOTICE: -->Python Interpreter Initialized<--
11:18:49 T:2786137184 NOTICE: [xbmcswift2] Request for "/rede-globo/globo-reporter/4dff96df96bfbb284500001c" matches rule for function "list_rail_videos"
11:18:50 T:2786137184 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
Hi,
Using the latest version from the repository, i get the error message: "Player not recognized. Globo.tv". This started today, 28/01.
Thanks
Hi.
Thank you for an excellent application.
I am trying to use the script on XBMC 12.0 Frodo, and i get a script error when starting a stream.
Looks like a StorageServer script is used that is not compatible with Frodo...
Anything you have seen before?
22:58:06 T:2859172960 NOTICE: [globotv] authenticate: successfully authenticated
22:58:06 T:2859172960 NOTICE: [globotv] : Params: {'action': 'play', 'video_id': '2386697'}
22:58:08 T:2859172960 NOTICE: [globotv] get_hashes: video id: 2386697, resource ids: 51104fff9214476489000665|5110558c921447647d0006a1|51105405921447648400079a|51105d5e9214476493000691
22:58:08 T:2859172960 NOTICE: [globotv] get_hashes: hashes: {"hash":["0313638294026704737240n+zhH9FI+7Tj4Yjknq1n0w","0313638294023444016705Jkb+vRK2aEm5+AUS5YyBXw","03136382940229915987228/bs6AuI2Ac1WZ/H0Zs++g","0313638294027056072968CP8b+GO475C+go+0hnZ0GA"],"product":"Globo Mídia 3.0 - 500"}
22:58:09 T:2944230496 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: unsupported operand type(s) for +: 'int' and 'str'
Traceback (most recent call last):
File "/storage/.xbmc/addons/script.common.plugin.cache/default.py", line 40, in
run()
File "/storage/.xbmc/addons/script.common.plugin.cache/default.py", line 35, in run
s.run()
File "/storage/.xbmc/addons/script.common.plugin.cache/lib/StorageServer.py", line 232, in run
self._runCommand(data)
File "/storage/.xbmc/addons/script.common.plugin.cache/lib/StorageServer.py", line 164, in _runCommand
res = self._sqlGet(data["table"], data["name"])
File "/storage/.xbmc/addons/script.common.plugin.cache/lib/StorageServer.py", line 423, in _sqlGet
self._log(name + " - " + table, 2)
TypeError: unsupported operand type(s) for +: 'int' and 'str'
-->End of Python script error report<--
StorageServer.py
def _sqlGet(self, table, name):
self._log(name + " - " + table, 2)
self._checkTable(table)
self._sqlExecute("SELECT data FROM " + table + " WHERE name = %s", name)
for row in self.curs:
self._log("Returning : " + str(repr(row[0]))[0:20], 3)
return row[0]
self._log("Returning empty", 3)
return " "
Cheers
Bolleboll
Hi Vitor,
you don't need to mimic the js behavior, just think that the I function runs the md5 algorithm.
Just make base64.b64encode(hashlib.md5())
Qualquer canal cai com 5 minutos de video
Hi Vitor,
Thanks a lot for the update.
But unfortunately, I am not able to install it. In XBMC I get a "Dependencies not met" and the logs(logvel=1) show:
16:19:42 T:140356870584192 DEBUG: GetZipList - Processing zip://%2fhome%2folivebuntu%2fBureau%2fplugin.video.globotv-master.zip/
16:19:42 T:140356870584192 DEBUG: Addon plugin.video.globotv requires script.module.requests version 1.0.4 which is not available
The plugin needs requests module.
I tried on my HTPC (Xtreamer ultra) with XBMC 11 (running on Openelec).
I also tried on my Laptop running Ubuntu 12.04, XBMC 11 and then tried a nighty build XBMC 13, but I still got this error message.
Thanks
Regards,
Olivier
Boa noite Vitor,
Parabens pelo plugin, estava esperando pela GloboTV por muito tempo mas infelizmente nao estou conseguindo assistir nenhum conteudo do site. Quando clico para assistir o video estou tento o mesmo problema ja comentado por outro usuario:
Sometimes it shows an error message: "Erro: falha no plugin globo.tv" or "Erro: falha no plugin blabla.cache".
When cache error message shows up, the Opening Signal (Abrindo Sinal) get stucked. If you press Cancel, XBMC restarts (only the application).
Estou usando o xbian para acessar o plugin.
Please help me!!!
I know that this could not be the right place where writing to you but yesterday I was finally able to test your new plugin version and it's wonderful! I even do not know how to thank you for your incredible work as this plugin is perfect!
Muito obrigado
Massimo
Se vocè passa em Milao na Italia vou te agradeçer pessoalmente!
Hi Vitor,
First of all, thanks a lot for this very useful plugin.
I subscribed to Globo Midia, so, I am able to see all videos.
But when I try Novelas-Salve Jorge- Capítulo de terça-feira, dia 08/01/2013, na íntegra, the first video of the four ones is skipped with an error message.
Please find the log there: http://pastebin.com/U5cFdccb
From what I understood the 4 video_ids are:
2334155
2334161
2334175
2334188
But I don't know why, the plugin tries to get video_id=2334198 at first.
Sometimes it can skip this video and go to the next one: 2334155, but most of the time it goes to the second video_id=2334161.
Thanks a lot.
I may help to improve this pluggin, but I'm new to Python and XBMC.
EDIT: the error comes from function "def get_list_items(data):"
try:
title, date, thumb, duration, descr = eval(cache.get(item['id']))
except:
title, date, thumb, duration, descr = [data['title'], '', '', '', '']
regards,
Olivier
here I see the programs list but when I click it show "addon.py error"
Thanks
Problem of script failed XBMC no Galaxy S2 android jelly Bean.
Hi Vitor,
this is not really an issue but even if quality is set to "SD Only" all videos I'm trying to see are in HD.
This is not really an issue but since DSL are not usually so fast I got any video buffering all times..
I'm making some tests with different videos, novelas, variedades, etc..
BTW, I can't stop making greetings to you for your incredible work and for the effort you are dedicating to keep your plugin always updated...the challenge to convert globo API to python is very hard!
Muito obrigado
Deus abençoe voce!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.