- timestamp = parse_iso8601(self._html_search_regex(
- r"<div class='title'>Posted\s*:</div>\s*<div class='value'>([^<>]+)<",
- page, 'creation time', fatal=False),
- delimiter=' ', timezone=datetime.timedelta(hours=8))
- view_count = str_to_int(self._html_search_regex(
- r"<div class='title'>Views\s*:</div>\s*<div class='value'>([^<>]+)<",
- page, 'view count', fatal=False))
+ # 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'))