1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-16 14:55:45 +00:00

forgot to test view count

This commit is contained in:
peugeot 2014-08-30 20:46:25 +02:00
parent 72c65d39ff
commit 0bafcf6f46

View file

@ -4,6 +4,7 @@ from __future__ import unicode_literals
import re import re
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import int_or_none
class AnySexIE(InfoExtractor): class AnySexIE(InfoExtractor):
_VALID_URL = r'http?://(?:www\.)?anysex\.com/(?P<id>\d+)/?' _VALID_URL = r'http?://(?:www\.)?anysex\.com/(?P<id>\d+)/?'
@ -14,7 +15,8 @@ class AnySexIE(InfoExtractor):
'id': '156592', 'id': '156592',
'ext': 'mp4', 'ext': 'mp4',
'title': 'Busty and sexy blondie in her bikini strips for you', 'title': 'Busty and sexy blondie in her bikini strips for you',
'duration': 270 'duration': 270,
'view_count': 3652
} }
} }
@ -38,5 +40,5 @@ class AnySexIE(InfoExtractor):
'url': video_url, 'url': video_url,
'title': title, 'title': title,
'duration': duration, 'duration': duration,
'view_count': view_count 'view_count': int_or_none(view_count),
} }