-
Notifications
You must be signed in to change notification settings - Fork 215
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
Console improvements #327
Console improvements #327
Conversation
Cheers @odrling. Good to see good use being made of what @csandras05 has contributed. Sorry for my delay in reviewing this PR. I've tested it and it seems to work fine for me in console mode, but in GUI mode if you run from the chat box (or mpv) /q [path] it won't always work. I think that this is because you need to do the same changes #319 does for addFileToPlaylist in gui.py:
Some things to consider:
|
Just glad to see that this PR may not sleep here forever ;) Indeed I've not tested the commands in GUI mode (and probably started with the earlier commit of @csandras05 from #316).
Both are fine for me and I understand why some would prefer to start the index at 1, so I'll change that.
I do like this, it makes the commands feel more like a set of command (you type
I've never toggled this mode. Though now that I remember that it exists I could have used it too at some point instead of trying to work around the fact that some people would have different playlists. I might add it, I'm guessing this should not be hard to add. I could see this as a |
I also think I should add a check for duplicate files in the playlist, it seems to be in the method |
or at least that's what it would look like to the user
I agree that it's a bit weird, but as
I personally just have playlists on all the time, so I don't toggle it either. I am perfectly happy a decision not to add this feature in the name of not wanting to over-load the list of playlist commands. We can expect anyone who uses console to manually change the setting if they want the behaviour to change in the same way that they have to manually change the list of media directories. Those who want everything to be easy can just use the GUI. The main times when people might want to disable shared playlists is if they are wanting to play a 720p version of a file while they are in the middle of downloading the 1080p version, or if they are wanting to play a local version of a file which has been added from a URL such as YouTube. However, Syncplay doesn't have to fully support every edge case because to do so adds to the complexity of the software. If we were to add an enable/disable toggle I'm not sure what
You can either do that, or see if you can make it so that both GUI and console use the same check. |
Messages output via the |
…and Syncplay#319 * add videos to playlist from chat * add urls to playlist * add files in media directory to playlist * add commands to show the playlist and select an index * add command to delete files from the playlist * show selected index in playlist * fix adding files with queue command in GUI mode * start indexing the playlist at 1 or at least that's what it would look like to the user * start all commands related to playlist with `q` Co-authored-by: kiscs <csandras05@gmail.com>
…and Syncplay#319 * add videos to playlist from chat * add urls to playlist * add files in media directory to playlist * add commands to show the playlist and select an index * add command to delete files from the playlist * show selected index in playlist * fix adding files with queue command in GUI mode * start indexing the playlist at 1 or at least that's what it would look like to the user * start all commands related to playlist with `q` Co-authored-by: kiscs <csandras05@gmail.com>
Hi,
I saw #319 and hacked my way through to get it to work (I'm expecting a few things will look dirty to you).
Various improvements to the console UI, most basic operations to the playlist can be done from the console and media directories are loaded with
--no-gui
(currently you need to load the files manually even when the media directories are set correctly). I might try to add a batch edit too later (open the playlist in an editor, maybe using the$EDITOR
environment variable).The name of the commands could use some improvements too, I've gotten used to using
q
(add file to the end of playlist),ql
(show the play list) andqs
(select a file in the playlist).I've been using this for a few weeks and it seems to be working well FWIW.