diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-17 17:53:08 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-17 18:59:51 +0530 |
commit | a06916d98e1669f9b7d821bcb3ca6d13bd6429fe (patch) | |
tree | e6484fd0b6301d0051a0300c866cc2922a4437b7 /yt_dlp/extractor/bilibili.py | |
parent | 681de68e9df67f07dde3fbbc6cb2e65a78b2bb16 (diff) | |
download | hypervideo-pre-a06916d98e1669f9b7d821bcb3ca6d13bd6429fe.tar.lz hypervideo-pre-a06916d98e1669f9b7d821bcb3ca6d13bd6429fe.tar.xz hypervideo-pre-a06916d98e1669f9b7d821bcb3ca6d13bd6429fe.zip |
[extractor] Add `write_debug` and `get_param`
Diffstat (limited to 'yt_dlp/extractor/bilibili.py')
-rw-r--r-- | yt_dlp/extractor/bilibili.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/bilibili.py b/yt_dlp/extractor/bilibili.py index b7b60b77e..baa753976 100644 --- a/yt_dlp/extractor/bilibili.py +++ b/yt_dlp/extractor/bilibili.py @@ -153,7 +153,7 @@ class BiliBiliIE(InfoExtractor): # Bilibili anthologies are similar to playlists but all videos share the same video ID as the anthology itself. # If the video has no page argument, check to see if it's an anthology if page_id is None: - if not self._downloader.params.get('noplaylist'): + if not self.get_param('noplaylist'): r = self._extract_anthology_entries(bv_id, video_id, webpage) if r is not None: self.to_screen('Downloading anthology %s - add --no-playlist to just download video' % video_id) @@ -299,7 +299,7 @@ class BiliBiliIE(InfoExtractor): 'tags': tags, 'raw_tags': raw_tags, } - if self._downloader.params.get('getcomments', False): + if self.get_param('getcomments', False): def get_comments(): comments = self._get_all_comment_pages(video_id) return { |