hulu-automuter 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/hulu-automuter +2 -3
- data/lib/hulu_automuter/version.rb +1 -1
- metadata +1 -1
data/bin/hulu-automuter
CHANGED
@@ -88,12 +88,11 @@ hc = case RUBY_PLATFORM
|
|
88
88
|
|
89
89
|
proxyproc = Proc.new{|req,res|
|
90
90
|
r = req.path
|
91
|
-
puts r
|
92
91
|
next unless req.host =~ /hulu\.com/
|
93
|
-
if r =~ /adload/ || r =~ /revenue\/request/ ||
|
92
|
+
if r =~ /adload/ || r =~ /revenue\/(request|start)/ || req.query =~ /adstartvolume=/
|
94
93
|
$stdout.puts ["ad loaded", hc.mute].join(', ')
|
95
94
|
`#{hc.mute}`
|
96
|
-
elsif r =~ /contentplaybackresume/ || r =~ /playback\/start/ || r =~ /
|
95
|
+
elsif r =~ /contentplaybackresume/ || r =~ /playback\/(start|position)/ || r =~ /revenue\/end/
|
97
96
|
$stdout.puts ["content resuming", hc.unmute].join(', ')
|
98
97
|
`#{hc.unmute}`
|
99
98
|
end
|