Fix class calling

This commit is contained in:
Nguyễn Gia Phong 2017-07-03 14:21:35 +07:00 committed by Nguyễn Gia Phong
parent 2972111b59
commit 9cef1e2382
4 changed files with 12 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
MANIFEST
build
comp.egg-info
dist
__pycache__

View File

@ -20,10 +20,15 @@ macOS Homebrew repository). It also depends on ``python-mpv`` and
are missing.
As ``setuptools`` will `install in an egg and cause breakage
<https://github.com/McSinyx/comp/issues/5>`_, using ``pip`` is a must. After
`installing it <https://pip.pypa.io/en/latest/installing/>`_, run ``pip install
comp`` (depends on your operating system, Python 3 pip executable might be
either ``pip`` or ``pip3``).
<https://github.com/McSinyx/comp/issues/5>`_, using ``pip`` (Python 3 version)
is a must. After `installing it <https://pip.pypa.io/en/latest/installing/>`_,
run ``pip3 install comp`` (you might want to add ``--user`` flag to use the
`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
--------------------

View File

@ -74,7 +74,7 @@ def ytdl_extract_info(filename):
"""Return list of entries extracted from a path or URL using
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'}
with YoutubeDL(ytdl_opts) as ytdl:
try:

View File

@ -7,7 +7,7 @@ with open('README.rst') as f:
setup(
name='comp',
version='0.3.7',
version='0.3.8',
description=('Curses Omni Media Player'),
long_description=long_description,
url='https://github.com/McSinyx/comp',