z411/wmal-python — pull request #76 by IDex (2014-10-23 21:33:46+00:00)
Title: Added show indexes to cli for easier playing of episodes

Changes:
Issuing 'list' will display indexes besides names, issuing 'play 1' will
play the show at that index, makes it easier to play long named shows or anything
that doesn't autocomplete well.

Features:
Now you can simply 'list' your currently watched shows and type 'play 5'
instead of typing by hand 'play "Fate/stay night: Unlimited Blade Works (TV)"'.
Specifying episode 1 for example: 'play 5 1'
Works with list made through filter/search (anything that produces a list with _make_list)

Caveats:
Adds additional column for indexes in the list, widening it somewhat.
Returns "show not found" error if trying to play by index before issuing list.
Implementation might be a bit crude.