Commit 47ff8f5 1 parent 4d0697c commit 47ff8f5 Copy full SHA for 47ff8f5
File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ pub fn route() -> Router {
143
143
Router :: new ( )
144
144
. hoop ( ntf_watchlist_force)
145
145
//.get(ping)
146
+ //.hoop(debug)
146
147
. goal ( proxy_request)
147
148
. path ( "/media/providers" ) ,
148
149
) ;
@@ -322,7 +323,9 @@ async fn debug(
322
323
ctrl : & mut FlowCtrl ,
323
324
) {
324
325
//dbg!("tequested");
325
- dbg ! ( & req) ;
326
+ let params: PlexContext = req. extract ( ) . await . unwrap ( ) ;
327
+ dbg ! ( & params. token) ;
328
+ //dbg!(&req);
326
329
}
327
330
328
331
#[ handler]
@@ -361,19 +364,23 @@ async fn ntf_watchlist_force(
361
364
. await
362
365
. unwrap ( ) ;
363
366
367
+
364
368
if !res. status ( ) . is_success ( ) {
365
- dbg ! ( "cannot get user" ) ;
369
+ tracing:: info!(
370
+ "cannot get user"
371
+ ) ;
366
372
return ;
367
373
}
368
374
375
+
369
376
let user: PlexUser = res. json ( ) . await . unwrap ( ) ;
370
377
tracing:: info!(
371
378
id = %user. id,
372
379
uuid = %user. uuid,
373
380
username = %user. username,
374
381
"got user"
375
382
) ;
376
-
383
+
377
384
let response = client
378
385
. post ( url)
379
386
. header ( "Content-Type" , "application/json" )
@@ -392,8 +399,6 @@ async fn ntf_watchlist_force(
392
399
"tv.plex.provider.music" ,
393
400
] ;
394
401
395
-
396
- ;
397
402
//let
398
403
//return;
399
404
let u = format ! ( "{}/api/v2/user/{}/settings/opt_outs" , client_base, & user. uuid) ;
You can’t perform that action at this time.
0 commit comments