- title = self._html_search_regex(r'<meta\s+name="description"\s+content="\s*([^"]*)\s*"', webpage, 'title')
- ref_path = self._search_regex(r'src="(/mioplayer/.*?)"', webpage, 'ref_path')
- referer = 'http://www.miomio.tv{0}'.format(ref_path)
- xml_config = self._search_regex(r'flashvars="type=sina&(.*?)&cid=', webpage, 'xml config')
+ title = self._html_search_meta(
+ 'description', webpage, 'title', fatal=True)
+
+ mioplayer_path = self._search_regex(
+ r'src="(/mioplayer/[^"]+)"', webpage, 'ref_path')
+
+ xml_config = self._search_regex(
+ r'flashvars="type=sina&(.+?)&',
+ webpage, 'xml config')