✨Impl 'watch' command
Closed this issue · 0 comments
r002 commented
- Implement the
watch
command. Typingwatch
will open favorite YT video in the GUI. (Eventually build feature to accept args; multiple favorite vids?) - Add thumbnail in the
YoutubeLog
widget (eg. https://i.ytimg.com/vi/8xg3vE8Ie_E/default.jpg)
Specifications
- User enters
$> watch YOUTUBE_LINK
- Parse and input into db:
{
logId: string,
dt: Date,
created: Date,
command: `watch`
url: `YOUTUBE_LINK`
videoTitle: `VIDEO_TITLE`
}
Example:
{
logId: "buIYEva0zJK9EcaUySue",
dt: Tue Mar 30 2021 11:44:04 GMT-0400,
created: Tue Mar 30 2021 11:44:04 GMT-0400,
command: "watch"
url: "https://www.youtube.com/watch?v=8xg3vE8Ie_E"
videoTitle: "Taylor Swift - Love Story"
}
GUI Result
In ActivityLog
, show:
Tue Mar 30 2021 12:06 ET :: Watch Taylor Swift - Love Story
In the PreviewPane
, show iframe of the YouTube vid.