require "film_snob/oembed_provider"

class FilmSnob
  class FunnyOrDie < OembedProvider
    def self.valid_url_patterns
      [
        %r{http://www.funnyordie.com/videos/([\w\d]+)}
      ]
    end

    def self.oembed_endpoint
      "http://www.funnyordie.com/oembed.json"
    end

    def clean_url
      @clean_url ||= "http://www.funnyordie.com/videos/#{id}"
    end
  end
end
