fix: error if failed to fetch duration from url
This commit is contained in:
parent
190aac37e1
commit
21c8e276c9
@ -97,7 +97,6 @@ song_shortlist = []
|
||||
def cmd_joinme(bot, user, text, command, parameter):
|
||||
global log
|
||||
|
||||
print(bot.mumble.users[text.actor]['channel_id'])
|
||||
bot.mumble.users.myself.move_in(
|
||||
bot.mumble.users[text.actor]['channel_id'], token=parameter)
|
||||
|
||||
|
@ -130,6 +130,8 @@ class URLItem(BaseItem):
|
||||
return True
|
||||
except youtube_dl.utils.DownloadError:
|
||||
pass
|
||||
except KeyError: # info has no 'duration'
|
||||
break
|
||||
|
||||
if not succeed:
|
||||
self.ready = 'failed'
|
||||
|
Loading…
x
Reference in New Issue
Block a user