|
@@ -822,7 +822,13 @@ async def sync_from_filamentcolors(
|
|
|
total_available = 0
|
|
total_available = 0
|
|
|
|
|
|
|
|
try:
|
|
try:
|
|
|
- async with httpx.AsyncClient(timeout=120.0) as client:
|
|
|
|
|
|
|
+ # Identify honestly as Bambuddy rather than leaking httpx's
|
|
|
|
|
+ # default "python-httpx/x.y" UA — consistent with every other
|
|
|
|
|
+ # outbound client (bambu_cloud, makerworld, firmware_check).
|
|
|
|
|
+ async with httpx.AsyncClient(
|
|
|
|
|
+ timeout=120.0,
|
|
|
|
|
+ headers={"User-Agent": "Bambuddy/1.0 (+https://github.com/maziggy/bambuddy)"},
|
|
|
|
|
+ ) as client:
|
|
|
page = 1
|
|
page = 1
|
|
|
while True:
|
|
while True:
|
|
|
response = await client.get(
|
|
response = await client.get(
|