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

config default-search in a dict to feed it into ytdl? #9766

Closed
AraHaan opened this issue Jun 12, 2016 · 4 comments
Closed

config default-search in a dict to feed it into ytdl? #9766

AraHaan opened this issue Jun 12, 2016 · 4 comments

Comments

@AraHaan
Copy link

@AraHaan AraHaan commented Jun 12, 2016

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.06.12. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.06.12

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

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

Ok so, I have this python code.

class YTDLLogger(object):
    def debug(self, msg):
        pass

    def warning(self, msg):
        pass

    def error(self, msg):
        pass

# youtube_dl options
 ytdlo = {'quiet': True, 'no_warnings': True, 'ignoreerrors': True, 'logger': YTDLLogger(), 'default-search': "ytdlsearch"}

And when I try to search using a command in my Discord Bot. (yes I use Rapptz's Discord.py which uses ytdl for playing thigns from youtube in Discord's voice channels.)

But instead this is generated

ERROR: 'SIM Keygen PSXGamerPro1' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:SIM Keygen PSXGamerPro1" ) to search YouTube

I am not sure what is wrong. Could it be that ytdl ignored the option I put in the dict?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 12, 2016

It's default_search not default-search.

@dstftw dstftw closed this Jun 12, 2016
@AraHaan
Copy link
Author

@AraHaan AraHaan commented Jun 13, 2016

ah ty

@FabricioZZg1
Copy link

@FabricioZZg1 FabricioZZg1 commented Aug 26, 2019

Can you show me all the code that you used to make it works?

@AraHaan
Copy link
Author

@AraHaan AraHaan commented Aug 30, 2019

sure it is in voice.py to decoraterbot-org / DecoraterBot-cogs. forgot the actual url though and cant find it much on my iphone.

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
3 participants
You can’t perform that action at this time.