aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/eporner.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/eporner.py')
-rw-r--r--youtube_dl/extractor/eporner.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/eporner.py b/youtube_dl/extractor/eporner.py
index 3071da6db..72c3850b7 100644
--- a/youtube_dl/extractor/eporner.py
+++ b/youtube_dl/extractor/eporner.py
@@ -34,7 +34,11 @@ class EpornerIE(InfoExtractor):
duration = int(mobj.group('minutes')) * 60 + int(mobj.group('seconds')) if mobj else None
mobj = re.search(r'id="cinemaviews">((?P<thousands>\d+),)?(?P<units>\d+)<small>views', webpage)
- view_count = int(mobj.group('thousands')) * 1000 + int(mobj.group('units')) if mobj else None
+ try:
+ view_count = int(mobj.group('units'))
+ view_count += int(mobj.group('thousands')) * 1000
+ except:
+ pass
return {
'id': video_id,