Fix class calling
This commit is contained in:
parent
2972111b59
commit
9cef1e2382
|
@ -1,4 +1,5 @@
|
||||||
MANIFEST
|
MANIFEST
|
||||||
build
|
build
|
||||||
|
comp.egg-info
|
||||||
dist
|
dist
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|
13
README.rst
13
README.rst
|
@ -20,10 +20,15 @@ macOS Homebrew repository). It also depends on ``python-mpv`` and
|
||||||
are missing.
|
are missing.
|
||||||
|
|
||||||
As ``setuptools`` will `install in an egg and cause breakage
|
As ``setuptools`` will `install in an egg and cause breakage
|
||||||
<https://github.com/McSinyx/comp/issues/5>`_, using ``pip`` is a must. After
|
<https://github.com/McSinyx/comp/issues/5>`_, using ``pip`` (Python 3 version)
|
||||||
`installing it <https://pip.pypa.io/en/latest/installing/>`_, run ``pip install
|
is a must. After `installing it <https://pip.pypa.io/en/latest/installing/>`_,
|
||||||
comp`` (depends on your operating system, Python 3 pip executable might be
|
run ``pip3 install comp`` (you might want to add ``--user`` flag to use the
|
||||||
either ``pip`` or ``pip3``).
|
`User Scheme <https://pip.pypa.io/en/stable/user_guide/#user-installs>`_).
|
||||||
|
|
||||||
|
For developers, clone the `Github repo <https://github.com/McSinyx/comp>`_ then
|
||||||
|
simply run the ``comp`` executable to test the program. If you insist on
|
||||||
|
installing it, still use ``pip3``: ``pip3 install .``. Note that **comp** is
|
||||||
|
distibuted in a ``wheel`` created via ``./setup.py bdist_wheel``.
|
||||||
|
|
||||||
Command line options
|
Command line options
|
||||||
--------------------
|
--------------------
|
||||||
|
|
|
@ -74,7 +74,7 @@ def ytdl_extract_info(filename):
|
||||||
"""Return list of entries extracted from a path or URL using
|
"""Return list of entries extracted from a path or URL using
|
||||||
youtube-dl. If an error occur during the extraction, return None.
|
youtube-dl. If an error occur during the extraction, return None.
|
||||||
"""
|
"""
|
||||||
ytdl_opts = {'logger': YoutubeDLLogger, 'default_search': 'ytsearch',
|
ytdl_opts = {'logger': YoutubeDLLogger(), 'default_search': 'ytsearch',
|
||||||
'extract_flat': 'in_playlist'}
|
'extract_flat': 'in_playlist'}
|
||||||
with YoutubeDL(ytdl_opts) as ytdl:
|
with YoutubeDL(ytdl_opts) as ytdl:
|
||||||
try:
|
try:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ with open('README.rst') as f:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='comp',
|
name='comp',
|
||||||
version='0.3.7',
|
version='0.3.8',
|
||||||
description=('Curses Omni Media Player'),
|
description=('Curses Omni Media Player'),
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
url='https://github.com/McSinyx/comp',
|
url='https://github.com/McSinyx/comp',
|
||||||
|
|
Loading…
Reference in New Issue