From a0fb0e3c07ec08097195a4d4567c4330045f70e2 Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Wed, 23 Mar 2022 23:54:27 +0100 Subject: [PATCH] Add code to support 'platform' and 'clientFormFactor' query options --- scripts/yt-api-helper.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/yt-api-helper.sh b/scripts/yt-api-helper.sh index dbf1299..3761cb4 100755 --- a/scripts/yt-api-helper.sh +++ b/scripts/yt-api-helper.sh @@ -111,6 +111,8 @@ client_extra_device_make="" client_extra_device_model="" client_extra_os_name="" client_extra_os_vers="" +client_extra_platform="" +client_extra_form_factor="" data="" @@ -427,6 +429,14 @@ if [ $interactive = true ]; then if ! [ -z "$client_extra_os_vers" ]; then client="${client},\"osVersion\":\"${client_extra_os_vers}\"" fi + + if ! [ -z "$client_extra_platform" ]; then + client="${client},\"platform\":\"${client_extra_platform}\"" + fi + + if ! [ -z "$client_extra_form_factor" ]; then + client="${client},\"clientFormFactor\":\"${client_extra_form_factor}\"" + fi fi