• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

doc/H13-Mar-2020-669270

mps_youtube/H13-Mar-2020-8,3906,191

.gitignoreH A D13-Mar-2020131 2019

CHANGELOGH A D13-Mar-202015.2 KiB417310

CONTRIBUTING.mdH A D13-Mar-2020748 2514

DockerfileH A D13-Mar-2020758 2015

ISSUE_TEMPLATE.mdH A D13-Mar-2020562 122

LICENSEH A D13-Mar-202034.3 KiB675553

MANIFEST.inH A D13-Mar-202081 54

README.rstH A D13-Mar-20206.4 KiB217132

RELEASING.mdH A D13-Mar-20201.8 KiB4230

VERSIONH A D13-Mar-202068 52

mps-youtube.desktopH A D13-Mar-2020237 1211

mpsytH A D13-Mar-202071 42

setup.pyH A D03-May-20222.9 KiB8468

README.rst

1mps-youtube
2===========
3
4.. image:: https://img.shields.io/pypi/v/mps-youtube.svg
5    :target: https://pypi.python.org/pypi/mps-youtube
6.. image:: https://img.shields.io/pypi/dm/mps-youtube.svg
7    :target: https://pypi.python.org/pypi/mps-youtube
8.. image:: https://img.shields.io/pypi/wheel/mps-youtube.svg
9    :target: http://pythonwheels.com/
10    :alt: Wheel Status
11
12
13Features
14--------
15- Search and play audio/video from YouTube
16- Search tracks of albums by album title
17- Search and import YouTube playlists
18- Create and save local playlists
19- Download audio/video
20- Convert to mp3 & other formats (requires ffmpeg or avconv)
21- View video comments
22- Works with Python 3.x
23- Works with Windows, Linux and Mac OS X
24- Requires mplayer or mpv
25
26This project is based on `mps <https://web.archive.org/web/20180429034221/https://github.com/np1/mps>`_, a terminal based program to search, stream and download music.  This implementation uses YouTube as a source of content and can play and download video as well as audio.  The `pafy <https://github.com/mps-youtube/pafy>`_ library handles interfacing with YouTube.
27
28`FAQ / Troubleshooting common issues <https://github.com/mps-youtube/mps-youtube/wiki/Troubleshooting>`_
29
30Screenshots
31-----------
32
33
34Search
35~~~~~~
36.. image:: http://mps-youtube.github.io/mps-youtube/std-search.png
37
38A standard search is performed by entering ``/`` followed by search terms.
39
40Local Playlists
41~~~~~~~~~~~~~~~
42.. image:: http://mps-youtube.github.io/mps-youtube/local-playlist.png
43
44Search result items can easily be stored in local playlists.
45
46YouTube Playlists
47~~~~~~~~~~~~~~~~~
48.. image:: http://mps-youtube.github.io/mps-youtube/playlist-search.png
49
50YouTube playlists can be searched and played or saved as local playlists.
51
52Download
53~~~~~~~~
54.. image:: http://mps-youtube.github.io/mps-youtube/download.png
55
56Content can be downloaded in various formats and resolutions.
57
58Comments
59~~~~~~~~
60.. image:: http://mps-youtube.github.io/mps-youtube/comments.png
61
62A basic comments browser is available to view YouTube user comments.
63
64Music Album Matching
65~~~~~~~~~~~~~~~~~~~~
66
67.. image:: http://mps-youtube.github.io/mps-youtube/album-1.png
68
69.. image:: http://mps-youtube.github.io/mps-youtube/album-2.png
70
71An album title can be specified and mps-youtube will attempt to find matches for each track of the album, based on title and duration.  Type ``help search`` for more info.
72
73Customisation
74~~~~~~~~~~~~~
75
76.. image:: http://mps-youtube.github.io/mps-youtube/customisation2.png
77
78Search results can be customised to display additional fields and ordered by various criteria.
79
80This configuration was set up using the following commands::
81
82    set order views
83    set columns user:14 date comments rating likes dislikes category:9 views
84
85Type ``help config`` for help on configuration options
86
87
88
89Installation
90------------
91Linux
92~~~~~
93
94**Note**: ``~/.local/bin`` should be in your ``PATH`` for ``--user`` installs.
95
96Using `pip <http://www.pip-installer.org>`_::
97
98    $ pip3 install --user mps-youtube
99
100To install the experimental development version and try the latest features::
101
102    $ pip3 install --user -U git+https://github.com/mps-youtube/mps-youtube.git
103
104Installing youtube-dl is highly recommended::
105
106    $ pip3 install --user youtube-dl
107    and to upgrade:
108    $ pip3 install --user youtube-dl --upgrade
109
110(youtube-dl version dowloaded directly from youtybe-dl website can't be used by mps-youtube. While the version in the repositories is usually outdated)
111
112For mpris2 support, install the python bindings for dbus and gobject::
113
114    $ pip3 install --user dbus-python pygobject
115
116Ubuntu
117~~~~~~
118You can install mps-youtube directly from the official repositories::
119
120    [sudo] apt install mps-youtube
121
122Arch Linux
123~~~~~~
124You can install mps-youtube directly from the official repositories::
125
126    [sudo] pacman -S mps-youtube
127
128macOS X
129~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
130Install mpv (recommended player) with `Homebrew <http://brew.sh>`_::
131
132    brew cask install mpv
133
134Alternately, you can install mplayer with `MacPorts <http://www.macports.org>`_::
135
136    sudo port install MPlayer
137
138Or with `Homebrew <http://brew.sh>`_::
139
140    brew install mplayer
141
142Install mps-youtube using `Homebrew <http://brew.sh>`_::
143
144    brew install mps-youtube
145
146
147Additional Windows installation notes
148~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
149
150As an alternative to installing with pip, there is a standalone binary available. Go to `Releases <https://github.com/mps-youtube/mps-youtube/releases>`_ and download mpsyt-VERSION.exe under downloads for the latest release.
151
152Install the python `colorama <https://pypi.python.org/pypi/colorama>`_ module to get colors (optional)::
153
154    pip3 install colorama
155
156Mpsyt requires a player to use as a backend, with either mpv or mplayer supported. Mpv is the recommended option.
157
158Mpv can be downloaded from https://mpv.srsfckn.biz/
159
160Extract both ``mpv.exe`` and ``mpv.com`` to the same folder as ``mpsyt.exe`` or to a folder in the system path.
161
162Alternately, mplayer can be downloaded from http://oss.netfarm.it/mplayer
163
164Extract the ``mplayer.exe`` file, saving it to the folder that ``mpsyt.exe`` resides in (usually ``C:\PythonXX\Scripts\``) or to a folder in the system path.
165
166Run via Docker container
167~~~~~~~~~~~~~~~~~~~~~~~~
168
169Using `Docker <http://www.docker.com>`_, run with::
170
171    sudo docker run --device /dev/snd -it --rm --name mpsyt rothgar/mpsyt
172
173Additional Docker notes
174~~~~~~~~~~~~~~~~~~~~~~~
175
176If you would like to locally build the container you can run the following steps
177
178Check out this repo::
179
180    git clone https://github.com/mps-youtube/mps-youtube.git
181
182Enter the directory and run docker build::
183
184    cd mps-youtube
185    sudo docker build -t mpsyt .
186
187Now run the container interactively with::
188
189    sudo docker run -v /dev/snd:/dev/snd -it --rm --privileged --name mpsyt mpsyt
190
191In order to have access to the local sound device (/dev/snd) the container needs to be privileged.
192
193Upgrading
194---------
195
196Upgrade pip installation::
197
198    [sudo] pip3 install mps-youtube --upgrade
199
200Usage
201-----
202
203mps-youtube is run on the command line using the command::
204
205    mpsyt
206
207Enter ``h`` from within the program for help.
208
209IRC
210---
211
212An IRC channel `#mps-youtube` for the project is available on Freenode (chat.freenode.net:6697). You can join directly by clicking `this link <https://webchat.freenode.net/?randomnick=1&channels=%23mps-youtube&uio=d4>`_.
213
214How to Contribute
215-----------------
216Contributions are welcomed! However, please check out the `contributing page <CONTRIBUTING.md>`_ before making a contribution.
217