From 510608fdbc43947391d82c703370814aa57a454e Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 16 Sep 2025 01:34:52 -0400 Subject: Update --- src/wasp-twitch.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/wasp-twitch.el') diff --git a/src/wasp-twitch.el b/src/wasp-twitch.el index bd92b435..87977cbd 100644 --- a/src/wasp-twitch.el +++ b/src/wasp-twitch.el @@ -185,11 +185,14 @@ (defun w/twitch-get-user-id (user k) "Get the ID for USER and pass it to K." - (w/twitch-api-get - (s-concat "/users?login=" user) - (lambda (data) - (let ((id (ht-get (aref (ht-get data "data") 0) "id"))) - (funcall k id))))) + (cond + ((s-equals? user "fake_test_user") (funcall k "69")) + (t + (w/twitch-api-get + (s-concat "/users?login=" user) + (lambda (data) + (let ((id (-some-> data (ht-get "data") (w/safe-elt 0) (ht-get "id")))) + (funcall k id))))))) (defun w/twitch-get-recent-clips (userid k) "Get clips from the last week for USERID and pass them to K." -- cgit v1.2.3