def onebox_html(self, message):
        if message.startswith("<p><a href=\""):
            m = message[9:]
            if "\">" in message and m.endswith("</a></p>"):
                m = message[:-8].split("\">")[1]
                if any(i.match(m.strip()) for i in self.url_regex):
                    if any(m.lower().endswith(i) for i in (".mp3", ".wav", ".ogg",
                            ".oga", ".wave")):
                        return """<a title=\"%s\" href=\"%s\"><audio src="%s" controls="controls">%s</audio></a>""" % (m, m, m, m)
                if any(m.endswith(i) for i in (".mp4", ".mpg", ".ogv",
                            ".avi", ".webm")):
                        return (m, m, m, m) % """<a title=\"%s\" href="%s"><video src="%s" controls="controls" width="320" height="240">%s</video></a>"""
        if "http://www.youtube.com/watch?v=" in message:
            m = message.split("http://www.youtube.com/watch?v=")[1].split("&")[0]
            return """<iframe width="560" height="315" src="http://www.youtube.com/embed/%s" frameborder="0" allowfullscreen></iframe>""" % m
        return message
dataset/ETHPy150Open sfstpala/Victory-Chat/modules/onebox.py/OneBoxMixIn.onebox_html/swapped operands of `%`