Skip to content

Conversation

@csandras05
Copy link
Contributor

Had some issues with git, reopening PR #316 with the requested changes.

@daniel-123
Copy link
Contributor

Trying to call the "q" command to add file to playlist while in CLI mode (--no-gui) results in TypeError: addFileToPlaylist() takes 1 positional argument but 2 were given in client.py on line 1550.

@Et0h
Copy link
Contributor

Et0h commented Jun 3, 2020

@daniel-123 I don't think that is due to this PR, I think it is because the def addFileToPlaylist(self): stub in consoleUI.py needs to accept more parameters (e.g. it should be def addFileToPlaylist(self, filePath, index=-1): like in gui.py). We could also make it give an appropriate error message saying that playlists are not currently supported in console made (rather than just doing a pass).

@daniel-123
Copy link
Contributor

I've tried out the CLI mode for a bit. Given it's current state with effective lack of playlist support I think I'd be happy with a solution that simply doesn't crash the client.

Fleshing out CLI mode to include media directories support and eventually proper playlist support is a possible separate goal, but given that GUI is by far the primary mode of use I would see it as low priority and out of scope for this PR.

@odrling odrling mentioned this pull request Jun 21, 2020
@Et0h
Copy link
Contributor

Et0h commented Aug 14, 2020

#327 uses #319 as its base. At present I'm minded to go with a tweaked version of #327 instead of #319 because as far as I'm aware #327 contains the benefits of #319 and more.

Et0h pushed a commit that referenced this pull request Sep 13, 2020
* 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>
@Et0h
Copy link
Contributor

Et0h commented Sep 17, 2020

Relevant elements incorporated into #327 which has now been merged.

@Et0h Et0h closed this Sep 17, 2020
albertosottile pushed a commit to albertosottile/syncplay that referenced this pull request Sep 30, 2020
…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>
albertosottile pushed a commit to albertosottile/syncplay that referenced this pull request Sep 30, 2020
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants