diff --git a/ETL/L2_Builder.py b/ETL/L2_Builder.py index 83b0dce..41b3d0e 100644 --- a/ETL/L2_Builder.py +++ b/ETL/L2_Builder.py @@ -1100,7 +1100,11 @@ def save_match(cursor, m: MatchData): ON CONFLICT(steam_id_64) DO UPDATE SET uid=excluded.uid, username=excluded.username, - avatar_url=excluded.avatar_url, + avatar_url=CASE + WHEN excluded.avatar_url IS NOT NULL AND excluded.avatar_url != '' + THEN excluded.avatar_url + ELSE dim_players.avatar_url + END, domain=excluded.domain, created_at=excluded.created_at, updated_at=excluded.updated_at, diff --git a/downloader/README.md b/downloader/README.md index b1ea2de..f38b2b3 100644 --- a/downloader/README.md +++ b/downloader/README.md @@ -31,7 +31,7 @@ python downloader.py --url https://arena.5eplay.com/data/match/g161-202601182227 批量下载(从文件读取 URL): ```bash -python downloader/downloader.py --url-list gamelist/match_list_2026.txt -concurrent 8 +python downloader/downloader.py --url-list gamelist/match_list_2026.txt --concurrent 4 --headless true --fetch-type iframe ``` 指定输出目录: