feat: infer domestic platforms from source urls
This commit is contained in:
@@ -1072,6 +1072,14 @@ def infer_platform_from_url(source_url: str) -> str:
|
||||
return "douyin"
|
||||
if "xiaohongshu.com" in normalized or "xhslink.com" in normalized:
|
||||
return "xiaohongshu"
|
||||
if (
|
||||
"kuaishou.com" in normalized
|
||||
or "chenzhongtech.com" in normalized
|
||||
or "v.kuaishou.com" in normalized
|
||||
):
|
||||
return "kuaishou"
|
||||
if "channels.weixin.qq.com" in normalized or "mp.weixin.qq.com/s" in normalized:
|
||||
return "wechat_video"
|
||||
if "youtube.com" in normalized or "youtu.be" in normalized:
|
||||
return "youtube"
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user