# ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- from __future__ import absolute_import import re import copy import xml.etree.ElementTree as ET from svtplay_dl.service import Service, OpenGraphThumbMixin from svtplay_dl.utils import is_py2_old from svtplay_dl.error import ServiceError from svtplay_dl.fetcher.rtmp import RTMP class Qbrick(Service, OpenGraphThumbMixin): supported_domains = ['di.seXX'] def get(self): data = self.get_urldata() if self.exclude(self.options): yield ServiceError("Excluding video") return if re.findall(r"di.se", self.url): match = re.search("src=\"(http://qstream.*)\">