lib/onebox/engine/hulu_onebox.rb in onebox-1.0.1 vs lib/onebox/engine/hulu_onebox.rb in onebox-1.1.0
- old
+ new
@@ -3,11 +3,14 @@
class HuluOnebox
include Engine
include OpenGraph
matches do
- #/^https?\:\/\/www\.hulu\.com\/watch\/.*$/
- find "hulu.com"
+ http
+ maybe("www.")
+ domain("hulu")
+ tld("com")
+ with("/watch/")
end
private
def data