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.
@@ -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/ || r =~ /adstartvolume=/
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 =~ /continousplay/
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
@@ -1,3 +1,3 @@
1
1
  module HuluAutomuter
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hulu-automuter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: