comp/README.rst

108 lines
4.1 KiB
ReStructuredText
Raw Normal View History

2017-04-04 06:37:29 +02:00
=================================
comp - Curses Online Media Player
=================================
2017-03-20 14:49:11 +01:00
2017-04-04 06:37:29 +02:00
This program is a curses front-end for mpv and youtube-dl.
Installation
------------
Dependencies
^^^^^^^^^^^^
This program currently only runs on Python 3.5+ on operating systems that the
``curses`` module is supported (i.e. Unix-like OS, e.g. GNU/Linux, macOS and
the BSDs).
It also depends on ``youtube-dl`` and ``libmpv``. Both of those should be
available in your operating system's repository.
Installing comp
^^^^^^^^^^^^^^^
I will try to upload the program to PyPI when it's more completed but as of
this moment, I'd suggest you to use ``git`` to get the software::
git clone https://github.com/McSinyx/comp.git
cd comp
sudo ./setup.py install --user
2017-04-04 06:37:29 +02:00
Usage
-----
::
2017-04-04 06:37:29 +02:00
$ comp --help
2017-04-04 06:37:29 +02:00
usage: comp [-h] [-j JSON_PLAYLIST]
Curses Online Media Player
2017-04-04 06:37:29 +02:00
optional arguments:
-h, --help show this help message and exit
-j JSON_PLAYLIST, --json-playlist JSON_PLAYLIST
path to playlist in JSON format
-y YOUTUBE_PLAYLIST, --youtube-playlist YOUTUBE_PLAYLIST
URL to an playlist on Youtube
2017-04-04 06:37:29 +02:00
Keyboard control
^^^^^^^^^^^^^^^^
+--------------+---------------------------------------------+
| Key | Action |
+==============+=============================================+
2017-04-08 15:47:16 +02:00
| Return | Start playing |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| Space | Toggle pause |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| ``A`` | Toggle mute |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| ``V`` | Toggle video |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| ``W`` | Save the current playlist under JSON format |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| ``c`` | Select the current track |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| ``m``, ``M`` | Cycle through playing modes |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| Up, ``k`` | Move a single line up |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| Down, ``j`` | Move a single line down |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| Left, ``h`` | Seek backward 5 seconds |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| Right, ``l`` | Seek forward 5 seconds |
+--------------+---------------------------------------------+
| Home | Move to the beginning of the playlist |
+--------------+---------------------------------------------+
| End | Move to the end of the playlist |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| Page Up | Move a single page up |
+--------------+---------------------------------------------+
2017-04-08 15:47:16 +02:00
| Page Down | Move a single page down |
+--------------+---------------------------------------------+
| F5 | Reprint the screen content |
+--------------+---------------------------------------------+
2017-04-04 06:37:29 +02:00
Configuration files
-------------------
2017-04-04 06:37:29 +02:00
The system-wide configuration file is ``/etc/comp/settings.ini``, the
user-specific one is ``~/.config/mpv/settings.ini``. Default configurations
are listed below::
2017-04-04 06:37:29 +02:00
[comp]
# Supported 8 modes: play-current, play-all, play-selected, repeat-current,
# repeat-all, repeat-selected, shuffle-all and shuffle-selected.
play-mode = play-current
2017-04-04 06:37:29 +02:00
[mpv]
# Set if video should be download and play, I only know 2 possible values:
# auto and no. This can be changed later interactively.
video = auto
# Read more on VIDEO OUTPUT DRIVERS section in mpv man page.
video-output =
2017-04-04 06:37:29 +02:00
[youtube-dl]
# Read more on FORMAT SELECTION section in youtube-dl man page.
2017-04-04 06:37:29 +02:00
format = best