Commits on Jul 23, 2013
  1. Merge pull request #6 from voldyman/master

    added a toggle function to toggle playback.
    committed Jul 23, 2013
  2. @voldyman
Commits on Nov 17, 2011
  1. Fixed addtrack 'play now' flag, with tests.

    It was *always* being triggered, regardless of what argument you passed
    Closes #4.
    committed Nov 16, 2011
Commits on Feb 21, 2011
  1. 'random' command without args was utterly broken.

    It was reporting the 'repeat track' status instead. Added some tests
    (also for the 'loop' command) to prevent regression.
    committed Feb 20, 2011
  2. Refactored some more commands to stop printing.

    tracknum, numtracks, loop, and random.
    committed Feb 20, 2011
  3. Refactored trackinfo.

    * It now returns a generator of text instead of printing stuff directly.
    * It also raises an exception to let the main block handle printing to
    * Main block has been changed to accept a generator instead of a
      single string return value -- this allows incremental printing of
      "trackinfo *" output instead of having to wait until the one giant
      string of output is constructed.
    * Added tests for the three different forms of trackinfo.
    committed Feb 20, 2011
Commits on Feb 20, 2011
  1. Refactored playstatus command.

    1. It no longer prints directly -- it returns a string, and the main
    block takes care of printing.
    2. This also makes it easily testable, so I added a unit test.
    committed Feb 19, 2011
Commits on Feb 16, 2011
  1. Cleaned up logic for when player isn't running.

    Previously, if you requested a certain player and none were running, it
    would tell you "hey that one's not running but here's a list of players
    that are running", but then that list would be empty. Now it will just
    tell you no players are running.
    I think it also handles oddball non-compliant players better too, as it
    will die with an informative backtrace instead of covering it up and
    telling you that the player simply isn't there.
    I also moved all of the printing to stderr and exiting code to the main
    block. The OO part of the code now just throws exceptions.
    I also added some relevant tests.
    committed Feb 15, 2011
Commits on Feb 11, 2011
  1. Some unneeded cruft.

    committed Feb 10, 2011
Commits on Feb 10, 2011
  1. Missed something.

    committed Feb 9, 2011
  2. Some tests!

    committed Feb 9, 2011
  3. Crash fix for VLC when printing status.

    When running VLC and no track is currently selected, GetMetadata()
    returns None.  I believe I triggered this by partially running 'clear',
    and the currently playing song was deleted. Merely stopping VLC does not
    trigger the same bug.
    committed Feb 9, 2011
Commits on Feb 9, 2011
  1. Corn is dead. Goodbye corn.

    committed Feb 8, 2011
Commits on Nov 29, 2010
  1. Presumed fix for crash. Fixes #2.

    Also tweaked some nearby stuff a little.
    committed Nov 28, 2010
Commits on Feb 19, 2009
  1. super() mistake

    committed Feb 18, 2009
Commits on Jan 16, 2009
  1. trackinfo '*'

    committed Jan 16, 2009
Commits on Jan 12, 2009
Commits on Jan 5, 2009
Commits on Jan 3, 2009
  1. excellent error messages

    committed Jan 3, 2009
  2. bugfix

    committed Jan 3, 2009