You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve Canvas Panopto tool ID per-course instead of hardcoding 128
Reported: with a secondary Canvas token, EE4802 showed zero videos.
Root cause: _PANOPTO_TAB_TOOL_ID was a hardcoded 128. Canvas assigns
external-tool IDs per-institution and sometimes per-course; the old
constant only matched the author's default token/course. For any other
token or a course that registered Panopto under a different tool ID,
Strategy 2 (Panopto folder API) silently returned no videos.
Fix: new _resolve_panopto_tool_id(course_id) queries
GET /api/v1/courses/{course_id}/external_tools and matches on
name/domain/url containing "panopto" (or common aliases "videos",
"video", "lecture videos"). Results are cached per-course. The old
constant is retained only as a last-resort fallback and log any
non-200 response from the sessionless-launch endpoint so the failure
is no longer silent.
0 commit comments