kryten-webqueue 0.4.3__tar.gz → 0.4.4__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.4.3 → kryten_webqueue-0.4.4}/PKG-INFO +1 -1
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/routes/queue.py +8 -2
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/pyproject.toml +1 -1
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/.github/workflows/python-publish.yml +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/.github/workflows/release.yml +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/.gitignore +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/README.md +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/config.example.json +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/deploy/kryten-webqueue.service +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/deploy/nginx-queue.conf +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/docs/IMPLEMENTATION_SPEC.md +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/docs/IMPL_API_GATE.md +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/docs/IMPL_ECONOMY.md +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/docs/IMPL_KRYTEN_PY.md +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/docs/IMPL_ROBOT.md +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/docs/PRE_PLAN_GAPS.md +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/docs/PRODUCT_PLAN.md +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/__init__.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/__main__.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/api_gate/__init__.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/api_gate/client.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/app.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/auth/__init__.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/auth/otp.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/auth/rate_limit.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/auth/session.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/catalog/__init__.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/catalog/db.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/catalog/images.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/catalog/sync.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/config.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/playlists/__init__.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/playlists/fire.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/playlists/importer.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/playlists/scheduler.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/queue/__init__.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/queue/ordering.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/queue/poller.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/queue/shadow.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/routes/__init__.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/routes/admin_playlists.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/routes/admin_queue.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/routes/admin_schedules.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/routes/auth.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/routes/catalog.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/routes/pages.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/routes/user.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/static/css/main.css +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/static/js/main.js +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/admin/index.html +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/admin/playlists.html +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/admin/queue_mgmt.html +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/admin/schedules.html +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/auth/login.html +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/base.html +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/catalog/browse.html +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/queue/index.html +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/user/dashboard.html +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/ws/__init__.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/ws/handler.py +0 -0
- {kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/ws/manager.py +0 -0
|
@@ -43,7 +43,10 @@ async def add_to_queue(request: Request, user: dict = Depends(get_current_user))
|
|
|
43
43
|
duration_sec=item["duration_sec"],
|
|
44
44
|
tier=tier,
|
|
45
45
|
)
|
|
46
|
-
|
|
46
|
+
if not preview.get("available", True):
|
|
47
|
+
error_code = preview.get("error_code") or "unavailable"
|
|
48
|
+
raise HTTPException(400, error_code)
|
|
49
|
+
z_cost = preview.get("cost_z")
|
|
47
50
|
if z_cost is None:
|
|
48
51
|
raise HTTPException(502, "Cost preview returned no cost value")
|
|
49
52
|
|
|
@@ -95,7 +98,10 @@ async def play_next(request: Request, user: dict = Depends(get_current_user)):
|
|
|
95
98
|
duration_sec=item["duration_sec"],
|
|
96
99
|
tier=tier,
|
|
97
100
|
)
|
|
98
|
-
|
|
101
|
+
if not preview.get("available", True):
|
|
102
|
+
error_code = preview.get("error_code") or "unavailable"
|
|
103
|
+
raise HTTPException(400, error_code)
|
|
104
|
+
z_cost = preview.get("cost_z")
|
|
99
105
|
if z_cost is None:
|
|
100
106
|
raise HTTPException(502, "Cost preview returned no cost value")
|
|
101
107
|
|
|
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.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/admin/playlists.html
RENAMED
|
File without changes
|
{kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/admin/queue_mgmt.html
RENAMED
|
File without changes
|
{kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/admin/schedules.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/catalog/browse.html
RENAMED
|
File without changes
|
|
File without changes
|
{kryten_webqueue-0.4.3 → kryten_webqueue-0.4.4}/kryten_webqueue/templates/user/dashboard.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|