mirror of
https://github.com/ihmily/DouyinLiveRecorder.git
synced 2025-12-26 05:48:32 +08:00
docs: update v4.0.1
This commit is contained in:
parent
4b692c0f77
commit
35bfca0a7a
@ -141,9 +141,9 @@ https://www.yy.com/22490906/22490906
|
||||
B站:
|
||||
https://live.bilibili.com/320
|
||||
|
||||
小红书:
|
||||
http://xhslink.com/xpJpfM
|
||||
小红书(推荐使用主页地址):
|
||||
https://www.xiaohongshu.com/user/profile/6330049c000000002303c7ed?appuid=5f3f478a00000000010005b3
|
||||
http://xhslink.com/xpJpfM
|
||||
|
||||
bigo直播:
|
||||
https://www.bigo.tv/cn/716418802
|
||||
@ -388,7 +388,7 @@ docker-compose stop
|
||||
- 新增shopee、youtube直播录制
|
||||
- 新增支持自定义m3u8、flv地址录制
|
||||
- 新增自定义执行脚本,支持python、bat、bash等
|
||||
- 修复花椒直播、小红书直播录制
|
||||
- 修复YY直播、花椒直播和小红书直播录制
|
||||
- 修复b站标题获取错误
|
||||
- 修复log日志错误
|
||||
- 20241030
|
||||
|
||||
@ -844,6 +844,7 @@ def get_xhs_stream_url(url: str, proxy_addr: OptionalStr = None, cookies: Option
|
||||
live_link = json_data['data'][0]['live_link']
|
||||
anchor_name = get_params(live_link, "host_nickname")
|
||||
if flv_url and get_response_status(flv_url, proxy_addr=proxy_addr, headers=headers):
|
||||
result['is_live'] = True
|
||||
return result
|
||||
flv_url = get_params(live_link, "flvUrl")
|
||||
result |= {"anchor_name": anchor_name, "is_live": True, "flv_url": flv_url, 'record_url': flv_url}
|
||||
@ -2978,4 +2979,4 @@ def get_youtube_stream_url(url: str, proxy_addr: OptionalStr = None, cookies: Op
|
||||
m3u8_url = json_data['streamingData']["hlsManifestUrl"]
|
||||
play_url_list = get_play_url_list(m3u8_url, proxy=proxy_addr, header=headers, abroad=True)
|
||||
result |= {"is_live": True, "title": live_title, "m3u8_url": m3u8_url, "play_url_list": play_url_list}
|
||||
return result
|
||||
return result
|
||||
9
i18n.py
9
i18n.py
@ -14,7 +14,11 @@ def init_gettext(locale_dir, locale_name):
|
||||
|
||||
|
||||
execute_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
|
||||
_tr = init_gettext(Path(execute_dir) / 'i18n', 'zh_CN')
|
||||
if os.path.exists(Path(execute_dir) / '_internal/i18n'):
|
||||
locale_path = Path(execute_dir) / '_internal/i18n'
|
||||
else:
|
||||
locale_path = Path(execute_dir) / 'i18n'
|
||||
_tr = init_gettext(locale_path, 'zh_CN')
|
||||
original_print = builtins.print
|
||||
package_name = 'douyinliverecorder'
|
||||
|
||||
@ -26,6 +30,3 @@ def translated_print(*args, **kwargs):
|
||||
else:
|
||||
translated_arg = str(arg)
|
||||
original_print(translated_arg, **kwargs)
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user