|
|
|
|
10
|
import re
|
10
|
import re
|
11
|
|
11
|
|
12
|
RE_VID = re.compile("""\[video ["']([^['"]*?)["']\]""")
|
12
|
RE_VID = re.compile("""\[video ["']([^['"]*?)["']\]""")
|
13
|
-TEMPLATE_VID = """<video controls><source src="{}" type="video/{}"></video>"""
|
|
|
|
|
13
|
+TEMPLATE_VID = """<video controls class="centered"><source src="{}" type="video/{}"></video>"""
|
14
|
|
14
|
|
15
|
RE_SOUNDTRACK = re.compile("""\[soundtrack ["']([^['"]*?)["']\]""")
|
15
|
RE_SOUNDTRACK = re.compile("""\[soundtrack ["']([^['"]*?)["']\]""")
|
16
|
TEMPLATE_SOUNDTRACK = """<audio loop data-autoplay><source src="{}" type="audio/{}"></audio>"""
|
16
|
TEMPLATE_SOUNDTRACK = """<audio loop data-autoplay><source src="{}" type="audio/{}"></audio>"""
|