 TwitterApi = require "ntwitter"
 dateFormat = require('dateformat');
-
-long_video_url = /\/?watch.*?/
-short_video_url = 
 
 class Plugin 
   constructor: (@bot, @config) -> 

  videoDetailsLong: (channel, who, message, url) =>
    {path, query} = url
    # https://www.youtube.com/watch?v=HU2ftCitvyQ
    if path.match(/^\/watch/) && (match = query.match /v=([A-Za-z0-9]+)/)
      [_, video_id] = match
      console.log video_id
      @videoDetails channel, who, message, video_id

  videoDetailsShort: (channel, who, message, url) =>
    {path} = url
    # http://youtu.be/HU2ftCitvyQ
    if match = path.match /\/?([A-Za-z0-9_-]+)/
      [_, video_id] = match
      @videoDetails channel, who, message, video_id

