Update scraper.py (Hybrid methods支持b23.tv的哔哩哔哩网址)

This commit is contained in:
befantasy 2023-10-07 16:41:37 +08:00 committed by GitHub
parent d5c6d0894f
commit 9b6de49414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -551,7 +551,7 @@ class Scraper:
async def judge_url_platform(self, video_url: str) -> str:
if 'douyin' in video_url:
url_platform = 'douyin'
elif 'bilibili' in video_url:
elif 'bilibili' in video_url or 'b23.tv' in video_url:
url_platform = 'bilibili'
elif 'xigua' in video_url:
url_platform = 'xigua'