Skip to content

Commit

Permalink
[bilibili] oops
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Apr 22, 2022
1 parent fd2d7fd commit 0d55624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/you_get/extractors/bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def prepare(self, **kwargs):
html_content_ = get_content(self.url, headers=self.bilibili_headers(cookie='CURRENT_FNVAL=16'))
playinfo_text_ = match1(html_content_, r'__playinfo__=(.*?)</script><script>') # FIXME
playinfo_ = json.loads(playinfo_text_) if playinfo_text_ else None
playinfo_ = playinfo_ if playinfo and playinfo_.get('code') == 0 else None
playinfo_ = playinfo_ if playinfo_ and playinfo_.get('code') == 0 else None

if 'videoData' in initial_state:
# (standard video)
Expand Down

0 comments on commit 0d55624

Please sign in to comment.