From 27eb7bf565718accc8a387b426a8cf6e61ef8cf2 Mon Sep 17 00:00:00 2001 From: Terrance Kennedy Date: Wed, 27 Mar 2024 19:36:56 -0600 Subject: [PATCH] Fix example YouTube scripts --- examples/function/youtube/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/function/youtube/README.md b/examples/function/youtube/README.md index 716dac0..7521a42 100644 --- a/examples/function/youtube/README.md +++ b/examples/function/youtube/README.md @@ -91,14 +91,14 @@ script: media_content_type: url media_content_id: >- {% if kind == 'video' %} - "youtube://www.youtube.com/watch?v={{content_id}}" + youtube://www.youtube.com/watch?v={{content_id}} {% elif kind == 'channel' %} - "youtube://www.youtube.com/channel/{{content_id}}" + youtube://www.youtube.com/channel/{{content_id}} {% else %} - "youtube://www.youtube.com/playlist?list={{content_id}}" + youtube://www.youtube.com/playlist?list={{content_id}} {% endif %} - target: - entity_id: "{{ entity_id }}" + target: + entity_id: "{{ entity_id }}" ``` #### Android TV @@ -145,11 +145,11 @@ script: data: activity: >- {% if kind == 'video' %} - "https://www.youtube.com/watch?v={{content_id}}" + https://www.youtube.com/watch?v={{content_id}} {% elif kind == 'channel' %} - "https://www.youtube.com/channel/{{content_id}}" + https://www.youtube.com/channel/{{content_id}} {% else %} {# playlist kind #} - "https://www.youtube.com/playlist?list={{content_id}}" + https://www.youtube.com/playlist?list={{content_id}} {% endif %} target: entity_id: "{{ player }}" @@ -214,4 +214,4 @@ script: {{item["id"]["kind"]|replace("youtube#", "")}},{{item["id"][type + "Id"]}},{{item["snippet"]["title"]|replace(",", " ")|truncate(50, True, "...")}} {% endfor -%} ``` -``` \ No newline at end of file +```