diff --git a/ox/web/ubu.py b/ox/web/ubu.py index 2cbd39b..da90bad 100644 --- a/ox/web/ubu.py +++ b/ox/web/ubu.py @@ -47,6 +47,8 @@ def get_data(url): match = re.compile('''src=(.*?) type="video/mp4"''').findall(data) if match: m['mp4'] = match[0].strip('"').strip("'") + elif 'video' in m and m['video'].endswith('.mp4'): + m['mp4'] = m['video'] doc = lxml.html.document_fromstring(read_url(url)) desc = doc.xpath("//div[contains(@id, 'ubudesc')]")