- video_id, 'Filelist XML')
- fileName = fileListXML.find('./video/item/fileName').text
-
- creation_time = self._html_search_regex(
- r"<div class='title'>Posted :</div>[\r\n ]*<div class='value'>([^<>]+)<",
- page, 'creation time', flags=re.MULTILINE) + '+08:00'
- creation_timestamp = parse_iso8601(creation_time, delimiter=' ')
-
- view_count_str = self._html_search_regex(
- r"<div class='title'>Views :</div>[\r\n ]*<div class='value'>([^<>]+)<",
- page, 'view count', flags=re.MULTILINE)
- views = int(view_count_str.replace(',', ''))
+ video_id, 'Downloading filelist XML')
+ file_name = file_list_doc.find('./video/item/fileName').text
+ video_url = compat_urlparse.urljoin(video_folder, file_name)
+
+ # Some URLs return "No permission or not login" in a webpage despite being
+ # freely available via oembed JSON URL (e.g. http://www.camdemy.com/media/13885)
+ upload_date = unified_strdate(self._search_regex(
+ r'>published on ([^<]+)<', webpage,
+ 'upload date', default=None))
+ view_count = str_to_int(self._search_regex(
+ r'role=["\']viewCnt["\'][^>]*>([\d,.]+) views',
+ webpage, 'view count', default=None))
+ description = self._html_search_meta(
+ 'description', webpage, default=None) or clean_html(
+ oembed_obj.get('description'))