@@ -1035,6 +1035,27 @@ async def get_stream_info(self, live_url: str) -> StreamData:
1035
1035
return await self .live_stream .fetch_stream_url (json_data , self .record_quality )
1036
1036
1037
1037
1038
+ class LaixiuHandler (PlatformHandler ):
1039
+ platform = "laixiu"
1040
+
1041
+ def __init__ (
1042
+ self ,
1043
+ proxy : str | None = None ,
1044
+ cookies : str | None = None ,
1045
+ record_quality : str | None = None ,
1046
+ platform : str | None = None ,
1047
+ ) -> None :
1048
+ super ().__init__ (proxy , cookies , record_quality , platform )
1049
+ self .live_stream : streamget .LaixiuLiveStream | None = None
1050
+
1051
+ @trace_error_decorator
1052
+ async def get_stream_info (self , live_url : str ) -> StreamData :
1053
+ if not self .live_stream :
1054
+ self .live_stream = streamget .LaixiuLiveStream (proxy_addr = self .proxy , cookies = self .cookies )
1055
+ json_data = await self .live_stream .fetch_web_stream_data (url = live_url )
1056
+ return await self .live_stream .fetch_stream_url (json_data , self .record_quality )
1057
+
1058
+
1038
1059
DouyinHandler .register (r"https://.*\.douyin\.com/" )
1039
1060
TikTokHandler .register (r"https://.*\.tiktok\.com/" )
1040
1061
KuaishouHandler .register (r"https://live\.kuaishou\.com/" )
@@ -1083,3 +1104,4 @@ async def get_stream_info(self, live_url: str) -> StreamData:
1083
1104
FaceitHandler .register (r"https://.*\.faceit\.com/" )
1084
1105
LianJieHandler .register (r"https://.*\.lailianjie\.com/" )
1085
1106
MiguHandler .register (r"https://.*\.miguvideo\.com/" )
1107
+ LaixiuHandler .register (r"https://.*\.imkktv\.com/" )
0 commit comments