Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
545 B
Python
19 lines
545 B
Python
# -*- coding: utf-8 -*-
|
|
import asyncio
|
|
import json
|
|
import sys
|
|
|
|
sys.path.insert(0, "/opt/douyinWEB/backend")
|
|
from app import youtube_live # noqa: E402
|
|
|
|
|
|
async def main():
|
|
p = await youtube_live.build_live_map(force=True)
|
|
print("live_count", p.get("live_count"))
|
|
for k, v in sorted((p.get("entries") or {}).items()):
|
|
if isinstance(v, dict) and v.get("is_live"):
|
|
print(k, "src=", v.get("source"), "title=", (v.get("title") or "")[:40], "detect=", (v.get("studio") or {}).get("detect_source"))
|
|
|
|
|
|
asyncio.run(main())
|