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

Problem with reload('youtube_dl') #1

Closed
Dominion0815 opened this issue Aug 26, 2020 · 3 comments
Closed

Problem with reload('youtube_dl') #1

Dominion0815 opened this issue Aug 26, 2020 · 3 comments

Comments

@Dominion0815
Copy link

Hi,

I see an error with "reload('youtube_dl')". Bot crashes with this error message.

DEBUG: socket       sent  <message to="xxx@xxx.im" type="chat" id="11">
  <body>Finished processing: https://invidio.us/watch?v=xxx   </body>
  </message>
Traceback (most recent call last):
  File "bot.py", line 250, in <module>
    cl.Process(.1)
  File "/usr/lib/python2.7/dist-packages/xmpp/dispatcher.py", line 303, in dispatch
    handler['func'](session,stanza)
  File "bot.py", line 136, in messageCB
    reload('youtube_dl')
TypeError: reload() argument must be module

Best regards
Dominion

@gjedeer
Copy link
Owner

gjedeer commented Aug 27, 2020

Wow, someone other than me is actually using this?

Anyway. Try changing line 136 in bot.py from

reload('youtube_dl')

to

reload(youtube_dl)

and let me know if it helped

@Dominion0815
Copy link
Author

seems to work, thank you very much!

The bot is very usefull for me and I also have a feature request ;)
Is it possible to invite the bot to a MUC with the option to disable output?

Greetings

gjedeer pushed a commit that referenced this issue Aug 30, 2020
@gjedeer
Copy link
Owner

gjedeer commented Aug 30, 2020

Hey,

Maybe one day when I have more time... #3

@gjedeer gjedeer closed this as completed Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants