diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py index eb463b35d..50ec9c486 100644 --- a/youtube_dl/extractor/bilibili.py +++ b/youtube_dl/extractor/bilibili.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals import hashlib import re +from datetime import datetime from .common import InfoExtractor from ..compat import ( @@ -47,7 +48,7 @@ class BiliBiliIE(InfoExtractor): 'title': '【金坷垃】金泡沫', 'description': 'md5:ce18c2a2d2193f0df2917d270f2e5923', 'duration': 308.067, - 'timestamp': 1398012678, + 'timestamp': 1397983878, 'upload_date': '20140420', 'thumbnail': r're:^https?://.+\.jpg', 'uploader': '菊子桑', @@ -74,31 +75,26 @@ class BiliBiliIE(InfoExtractor): 'id': '8903802', 'title': '阿滴英文|英文歌分享#6 "Closer', 'description': '滴妹今天唱Closer給你聽! 有史以来,被推最多次也是最久的歌曲,其实歌词跟我原本想像差蛮多的,不过还是好听! 微博@阿滴英文', + 'uploader': '阿滴英文', + 'uploader_id': '65880958', + 'upload_date': '20170301', + 'timestamp': 1488353834, }, 'playlist': [{ 'info_dict': { - 'id': '8903802_part1', + 'id': '8903802_14694589_1', 'ext': 'flv', 'title': '阿滴英文|英文歌分享#6 "Closer', - 'description': 'md5:3b1b9e25b78da4ef87e9b548b88ee76a', - 'uploader': '阿滴英文', - 'uploader_id': '65880958', - 'timestamp': 1488382634, - 'upload_date': '20170301', + }, 'params': { 'skip_download': True, # Test metadata only }, }, { 'info_dict': { - 'id': '8903802_part2', + 'id': '8903802_14694589_2', 'ext': 'flv', 'title': '阿滴英文|英文歌分享#6 "Closer', - 'description': 'md5:3b1b9e25b78da4ef87e9b548b88ee76a', - 'uploader': '阿滴英文', - 'uploader_id': '65880958', - 'timestamp': 1488382634, - 'upload_date': '20170301', }, 'params': { 'skip_download': True, # Test metadata only @@ -136,19 +132,23 @@ class BiliBiliIE(InfoExtractor): original_video_id = video_id anime_id = mobj.group('anime_id') or mobj.group('anime_id_2') webpage = self._download_webpage(url, video_id) - title = self._html_search_regex( - ('