From 7780902c689772c681711a026539089edce5388e Mon Sep 17 00:00:00 2001 From: SteveWaring Date: Sat, 2 Aug 2025 19:29:07 +0100 Subject: [PATCH 1/2] Update device.md Describe the value for the id parameter for device.switch, when specifying a custom remote. --- libs/device.md | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/device.md b/libs/device.md index 2e70819..4d72ea9 100644 --- a/libs/device.md +++ b/libs/device.md @@ -78,6 +78,7 @@ Opens the remote with the specified ``id`` on the device. ````lua dev.switch("Unified.Chrome"); ```` +For custom remotes, the ``id`` to use is name.remote, where name is the value given in the meta.prop file for meta.author with any spaces removed, and remote is the name of the file, again with any spaces removed. For example if meta.prop contains the line ``meta.author: Fred Bloggs`` and the file name of the remote is ``My Remote`` then ``id`` will be FredBloggs.MyRemote From fc8dca6b7868f702a21d0538875d44e41119250a Mon Sep 17 00:00:00 2001 From: SteveWaring Date: Sat, 2 Aug 2025 23:13:47 +0100 Subject: [PATCH 2/2] Update device.md --- libs/device.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/device.md b/libs/device.md index 4d72ea9..e685cbf 100644 --- a/libs/device.md +++ b/libs/device.md @@ -78,7 +78,7 @@ Opens the remote with the specified ``id`` on the device. ````lua dev.switch("Unified.Chrome"); ```` -For custom remotes, the ``id`` to use is name.remote, where name is the value given in the meta.prop file for meta.author with any spaces removed, and remote is the name of the file, again with any spaces removed. For example if meta.prop contains the line ``meta.author: Fred Bloggs`` and the file name of the remote is ``My Remote`` then ``id`` will be FredBloggs.MyRemote +For custom remotes, the ``id`` to use is name.remote, where name is the value given in the meta.prop file for meta.author with any spaces removed, and remote is the meta.description, again with any spaces removed. For example if meta.prop contains the lines ``meta.author: Fred Bloggs`` and ``meta.description: My Remote`` then ``id`` will be FredBloggs.MyRemote