Trypo error

This commit is contained in:
azlux
2018-06-01 00:52:50 +02:00
parent 7057252420
commit 0b97dbdad7
5 changed files with 7 additions and 31 deletions

View File

@ -73,7 +73,7 @@ class MumbleBot:
self.nb_exit = 0
self.thread = None
if args.web_interace:
if self.config.getboolean("bot", "web_interface"):
interface.init_proxy()
t = threading.Thread(target=start_web_interface)
t.daemon = True
@ -241,9 +241,8 @@ class MumbleBot:
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
for i in range(2):
try:
info_dict = ydl.extract_info(url, download=False)
info_dict = ydl.extract_info(url)
video_title = info_dict['title']
ydl.download([url])
except youtube_dl.utils.DownloadError:
pass
else: