File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
device/thunder_ripple_sdk/src/processors Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -269,18 +269,19 @@ impl ThunderDeviceInfoRequestProcessor {
269269 let resp = state
270270 . get_thunder_client ( )
271271 . call ( DeviceCallRequest {
272- method : ThunderPlugin :: System . method ( "getSystemVersions " ) ,
272+ method : ThunderPlugin :: System . method ( "getDeviceInfo " ) ,
273273 params : None ,
274274 } )
275275 . await ;
276276 info ! ( "{}" , resp. message) ;
277- let resp = resp. message . get ( "stbVersion" ) ;
278- if resp. is_none ( ) {
279- return "NA" . to_owned ( ) ;
280- }
281- let resp = resp. unwrap ( ) . as_str ( ) . unwrap ( ) . trim_matches ( '"' ) ;
282- let split_string: Vec < & str > = resp. split ( '_' ) . collect ( ) ;
283- String :: from ( split_string[ 0 ] )
277+
278+ let model_number = resp
279+ . message
280+ . get ( "model_number" )
281+ . and_then ( |v| v. as_str ( ) )
282+ . unwrap_or ( "NA" ) ;
283+
284+ model_number. to_owned ( )
284285 }
285286
286287 async fn get_model ( state : & CachedState ) -> String {
You can’t perform that action at this time.
0 commit comments