aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-13 07:09:39 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-13 07:09:39 +0200
commitf4a3490cbc8a6cae0a10b4ca68c2a40a41dddf83 (patch)
treeca4bc3fe9946bcae94e62965cda9944f54e6395f /youtube_dl/extractor
parent3d9fae1ed2da722faed44d4f89143f05797ab4d9 (diff)
[pornoxo] Fix test (view count)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/pornoxo.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/pornoxo.py b/youtube_dl/extractor/pornoxo.py
index 0d9656d39..202f58673 100644
--- a/youtube_dl/extractor/pornoxo.py
+++ b/youtube_dl/extractor/pornoxo.py
@@ -4,10 +4,10 @@ import re
from .common import InfoExtractor
from ..utils import (
- parse_duration,
str_to_int,
)
+
class PornoXOIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?pornoxo\.com/videos/(?P<id>\d+)/(?P<display_id>[^/]+)\.html'
_TEST = {
@@ -44,7 +44,7 @@ class PornoXOIE(InfoExtractor):
r'\'image\'\s*:\s*"([^"]+)"', webpage, 'thumbnail', fatal=False)
view_count = str_to_int(self._html_search_regex(
- r'Views:\s*(\d+)', webpage, 'view count', fatal=False))
+ r'[vV]iews:\s*([0-9,]+)', webpage, 'view count', fatal=False))
categories_str = self._html_search_regex(
r'<meta name="description" content=".*featuring\s*([^"]+)"',
@@ -53,7 +53,6 @@ class PornoXOIE(InfoExtractor):
None if categories_str is None
else categories_str.split(','))
-
return {
'id': video_id,
'url': video_url,