Sha256: e18e1a18cd224c6759e1dde6b77647124008666538599e04410259c8d6ce84d5

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

class FilmSnob
  class Hulu < VideoSite
    def self.valid_url_patterns
      [
        %r{https?://(?:(?:www).)?hulu.com/watch/(\d+)}
      ]
    end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
film_snob-0.4.0 lib/film_snob/hulu.rb