@@ -689,34 +689,11 @@ async fn xtream_player_api_timeshift_stream(
689689 axum:: extract:: State ( app_state) : axum:: extract:: State < Arc < AppState > > ,
690690 axum:: extract:: Form ( api_form_req) : axum:: extract:: Form < UserApiRequest > ,
691691) -> impl IntoResponse + Send {
692- let username = get_non_empty (
693- & timeshift_request. username ,
694- & api_form_req. username ,
695- & api_req. username ,
696- )
697- . to_string ( ) ;
698- let password = get_non_empty (
699- & timeshift_request. password ,
700- & api_form_req. password ,
701- & api_req. password ,
702- )
703- . to_string ( ) ;
704- let stream_id = get_non_empty (
705- & timeshift_request. stream_id ,
706- & api_req. stream_id ,
707- & api_form_req. stream_id ,
708- )
709- . to_string ( ) ;
710- let duration = get_non_empty (
711- & timeshift_request. duration ,
712- & timeshift_request. duration ,
713- & api_form_req. duration ,
714- ) ;
715- let start = get_non_empty (
716- & timeshift_request. start ,
717- & timeshift_request. start ,
718- & api_form_req. start ,
719- ) ;
692+ let username = get_non_empty ( & timeshift_request. username , & api_form_req. username , & api_req. username ) . to_string ( ) ;
693+ let password = get_non_empty ( & timeshift_request. password , & api_form_req. password , & api_req. password ) . to_string ( ) ;
694+ let stream_id = get_non_empty ( & timeshift_request. stream_id , & api_req. stream_id , & api_form_req. stream_id ) . to_string ( ) ;
695+ let duration = get_non_empty ( & timeshift_request. duration , & timeshift_request. duration , & api_form_req. duration ) ;
696+ let start = get_non_empty ( & timeshift_request. start , & timeshift_request. start , & api_form_req. start ) ;
720697
721698 let action_path = format ! ( "{duration}/{start}" ) ;
722699 api_req. username . clone_from ( & username) ;
@@ -1050,7 +1027,7 @@ async fn xtream_get_catchup_response(
10501027 & uuid,
10511028 catchup_provider_id,
10521029 PlaylistItemType :: Catchup ,
1053- pli. virtual_id ,
1030+ pli. provider_id ,
10541031 ) ;
10551032
10561033 if target. use_memory_cache {
@@ -1059,7 +1036,7 @@ async fn xtream_get_catchup_response(
10591036 catchup_provider_id,
10601037 virtual_id,
10611038 PlaylistItemType :: Catchup ,
1062- pli. virtual_id ,
1039+ pli. provider_id ,
10631040 uuid,
10641041 ) ,
10651042 ) ;
0 commit comments