fix: update twitcasting-tv record

This commit is contained in:
ihmily 2024-05-08 15:52:30 +08:00
parent 76e57879d6
commit ed91944158

View File

@ -1484,7 +1484,7 @@ def get_twitcasting_stream_url(
def get_data(header):
html_str = get_req(url, proxy_addr=proxy_addr, headers=header)
anchor = re.search("<title>(.*?)\(@(.*?)\) 's Live - Twit", html_str)
anchor = re.search("<title>(.*?) \(@(.*?)\) 的直播 - Twit", html_str)
status = re.search('data-is-onlive="(.*?)"\n\s+data-view-mode', html_str)
movie_id = re.search('data-movie-id="(.*?)" data-audience-id', html_str)
return f'{anchor.group(1).strip()}-{anchor.group(2)}-{movie_id.group(1)}', status.group(1)
@ -1986,4 +1986,4 @@ if __name__ == '__main__':
# print(get_twitchtv_stream_data(room_url, proxy_addr=''))
# print(get_liveme_stream_url(room_url, proxy_addr=''))
# print(get_huajiao_stream_url(room_url, proxy_addr=''))
# print(get_liuxing_stream_url(room_url, proxy_addr=''))
# print(get_liuxing_stream_url(room_url, proxy_addr=''))