# coding: utf-8 from __future__ import unicode_literals import itertools import re from time import sleep from .common import InfoExtractor from ..utils import ( clean_html, get_element_by_class, get_element_by_id, int_or_none, parse_qs, strip_or_none, T, traverse_obj, url_or_none, urljoin, ) class Tube8IE(InfoExtractor): _VALID_URL = r'https?:\/\/(?:www\.)?tube8\.com\/+porn-video+\/(?P\d+)' _TESTS = [{ 'url': 'https://www.tube8.com/porn-video/189530841/', 'md5': '532408f59e89a32027d873af6289c85a', 'info_dict': { 'id': '189530841', 'ext': 'mp4', 'title': 'Found dildo. She let it cum in her tight ass to keep the secret', 'thumbnail': r're:^https?://.*\.jpg$', 'uploader': 'MaryKrylova', 'age_limit': 18, } }] _EMBED_REGEX = r'