@@ -972,6 +972,27 @@ async def get_stream_info(self, live_url: str) -> StreamData:
972
972
return await self .live_stream .fetch_stream_url (json_data , self .record_quality )
973
973
974
974
975
+ class LianJieHandler (PlatformHandler ):
976
+ platform = "lianjie"
977
+
978
+ def __init__ (
979
+ self ,
980
+ proxy : str | None = None ,
981
+ cookies : str | None = None ,
982
+ record_quality : str | None = None ,
983
+ platform : str | None = None ,
984
+ ) -> None :
985
+ super ().__init__ (proxy , cookies , record_quality , platform )
986
+ self .live_stream : streamget .LianJieLiveStream | None = None
987
+
988
+ @trace_error_decorator
989
+ async def get_stream_info (self , live_url : str ) -> StreamData :
990
+ if not self .live_stream :
991
+ self .live_stream = streamget .LianJieLiveStream (proxy_addr = self .proxy , cookies = self .cookies )
992
+ json_data = await self .live_stream .fetch_web_stream_data (url = live_url )
993
+ return await self .live_stream .fetch_stream_url (json_data , self .record_quality )
994
+
995
+
975
996
DouyinHandler .register (r"https://.*\.douyin\.com/" )
976
997
TikTokHandler .register (r"https://.*\.tiktok\.com/" )
977
998
KuaishouHandler .register (r"https://live\.kuaishou\.com/" )
@@ -1017,3 +1038,4 @@ async def get_stream_info(self, live_url: str) -> StreamData:
1017
1038
TaobaoHandler .register (r".*\.tb\.cn/" )
1018
1039
JDHandler .register (r"3\.cn/" )
1019
1040
FaceitHandler .register (r"https://.*\.faceit\.com/" )
1041
+ LianJieHandler .register (r"https://.*\.lailianjie\.com/" )
0 commit comments