Skip to content

Commit

Permalink
[bilibili] change all http to https
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed May 17, 2024
1 parent 0e6d303 commit a4d34ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/you_get/extractors/bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def prepare(self, **kwargs):
'src': [[baseurl]], 'size': size}

# get danmaku
self.danmaku = get_content('http://comment.bilibili.com/%s.xml' % cid, headers=self.bilibili_headers(referer=self.url))
self.danmaku = get_content('https://comment.bilibili.com/%s.xml' % cid, headers=self.bilibili_headers(referer=self.url))

# bangumi
elif sort == 'bangumi':
Expand Down Expand Up @@ -414,7 +414,7 @@ def prepare(self, **kwargs):
'src': [[baseurl], [audio_baseurl]], 'size': size}

# get danmaku
self.danmaku = get_content('http://comment.bilibili.com/%s.xml' % cid, headers=self.bilibili_headers(referer=self.url))
self.danmaku = get_content('https://comment.bilibili.com/%s.xml' % cid, headers=self.bilibili_headers(referer=self.url))

# vc video
elif sort == 'vc':
Expand Down Expand Up @@ -596,7 +596,7 @@ def prepare_by_cid(self,avid,cid,title,html_content,playinfo,playinfo_,url):
'src': [[baseurl]], 'size': size}

# get danmaku
self.danmaku = get_content('http://comment.bilibili.com/%s.xml' % cid, headers=self.bilibili_headers(referer=self.url))
self.danmaku = get_content('https://comment.bilibili.com/%s.xml' % cid, headers=self.bilibili_headers(referer=self.url))

def extract(self, **kwargs):
# set UA and referer for downloading
Expand Down

0 comments on commit a4d34ff

Please sign in to comment.