Conversation
Kodiai Review SummaryWhat ChangedNew addon submission for PunchPlay Scrobble - automatically tracks movies and TV episodes watched in Kodi and sends them to PunchPlay.tv account. Reviewed: core logic, docs Strengths
ObservationsImpact[CRITICAL] script.punchplay/api.py (450): 4xx errors silently dropped during queue flush [MAJOR] script.punchplay/player.py (324-326): Potential crash from None season/episode values [MAJOR] script.punchplay/service.py (79, 84): Silent timestamp update on flush_queue exception Verdict🔴 Address before merging -- 3 blocking issue(s) found Review Details
|
137172a to
d64fd6f
Compare
@kodiai can you re review? |
kodiai responseFresh review complete. The code is well-structured overall with solid error handling patterns, but has three issues that should be addressed: Critical Issues(1) api.py:164 — The function returns But the issue is in the initial The real problem: the function name and logic are confusing. It should clearly separate "permanent client errors that should be dropped" (400, 403, 404, 422) from "auth errors that need user action" (401). Recommendation: Rename to (2) service.py:79-85 — Silent queue flush failures When
The Recommendation: Remove the try/except and let exceptions propagate, or at minimum log at WARNING level and update (3) player.py:174-176 — Heartbeat thread doesn't exit cleanly on player errors When Recommendation: After catching an exception, always call Minor Observations(4) cache.py:39-40 — WAL mode pragma executed on every connection
Optional: Move WAL pragma to (5) identifier.py:92-97 — Anime detection uses broad "animation" genre The Optional: If the intent is to distinguish Japanese animation specifically, consider checking for both "anime" and "animation" separately, or rely solely on "anime" genre tag. If the current behavior is intentional, document it clearly. All issues include exact file:line references. The critical issues should be fixed before merge; the minor observations are optional improvements. |
264fc6c to
8301a2f
Compare
@kodiai please review again. Should all be resolved now and readme updated. |
|
Please fix the icon |
abe1344 to
fad36a7
Compare
Hey @romanvm, should be all good now. |
Description
New add-on submission. PunchPlay Scrobble automatically tracks movies and TV episodes watched in Kodi and sends them to your PunchPlay.tv account in real time. Features device-code OAuth login, offline queuing with SQLite, heartbeat progress reporting, anime detection via genre tags, and a filename parser fallback.
Source: https://github.com/PunchPlay/script.punchplay
License: GPL-2.0-only
Tested on: Kodi 21 (Omega) macOS
Checklist: