Skip to content
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

Playlist improvements #14

Closed
hotice opened this issue Feb 7, 2014 · 6 comments
Closed

Playlist improvements #14

hotice opened this issue Feb 7, 2014 · 6 comments

Comments

@hotice
Copy link

hotice commented Feb 7, 2014

In a playlist you can skip to the next track but you can't go to the previous track or play a certain track.

It would also be useful to use vim keys for navigations (this was also used in Google Reader and is now used in Google+ or Facebook for instance - e.g.: J to go to the next track or K to go to the previous track).

@np1
Copy link
Contributor

np1 commented Feb 8, 2014

See https://github.com/np1/pms-youtube/issues/18 regarding going backward in playing items, basically, I don't know how to go about implementing it without interrupting continuous playback.

Scrolling through the list with vim keys (or even any keys) would be great, I think it would best be done using the pythons curses library, although that wouldn't work on Windows. It would be quite a lot of work right now (basically all the UI code would need to be rewritten). Maybe this is something I will do further down the line.

@gotbletu
Copy link

Maybe add a option just the use the id only also

long
mpsyt pl http://www.youtube.com/playlist?list=PLBFB97E5B9494EEBD

short
mpsyt pl PLBFB97E5B9494EEBD

@np1
Copy link
Contributor

np1 commented Mar 12, 2014

@gotbletu - Done, added to develop branch for next release - https://github.com/np1/mps-youtube/commit/129f7e7ff5ae8aa5460ec41e44ae217eda6cab99

@ids1024
Copy link
Contributor

ids1024 commented Sep 12, 2014

Perhaps a lua script could be used with mpv.

function back_track()
  os.exit(42)
end

mp.add_key_binding('h', back_track)

Use mpv --lua scriptname.lua

This script causes mpv to exit returning 42 when h is pressed. That could then be interpreted as a signal to go a track back, and something similar could be used with l for going forward.

@ids1024
Copy link
Contributor

ids1024 commented Sep 13, 2014

You can also try the python bindings for libmpv, and use slave mode with mplayer.

@np1 np1 added the implemented label Jan 4, 2015
@np1
Copy link
Contributor

np1 commented Feb 14, 2015

previous / next track is implemented with < and > keys in version 0.2.2

you can use j and k for next/prev by creating a file called mplayer-input.conf and/or mpv-input.conf with the following lines:

  • mpv-input.conf:
j playlist_next
k playlist_prev
  • mplayer-input.conf:
j pt_step 1
k pt_step -1

The file(s) must reside in the mps-youtube config dir (usually ~/.config/mps-youtube/ on Linux).

@np1 np1 added the released label Feb 14, 2015
@np1 np1 closed this as completed Feb 14, 2015
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

No branches or pull requests

4 participants