+ def extract_video_url(webpage):
+ mobj = re.search(r'\'srv\': \'(?P<server>[^\']*)\',\s*\'file\': \'(?P<file>[^\']+)\',', webpage)
+ if mobj is None:
+ raise ExtractorError('Unable to extract media URL')
+ if len(mobj.group('server')) == 0:
+ return compat_urllib_parse.unquote(mobj.group('file'))
+ else:
+ return mobj.group('server')+'/key='+mobj.group('file')
+
+ def extract_mp4_video_url(webpage):
+ mp4 = re.search(r'<a href=\"(.+?)\" class=\"mp4Play\"',webpage)
+ if mp4 is None:
+ return None
+ else:
+ return mp4.group(1)
+
+ def is_hd(webpage):
+ return '<div class=\'icon iconHD\'' in webpage
+