custom-components / youtube

A platform which give you info about the newest video on a channel
MIT License
56 stars 17 forks source link

YouTube ID #7

Closed migromao closed 4 years ago

migromao commented 4 years ago

the WebOS component plays Youtube videos based on youtube IDs

would it be possible for this sensor to provide as same as URL of last video of channel, also the video ID ? something like:

url: 'https://www.youtube.com/watch?v=jQexIevhSFo' published: '2020-06-14T20:55:20+00:00' live: false friendly_name: DrZzs icon: 'mdi:youtube' videoID: jQexIevhSFo

migromao commented 4 years ago

accomplish the goal with media_extract - platform: scrape resource: 'https://www.youtube.com/feeds/videos.xml?channel_id=UCD05wSHBU1h3RxgcWk5QSRw' name: yt_gearbest value_template: '{{ value }}' select: yt\:videoid