From e7e90b094a9c65c0336e40cd64878517722f9e21 Mon Sep 17 00:00:00 2001
From: JChris246 <43832407+JChris246@users.noreply.github.com>
Date: Sat, 2 Feb 2019 12:54:22 -0400
Subject: [PATCH 1/3] Fixed extractor #16276
fixed parsing description
fixed parsing uploader
fixed parsing view count
fixed parsing duration,
fixed parsing video_urls
fixed parsing thumbnail
---
youtube_dl/extractor/vporn.py | 48 ++++++++++++++---------------------
1 file changed, 19 insertions(+), 29 deletions(-)
diff --git a/youtube_dl/extractor/vporn.py b/youtube_dl/extractor/vporn.py
index 858ac9e71..9a11ebfc0 100644
--- a/youtube_dl/extractor/vporn.py
+++ b/youtube_dl/extractor/vporn.py
@@ -6,8 +6,8 @@ from .common import InfoExtractor
from ..utils import (
ExtractorError,
parse_duration,
+ parse_resolution,
str_to_int,
- urljoin,
)
@@ -64,47 +64,37 @@ class VpornIE(InfoExtractor):
title = self._html_search_regex(
r'videoname\s*=\s*\'([^\']+)\'', webpage, 'title').strip()
- description = self._html_search_regex(
- r'class="(?:descr|description_txt)">(.*?)',
- webpage, 'description', fatal=False)
- thumbnail = urljoin('http://www.vporn.com', self._html_search_regex(
- r'flashvars\.imageUrl\s*=\s*"([^"]+)"', webpage, 'description',
- default=None))
- uploader = self._html_search_regex(
- r'(?s)Uploaded by:.*?]*>(.+?)',
- webpage, 'uploader', fatal=False)
+ description = self._search_regex(r'[^>]*class="(?:sidebar-box)"[^>]*>[\n]
(.*?)
',
+ webpage, 'description', fatal=False)
- categories = re.findall(r']*>([^<]+)', webpage)
+ thumbnail = self._search_regex(r'