- @classmethod
- def suitable(cls, url):
- return any(re.match(regex, url) for regex in (cls._VIDEOS_URL, cls._LIVEWEB_URL))
-
- # TODO implement Live Stream
- # from ..utils import compat_urllib_parse
- # def extractLiveStream(self, url):
- # video_lang = url.split('/')[-4]
- # info = self.grep_webpage(
- # url,
- # r'src="(.*?/videothek_js.*?\.js)',
- # 0,
- # [
- # (1, 'url', 'Invalid URL: %s' % url)
- # ]
- # )
- # http_host = url.split('/')[2]
- # next_url = 'http://%s%s' % (http_host, compat_urllib_parse.unquote(info.get('url')))
- # info = self.grep_webpage(
- # next_url,
- # r'(s_artestras_scst_geoFRDE_' + video_lang + '.*?)\'.*?' +
- # '(http://.*?\.swf).*?' +
- # '(rtmp://.*?)\'',
- # re.DOTALL,
- # [
- # (1, 'path', 'could not extract video path: %s' % url),
- # (2, 'player', 'could not extract video player: %s' % url),
- # (3, 'url', 'could not extract video url: %s' % url)
- # ]
- # )
- # video_url = '%s/%s' % (info.get('url'), info.get('path'))
-