Sha256: 44cfe3e2cbc41346b59a01a08c8387be582c5435597a6782dfc91637a9aca5a8

Contents?: true

Size: 327 Bytes

Versions: 16

Compression:

Stored size: 327 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

16 entries across 16 versions & 1 rubygems

Version Path
film_snob-0.3.13 lib/film_snob/hulu.rb
film_snob-0.3.12 lib/film_snob/hulu.rb
film_snob-0.3.11 lib/film_snob/hulu.rb
film_snob-0.3.10 lib/film_snob/hulu.rb
film_snob-0.3.9 lib/film_snob/hulu.rb
film_snob-0.3.8 lib/film_snob/hulu.rb
film_snob-0.3.7 lib/film_snob/hulu.rb
film_snob-0.3.6 lib/film_snob/hulu.rb
film_snob-0.3.5 lib/film_snob/hulu.rb
film_snob-0.3.4 lib/film_snob/hulu.rb
film_snob-0.3.3 lib/film_snob/hulu.rb
film_snob-0.3.2 lib/film_snob/hulu.rb
film_snob-0.3.1 lib/film_snob/hulu.rb
film_snob-0.3.0 lib/film_snob/hulu.rb
film_snob-0.2.1 lib/film_snob/hulu.rb
film_snob-0.2.0 lib/film_snob/hulu.rb