diff --git a/.gitignore b/.gitignore index 7c7dbfc..103ddd6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ MANIFEST build +comp.egg-info dist __pycache__ diff --git a/README.rst b/README.rst index caf1406..b047ce1 100644 --- a/README.rst +++ b/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 -`_, using ``pip`` is a must. After -`installing it `_, run ``pip install -comp`` (depends on your operating system, Python 3 pip executable might be -either ``pip`` or ``pip3``). +`_, using ``pip`` (Python 3 version) +is a must. After `installing it `_, +run ``pip3 install comp`` (you might want to add ``--user`` flag to use the +`User Scheme `_). + +For developers, clone the `Github repo `_ 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 -------------------- diff --git a/omp/ie.py b/omp/ie.py index 7af5cdc..cdbe675 100644 --- a/omp/ie.py +++ b/omp/ie.py @@ -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: diff --git a/setup.py b/setup.py index 64db78a..449bc8d 100755 --- a/setup.py +++ b/setup.py @@ -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',