Skip to content

Commit

Permalink
Fix example YouTube scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
teekennedy authored and jekalmin committed Apr 3, 2024
1 parent 79fbe01 commit 27eb7bf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions examples/function/youtube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"
Expand Down Expand Up @@ -214,4 +214,4 @@ script:
{{item["id"]["kind"]|replace("youtube#", "")}},{{item["id"][type + "Id"]}},{{item["snippet"]["title"]|replace(",", " ")|truncate(50, True, "...")}}
{% endfor -%}
```
```
```

0 comments on commit 27eb7bf

Please sign in to comment.