aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/bilibili.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-12-03 22:43:19 +0100
committerremitamine <remitamine@gmail.com>2015-12-03 22:43:19 +0100
commit6612a34939d49d75b2f35d46b1ae9657c11e0f97 (patch)
treeaaa5735e00f0e86163ba99577d96420f4222e283 /youtube_dl/extractor/bilibili.py
parente5b4225f7c891c4971fe5acdf20459594d5ff9c2 (diff)
[bilibili] flake8
Diffstat (limited to 'youtube_dl/extractor/bilibili.py')
-rw-r--r--youtube_dl/extractor/bilibili.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py
index b5aaa41e7..59beb11bc 100644
--- a/youtube_dl/extractor/bilibili.py
+++ b/youtube_dl/extractor/bilibili.py
@@ -2,13 +2,9 @@
from __future__ import unicode_literals
import re
-import json
from .common import InfoExtractor
-from ..compat import (
- compat_etree_fromstring,
- compat_str,
-)
+from ..compat import compat_str
from ..utils import (
int_or_none,
unescapeHTML,
@@ -98,7 +94,7 @@ class BiliBiliIE(InfoExtractor):
'thumbnail': view_data.get('pic'),
'uploader': view_data.get('author'),
'timestamp': int_or_none(view_data.get('created')),
- 'view_count': view_data.get('play'),
+ 'view_count': int_or_none(view_data.get('play')),
'duration': int_or_none(xpath_text(doc, './timelength')),
}