[dailymotion] Fix view count regex

In some languages they can be in the format '123,456' instead of '123.456'
pull/8/head
Jaime Marquínez Ferrándiz 11 years ago
parent f53c966a73
commit 563e405411

@ -148,7 +148,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor, SubtitlesInfoExtractor):
return return
view_count = str_to_int(self._search_regex( view_count = str_to_int(self._search_regex(
r'video_views_value[^>]+>([\d\.]+)<', webpage, u'view count')) r'video_views_value[^>]+>([\d\.,]+)<', webpage, u'view count'))
return { return {
'id': video_id, 'id': video_id,

Loading…
Cancel
Save