From 3988b7bf085d1e171fa5ab22a424e1ef8dbe5d9e Mon Sep 17 00:00:00 2001 From: snylonue Date: Wed, 11 Mar 2020 16:10:07 +0800 Subject: [PATCH] [bilibili] try to support python 2.6+ and fix ci --- youtube_dl/extractor/bilibili.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py index dd28246de..e7831a7e2 100644 --- a/youtube_dl/extractor/bilibili.py +++ b/youtube_dl/extractor/bilibili.py @@ -455,7 +455,7 @@ class BilibiliNewBangumiIE(InfoExtractor): cid = bgmdata['epInfo']['cid'] # aid = bgmdata['epInfo']['aid'] except KeyError as e: - raise ExtractorError(f'{video_id}: Failed to extract cid', cause=e) + raise ExtractorError('Failed to extract cid', cause=e, video_id=video_id) title = bgmdata.get('h1Title') or self._og_search_title(webpage)