summary refs log tree commit diff
diff options
context:
space:
mode:
authorpeugeot <peugeot@psa.fr>2014-08-30 20:46:25 +0200
committerpeugeot <peugeot@psa.fr>2014-08-30 20:46:25 +0200
commit0bafcf6f468985df5dfd3d402815a73e69193e2d (patch)
tree4e5a6aad93aea9a6bc691c62f14450a3074c26d4
parent72c65d39ff4cfadba5eb5021c8dfd99e69c3e3a4 (diff)
downloadyoutube-dl-0bafcf6f468985df5dfd3d402815a73e69193e2d.tar.gz
youtube-dl-0bafcf6f468985df5dfd3d402815a73e69193e2d.tar.xz
youtube-dl-0bafcf6f468985df5dfd3d402815a73e69193e2d.zip
forgot to test view count
-rw-r--r--youtube_dl/extractor/anysex.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/anysex.py b/youtube_dl/extractor/anysex.py
index ef74805dd..bfc7eb3c5 100644
--- a/youtube_dl/extractor/anysex.py
+++ b/youtube_dl/extractor/anysex.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
 import re
 
 from .common import InfoExtractor
+from ..utils import int_or_none
 
 class AnySexIE(InfoExtractor):
     _VALID_URL = r'http?://(?:www\.)?anysex\.com/(?P<id>\d+)/?'
@@ -14,7 +15,8 @@ class AnySexIE(InfoExtractor):
             'id': '156592',
             'ext': 'mp4',
             '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,
             'title': title,
             'duration': duration,
-            'view_count': view_count
+            'view_count': int_or_none(view_count),
         }