Giter Site home page Giter Site logo

kodi-cli's People

Contributors

djraw avatar elpraga avatar franpoli avatar infothrill avatar jordanhillis avatar nawar avatar uriel1998 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kodi-cli's Issues

Print currently played item information

Hi!

Thank you for kodi-cli, it really makes my life simpler. ๐Ÿ‘

One feature I'd like to see is a command that prints, in my terminal, information about the item being currently played. Something like:

If playing music:

$ kodi-cli --info
Artist - Song

If playing video:

$ kodi-cli --info
Video_name

Do you see where I am getting at?

Would you know how to add an option to play next track (video) from the playlist?

It could be a nice feature, and I did try reading about it, but I did not managed to get it working.
I did all the changes as I did when adding the volume control, and I used the following function:

function play_next {
 # Get Active players first
  output=`xbmc_req '{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 99}' true`
  player_id=`echo $output | parse_json "playerid"` 
  echo "Skipping to next item in playlist in the player with ID => $player_id"
  xbmc_req '{"jsonrpc": "2.0", "method": "Player.GoNext", "params": { "playerid": '$player_id' }, "id": 1}' 
}

When I extracted and exectured the command on a command line, and I got "Method not found" error. The syntax should have been ok, because Player.Stop worked fine from command line.

Have you got any idea why it did not work?

'command not found' error when not configured

Without KODI_* variables or a .kodirc,

/usr/bin/kodi-cli: line 40: show_help: command not found

is shown instead of the help text. Given that the help text itself doesn't address configuration, would it be better to have a separate error message, or expand and move show_help() to make bash happy?

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.