Code Monkey home page Code Monkey logo

kodi-voice's People

Contributors

digiltd avatar jingai avatar josh5 avatar m0ngr31 avatar mph80 avatar succo69 avatar

Stargazers

 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

kodi-voice's Issues

Make inclusion of song-only artists configurable

Recently added the paramater "albumartistsonly": False to AudioLibrary.GetArtists, which tells Kodi to include artists that only appear on individual songs. In most cases, I think this is the right thing to do, but some users are experiencing timeouts due to the additional size of the response.

It could be worth simply making it a configurable option.

kodi.config host address

Hi,
When updating the address in the following section of the kodi.config with an IP address 'XXX.XXX.XXX.XXX' the solution works i.e -

scheme = http
address = 132.125.2.134
port = 8888

However when I update the same field, as shown below, with a Dynamic DNS domain name 'kjfhg.khhf.com' this fails and and I get the error 'There was a problem with the requested skill's response' from Alexa.

scheme = http
address = kjfhg.khhf.com
port = 8888

Can you please explain why it will work with an IP address but not a Dynamic DNS domain name i obtained from Dynu.

NextEpisode doesn't sort the episodes correctly

I did put this up on the Kodi forums - but this seems like the right place. The Kodi RPC API will return episodes roughly in series/episode order providing that's the order they were scanned in.

If you add other episodes to the library after that - the RPC API will return them at the end of the search.

It looks like modifying the next episode command to sort by episode works and it'll sort everything into the right places (including specials with the specialsort values set).

Python3 - SafeConfigParser renamed to ConfigParser

Hi,
I'm not well versed in the world of Python, so please forgive me if the below is nonsense or not anything you can help with:
I'm getting the following error when trying to run / setup kodi-alexa on my self-hosted Apache web server.

[Wed Nov 29 22:52:17.553193 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] mod_wsgi (pid=9684): Exception occurred processing WSGI script 'C:/Apache24/wsgi-scripts/kodi-alexa/alexa.wsgi'.
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] Traceback (most recent call last):\r
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] File "C:/Apache24/wsgi-scripts/kodi-alexa/alexa.wsgi", line 4, in \r
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] from alexa import app as application\r
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] File "C:/Apache24/wsgi-scripts/kodi-alexa\alexa.py", line 18, in \r
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] from kodi_voice import KodiConfigParser, Kodi\r
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] File "C:\Python36\lib\site-packages\kodi_voice\init.py", line 1, in \r
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] from .kodi import (\r
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] File "C:\Python36\lib\site-packages\kodi_voice\kodi.py", line 22, in \r
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] from ConfigParser import SafeConfigParser\r
[Wed Nov 29 22:52:17.556195 2017] [wsgi:error] [pid 9684:tid 1136] [client ::1:56613] ModuleNotFoundError: No module named 'ConfigParser'\r

From what I can see it's due to me running python 3+ rather than 2.7 as the SafeConfigParser was renamed to ConfigParser. I've tried getting my mod_wsgi to play nicely with python 2.7 & various versions of Apache, but I can't seem to find any other combination that works. Would it be possible to support Python 2 & 3? I've googled & apparently using the module "six" and a try catch block like below might work to support both versions - I'm not sure though.

Taken from:
https://stackoverflow.com/questions/14087598/python-3-importerror-no-module-named-configparser

try:
import configparser
except:
from six.moves import configparser

Is this feasible?

commands being sent but not being recieved

As far as the skill is concerned everything is fine, i ask it to update video library and she says "updating video library" I ask to play my video playlist cartoons and she says "Playing the video playlist Cartoons" but kodi just sat there doing nothing. Sometimes if i repeated the command a few times it would eventually work, but usually by then I have picked up the remote :)

I changed line 310

timeout = (10, 0.01)

to

timeout = (10, 1)

Which appears to have sorted it. Though when I reverted back to 0.01 again so I could test and be sure, that was now appearing to be working fine (commands sent were actually being received by kodi).

I will keep an eye on it at the new (10, 1).

It may not even be related to the timeout, but it was definitely behaving as described for some reason.

setup.py - Broken with pip 10.0.1

When installing for local hosting:
setup.py Line 2 : from pip.req import parse_requirements

Creates an error: 'module not found'

pip Release notes -10.0.0b1 (2018-03-31)

Move all of pip's APIs into the pip._internal package, properly reflecting the fact that pip does not currently have any public APIs.

Soultion for pip 10.0.1:
from pip._internal.req import parse_requirements

For those setting up as local hosting, hope this helps.

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.