1
0
Fork 0

[cleanup] Lint and misc cleanup

This commit is contained in:
pukkandan 2022-11-07 02:29:58 +05:30
commit 46d09f8707
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
11 changed files with 46 additions and 43 deletions

View file

@ -368,7 +368,7 @@ class BiliBiliBangumiIE(BilibiliBaseIE):
or '正在观看预览,大会员免费看全片' in webpage):
self.raise_login_required('This video is for premium members only')
play_info = self._search_json(r'window\.__playinfo__\s*=\s*', webpage, 'play info', video_id)['data']
play_info = self._search_json(r'window\.__playinfo__\s*=', webpage, 'play info', video_id)['data']
formats = self.extract_formats(play_info)
if (not formats and '成为大会员抢先看' in webpage
and play_info.get('durl') and not play_info.get('dash')):