-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to select a specific file #26
Comments
I'm a bit concerned about over-complicating the selection part, as it is really neat now, and having to select a file comes up very rarely. In any case, peerflix does this, so we might get some ideas from it: https://github.com/mafintosh/peerflix/blob/master/index.js#L53 |
In that case, I'd be ok with only a bool-flag
I was thinking of something simple like:
That way the default behavior is kept and you can override it if needed. |
If we go in that direction, it might worth to port the whole ui to termui, and implement the selector there. This would help on other areas as well, as logging sucks because the screen refresh erases the written log messages, and less than a second is rarely enough to understand these messages. (On the other hand they are rarely actionable, but at the very least they are a visual annoyance now.) |
termui looks quite nice. Alternatively you could pause the refresh while asking for input. |
On second thought, termui seems more specialized towards being a dashboard. gocui might be an alternative. |
- The HTTP handler now returns a Reader for a file within the torrent as specified by the request URI. - If there are multiple videos, the user is asked to select one. - In any case video players now request specific files instead of just the root directory. Fixes Sioro-Neoku#26 Sioro-Neoku#36
Some ideas:
-select-file
to allow overriding.The text was updated successfully, but these errors were encountered: