This commit is contained in:
eric
2026-03-19 03:17:56 -05:00
parent 136362a34a
commit 1a2b43fd11

View File

@@ -143,7 +143,7 @@ def start_douyin_youtube_ffplay(
youtube_rtmp = val if val.startswith("rtmp://") else rtmp_base + val
print(f"[INFO] 从 {config_file} 读取 YouTube stream key: {youtube_rtmp}")
# 兼容:若上面未匹配到 key取第一个非配置项的值作为 stream key
if youtube_rtmp == rtmp_base + default_key:
if youtube_rtmp == rtmp_base + default_key:
for k, v in config.items("youtube"):
if k.strip().lower() not in ("enable_demucs", "demucs_use_gpu", "demucs_vocal_mix", "video_bitrate_mbps", "stats_interval_sec") and v.strip():
v = v.strip()