python-androidtv icon indicating copy to clipboard operation
python-androidtv copied to clipboard

fix: empty manufacturer lead to failed parse_device_properties

Open clansty opened this issue 1 year ago • 1 comments

My tv returns empty with getprop ro.product.manufacturer

image

this leads the .strip() removed the empty line and properties will become only 4 lines. _parse_device_properties will stop parsing.

if android version is not parsed, the library will use wrong command to get state and control the device.

I added two echo % line in the begin and end of the "get properties" command to prevent empty manufacturer to be erased by strip

clansty avatar Dec 10 '24 07:12 clansty