1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-22 06:02:52 +08:00

[dailymotion] Fix view count regex

In some languages they can be in the format '123,456' instead of '123.456'
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-12-06 13:41:07 +01:00
parent f53c966a73
commit 563e405411

View File

@ -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,