mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[bilibili] oops
This commit is contained in:
parent
fd2d7fdcbc
commit
0d5562497f
@ -213,7 +213,7 @@ class Bilibili(VideoExtractor):
|
|||||||
html_content_ = get_content(self.url, headers=self.bilibili_headers(cookie='CURRENT_FNVAL=16'))
|
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_text_ = match1(html_content_, r'__playinfo__=(.*?)</script><script>') # FIXME
|
||||||
playinfo_ = json.loads(playinfo_text_) if playinfo_text_ else None
|
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:
|
if 'videoData' in initial_state:
|
||||||
# (standard video)
|
# (standard video)
|
||||||
|
Loading…
Reference in New Issue
Block a user