Fix youtube url parsing

This commit is contained in:
Joscha 2018-08-15 14:59:05 +00:00
parent 8147128067
commit 6168713d90

View file

@ -309,7 +309,7 @@ class ArgonDJBot(yaboli.Bot):
lines_parse_error = [] lines_parse_error = []
for arg in args: for arg in args:
if arg == "-id": continue if arg == "-id": continue
match = re.fullmatch(self.YOUTUBE_RE, arg) match = re.match(self.YOUTUBE_RE, arg)
if match: if match:
video_ids.append(match.group(self.YOUTUBE_RE_GROUP)) video_ids.append(match.group(self.YOUTUBE_RE_GROUP))
else: else: