testing view count is stupid
authorpeugeot <peugeot@psa.fr>
Sat, 30 Aug 2014 18:55:42 +0000 (20:55 +0200)
committerpeugeot <peugeot@psa.fr>
Sat, 30 Aug 2014 18:55:42 +0000 (20:55 +0200)
youtube_dl/extractor/anysex.py

index bfc7eb3c54c849d85cb8d13f20bf741b251cc24c..d578a17122b38539437067337c545d562a53faae 100644 (file)
@@ -16,7 +16,6 @@ class AnySexIE(InfoExtractor):
             'ext': 'mp4',
             'title': 'Busty and sexy blondie in her bikini strips for you',
             'duration': 270,
-            'view_count': 3652
         }
     }
 
@@ -39,6 +38,6 @@ class AnySexIE(InfoExtractor):
             'ext': 'mp4',
             'url': video_url,
             'title': title,
-            'duration': duration,
+            'duration': int_or_none(duration),
             'view_count': int_or_none(view_count),
         }