ysard / mi_remote_database

Proof of concept aiming to reproduce and query the infrared code database (IRDB) used by the Xiaomi *Mi Remote* application.
GNU Affero General Public License v3.0
52 stars 8 forks source link

Remove newline character from brand names #7

Closed Biswa96 closed 5 months ago

Biswa96 commented 1 year ago
Some brand name contains newline character (\n) in json files.
This change removes those newline character and fixes the following error.

OSError: [Errno 22] Invalid argument: 'database_dump/1_TV/Conrowa\n_584.json'
OSError: [Errno 22] Invalid argument: 'database_dump/3_AC/Conrowa\n_584.json'
ysard commented 5 months ago

Thank you for the PR, on my side there were indeed todos on this subject...