bvanheu / pytoutv

TOU.TV client library and user interfaces written in Python 3
96 stars 23 forks source link

Lists: remove trailing ':' after IDs #57

Closed eepp closed 9 years ago

eepp commented 9 years ago

The CLI list currently looks like this:

...
2424966275: Sur le Yangzi
2339675742: Synthétiseur
2296651836: Tabula Rasa
2422158697: The pamplemousse
2424966628: Ti-Mé Show
2424966325: Toi et moi
2424966549: Toi, t'es-tu Lucky?
...

What's often done is double-clicking the ID, which also selects the trailing : character with some terminal emulators, and middle-clicking after having typed toutv list to list the episodes of this show. Then the trailing : should not be pasted, so it should be removed from the list output, because it's very annoying.

simark commented 9 years ago

It's a good idea in itself. Although it would be nice to find an easier workflow, that does not involve copying random numbers.

What I usually do is

toutv list 
# find the show id and paste it
toutv list <show id>
# delete list from previous command, insert fetch
# find the episode id and paste it at the end
toutv fetch <show id> <episode id>

It would be nice to have an interactive command line client that guides you. A bit like when you use tzselect. It shouldn't be very hard to write, but would be much more user-friendly I think.

eepp commented 9 years ago

I agree, the workflow sucks. Perhaps a global --interactive/-i option?

simark commented 9 years ago

We could add a switch for an interactive mode to keep backwards compatibility. But if such a mode is implemented, it would be worth it to bump the major and make it the default (while keeping a way to make it unattended as well).

eepp commented 9 years ago

I'm not sure. Users could have scripts right now using toutv in an automated way, and the default interactive mode would break their scripts.

simark commented 9 years ago

Which is why bumping the major would be necessary. It's a major redesign of the interface.

eepp commented 9 years ago

I know. I'm questioning the impacts of such a major bump on the users.