Fix class calling
This commit is contained in:
parent
408e3c869f
commit
f0b95cfa86
|
@ -1,4 +1,5 @@
|
|||
MANIFEST
|
||||
build
|
||||
comp.egg-info
|
||||
dist
|
||||
__pycache__
|
||||
|
|
13
README.rst
13
README.rst
|
@ -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
|
||||
--------------------
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue