Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions on the binary version and about the CLI #13330

Closed
cooperhammond opened this issue Jun 10, 2017 · 1 comment
Closed

Questions on the binary version and about the CLI #13330

cooperhammond opened this issue Jun 10, 2017 · 1 comment

Comments

@cooperhammond
Copy link

@cooperhammond cooperhammond commented Jun 10, 2017

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

I have a couple questions: is it possible to specify a logger or progress hook through the CLI? Can the binary release of youtube-dl still be "imported" into the rest of a python file? If it's not possible, then can a binary version that can do that be made? On that same tangent, is the binary release of youtube-dl only for the CLI?

@cooperhammond cooperhammond changed the title Questions on Questions on the binary version and about the CLI Jun 10, 2017
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 10, 2017

Yes it's possible:

$ python
Python 3.6.1 (default, Mar 27 2017, 00:27:06) 
[GCC 6.3.1 20170306] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append('./youtube-dl')
>>> import youtube_dl
>>> youtube_dl
<module 'youtube_dl' from 'youtube-dl/youtube_dl/__init__.py'>
@yan12125 yan12125 closed this Jun 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.