kryten-webqueue 0.2.5__tar.gz → 0.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/PKG-INFO +1 -1
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/catalog/sync.py +12 -13
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/pyproject.toml +1 -1
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/.github/workflows/python-publish.yml +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/.github/workflows/release.yml +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/.gitignore +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/README.md +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/config.example.json +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/deploy/kryten-webqueue.service +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/deploy/nginx-queue.conf +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/docs/IMPLEMENTATION_SPEC.md +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/docs/IMPL_API_GATE.md +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/docs/IMPL_ECONOMY.md +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/docs/IMPL_KRYTEN_PY.md +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/docs/IMPL_ROBOT.md +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/docs/PRE_PLAN_GAPS.md +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/docs/PRODUCT_PLAN.md +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/__init__.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/__main__.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/api_gate/__init__.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/api_gate/client.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/app.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/auth/__init__.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/auth/otp.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/auth/rate_limit.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/auth/session.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/catalog/__init__.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/catalog/db.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/catalog/images.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/config.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/playlists/__init__.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/playlists/fire.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/playlists/importer.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/playlists/scheduler.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/queue/__init__.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/queue/ordering.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/queue/poller.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/queue/shadow.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/routes/__init__.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/routes/admin_playlists.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/routes/admin_queue.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/routes/admin_schedules.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/routes/auth.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/routes/catalog.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/routes/pages.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/routes/queue.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/routes/user.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/static/css/main.css +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/static/js/main.js +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/templates/admin/index.html +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/templates/auth/login.html +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/templates/base.html +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/templates/catalog/browse.html +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/templates/queue/index.html +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/templates/user/dashboard.html +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/ws/__init__.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/ws/handler.py +0 -0
- {kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/ws/manager.py +0 -0
|
@@ -52,16 +52,16 @@ class CatalogSync:
|
|
|
52
52
|
stats = {"seen": 0, "new": 0, "updated": 0, "errors": 0}
|
|
53
53
|
|
|
54
54
|
try:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
next_url: str | None = f"{self._url}/api/v1/media"
|
|
56
|
+
params: dict = {"page_size": 50}
|
|
57
|
+
page = 0
|
|
58
|
+
|
|
59
|
+
while next_url:
|
|
60
|
+
page += 1
|
|
58
61
|
try:
|
|
59
|
-
resp = await self._client.get(
|
|
60
|
-
api_url,
|
|
61
|
-
params={"page": page, "page_size": 50},
|
|
62
|
-
)
|
|
62
|
+
resp = await self._client.get(next_url, params=params if page == 1 else None)
|
|
63
63
|
except httpx.TransportError as exc:
|
|
64
|
-
logger.error(_describe_httpx_error(exc,
|
|
64
|
+
logger.error(_describe_httpx_error(exc, next_url))
|
|
65
65
|
stats["errors"] += 1
|
|
66
66
|
break
|
|
67
67
|
|
|
@@ -87,13 +87,12 @@ class CatalogSync:
|
|
|
87
87
|
logger.warning(f"Error processing {media.get('friendly_token')}: {e}")
|
|
88
88
|
stats["errors"] += 1
|
|
89
89
|
|
|
90
|
-
#
|
|
91
|
-
if isinstance(data, dict)
|
|
92
|
-
|
|
93
|
-
page += 1
|
|
90
|
+
# Follow the next URL from the response — don't construct it ourselves
|
|
91
|
+
next_url = data.get("next") if isinstance(data, dict) else None
|
|
92
|
+
logger.debug(f"Catalog sync page {page}: seen={stats['seen']} next={next_url!r}")
|
|
94
93
|
|
|
95
94
|
await self._db.finish_sync_log(log_id, stats, "completed")
|
|
96
|
-
logger.info(f"Catalog sync: {stats}")
|
|
95
|
+
logger.info(f"Catalog sync complete: {stats} ({page} pages)")
|
|
97
96
|
except httpx.TransportError as exc:
|
|
98
97
|
logger.error(_describe_httpx_error(exc, f"{self._url}/api/v1/media"))
|
|
99
98
|
stats["errors"] += 1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/templates/catalog/browse.html
RENAMED
|
File without changes
|
|
File without changes
|
{kryten_webqueue-0.2.5 → kryten_webqueue-0.2.6}/kryten_webqueue/templates/user/dashboard.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|