r002/captains-log

✨Impl 'watch' command

Closed this issue · 0 comments

r002 commented

Specifications

  1. User enters $> watch YOUTUBE_LINK
  2. 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.