fix: use itemconfiguration endpoint for get_collectible_item_id
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "rbx-upload"
|
name = "rbx-upload"
|
||||||
version = "0.2.6"
|
version = "0.2.7"
|
||||||
description = "Roblox asset upload client"
|
description = "Roblox asset upload client"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|||||||
@@ -293,11 +293,11 @@ class RobloxClient:
|
|||||||
"""Look up the collectible item ID (UUID) for a given asset ID, retrying until available."""
|
"""Look up the collectible item ID (UUID) for a given asset ID, retrying until available."""
|
||||||
for _ in range(max_attempts):
|
for _ in range(max_attempts):
|
||||||
response = await self._http.get(
|
response = await self._http.get(
|
||||||
self._proxy_url(f"https://economy.roblox.com/v2/assets/{asset_id}/details"),
|
f"https://itemconfiguration.roblox.com/v1/collectibles/0/{asset_id}",
|
||||||
cookies=self._csrf_cookies,
|
cookies=self._csrf_cookies,
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
collectible_item_id = response.json().get("CollectibleItemId")
|
collectible_item_id = response.json().get("collectibleItemId")
|
||||||
if collectible_item_id:
|
if collectible_item_id:
|
||||||
return collectible_item_id
|
return collectible_item_id
|
||||||
await asyncio.sleep(poll_interval)
|
await asyncio.sleep(poll_interval)
|
||||||
|
|||||||
Reference in New Issue
Block a user