mirror of https://github.com/yt-dlp/yt-dlp.git
[bilibili] flake8
This commit is contained in:
parent
e5b4225f7c
commit
6612a34939
|
@ -2,13 +2,9 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import json
|
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import (
|
from ..compat import compat_str
|
||||||
compat_etree_fromstring,
|
|
||||||
compat_str,
|
|
||||||
)
|
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
int_or_none,
|
int_or_none,
|
||||||
unescapeHTML,
|
unescapeHTML,
|
||||||
|
@ -98,7 +94,7 @@ class BiliBiliIE(InfoExtractor):
|
||||||
'thumbnail': view_data.get('pic'),
|
'thumbnail': view_data.get('pic'),
|
||||||
'uploader': view_data.get('author'),
|
'uploader': view_data.get('author'),
|
||||||
'timestamp': int_or_none(view_data.get('created')),
|
'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')),
|
'duration': int_or_none(xpath_text(doc, './timelength')),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue