Giter Club home page Giter Club logo

python-xbmc's People

Contributors

darvs avatar jcsaaddupuy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-xbmc's Issues

Python 3 issue

I installed this module using pip3 in ubuntu 12.04
sudo pip3 install xbmc-json

The installation completed OK.

However when importing the class I am getting this error:

Traceback (most recent call last):
  File "/usr/local/bin/pvr", line 97, in <module>
    from xbmcjson import XBMC, PLAYER_VIDEO
ImportError: cannot import name 'XBMC'

Is python3.4 fully supported?

Android device import issue

Why xbmcjson import fails in android system.
OS = Android 4.4.2 (kernel: Linux 3.0.36+)

05:17:09 T:1866865248   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.SyntaxError'>
                                            Error Contents: ('invalid syntax', ('<string>', 4, 2, '  '))
                                            Traceback (most recent call last):
                                              File "/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.test/default.py", line 5, in <module>
                                                from xbmcjson import XBMC
                                              File "/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.test/xbmcjson.py", line 106, in <module>
                                                exec (s)
                                            SyntaxError: ('invalid syntax', ('<string>', 4, 2, '  '))
                                            -->End of Python script error report<--

Getting http error

got this error when i ran your example script
File "xbmcplay.py", line 10, in
xbmc.GUI.ActivateWindow({"window": "home"})
File "build/bdist.linux-x86_64/egg/xbmcjson/xbmcjson.py", line 96, in hook
File "build/bdist.linux-x86_64/egg/xbmcjson/xbmcjson.py", line 69, in execute
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

Not sure if player seek is working...

I have a video file. If I run the following on 3.4 (from PyCharm), it pauses, then plays again, without any change in position
Apologies if I am missing something basic.

print(xbmc.Player.GetActivePlayers())
xbmc.Player.PlayPause([PLAYER_VIDEO])
xbmc.Player.Seek(1,2000)
xbmc.Player.PlayPause([PLAYER_VIDEO])

Response is:
{'jsonrpc': '2.0', 'id': 0, 'result': [{'playerid': 1, 'type': 'video'}]}

Process finished with exit code 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.