Giter VIP home page Giter VIP logo

Comments (6)

np1 avatar np1 commented on July 28, 2024

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.

from yewtube.

gotbletu avatar gotbletu commented on July 28, 2024

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

from yewtube.

np1 avatar np1 commented on July 28, 2024

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

from yewtube.

ids1024 avatar ids1024 commented on July 28, 2024

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.

from yewtube.

ids1024 avatar ids1024 commented on July 28, 2024

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

from yewtube.

np1 avatar np1 commented on July 28, 2024

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).

from yewtube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.