Skip to content

Commit 47ff8f5

Browse files
committed
fix: some more bootatrapping
1 parent 4d0697c commit 47ff8f5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/routes.rs

+10-5
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ pub fn route() -> Router {
143143
Router::new()
144144
.hoop(ntf_watchlist_force)
145145
//.get(ping)
146+
//.hoop(debug)
146147
.goal(proxy_request)
147148
.path("/media/providers"),
148149
);
@@ -322,7 +323,9 @@ async fn debug(
322323
ctrl: &mut FlowCtrl,
323324
) {
324325
//dbg!("tequested");
325-
dbg!(&req);
326+
let params: PlexContext = req.extract().await.unwrap();
327+
dbg!(&params.token);
328+
//dbg!(&req);
326329
}
327330

328331
#[handler]
@@ -361,19 +364,23 @@ async fn ntf_watchlist_force(
361364
.await
362365
.unwrap();
363366

367+
364368
if !res.status().is_success() {
365-
dbg!("cannot get user");
369+
tracing::info!(
370+
"cannot get user"
371+
);
366372
return;
367373
}
368374

375+
369376
let user: PlexUser = res.json().await.unwrap();
370377
tracing::info!(
371378
id = %user.id,
372379
uuid = %user.uuid,
373380
username = %user.username,
374381
"got user"
375382
);
376-
383+
377384
let response = client
378385
.post(url)
379386
.header("Content-Type", "application/json")
@@ -392,8 +399,6 @@ async fn ntf_watchlist_force(
392399
"tv.plex.provider.music",
393400
];
394401

395-
396-
;
397402
//let
398403
//return;
399404
let u = format!("{}/api/v2/user/{}/settings/opt_outs", client_base, &user.uuid);

0 commit comments

Comments
 (0)