r002 / captains-log

Over the years, I've toiled away many nights & weekends on various pet projects; each always with its own repo, theme, and urls. Well, no more! Moving forward, all experimentations now live here! 😄
https://captains-log.web.app
0 stars 0 forks source link

✨Impl 'watch' command #4

Closed r002 closed 3 years ago

r002 commented 3 years ago

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.