aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorNaglis Jonaitis <njonaitis@gmail.com>2015-06-06 03:11:43 +0300
committerNaglis Jonaitis <njonaitis@gmail.com>2015-06-06 03:11:43 +0300
commit54eb81a087516e9d040bc1ad274c0a64b51dd1d1 (patch)
tree7485aab78f72a255bfefc14eaf06e00d9a9ad13b /youtube_dl
parentc33c547d66b20064f83932cdaa04823b17a96b70 (diff)
[pornovoisines] Improve average_rating extraction and update test case
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/pornovoisines.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/pornovoisines.py b/youtube_dl/extractor/pornovoisines.py
index 9688ed948..eba4dfbb3 100644
--- a/youtube_dl/extractor/pornovoisines.py
+++ b/youtube_dl/extractor/pornovoisines.py
@@ -34,7 +34,7 @@ class PornoVoisinesIE(InfoExtractor):
'duration': 120,
'view_count': int,
'average_rating': float,
- 'categories': ['Débutante', 'Scénario', 'Sodomie'],
+ 'categories': ['Débutantes', 'Scénario', 'Sodomie'],
'age_limit': 18,
}
}
@@ -71,7 +71,7 @@ class PornoVoisinesIE(InfoExtractor):
view_count = int_or_none(self._search_regex(
r'(\d+) vues', webpage, 'view count', fatal=False))
average_rating = self._search_regex(
- r'Note : (\d+,\d+)', webpage, 'average rating', fatal=False)
+ r'Note\s*:\s*(\d+(?:,\d+)?)', webpage, 'average rating', fatal=False)
if average_rating:
average_rating = float_or_none(average_rating.replace(',', '.'))