lib/asobistore.rb in rget-4.7.2 vs lib/asobistore.rb in rget-4.7.3

- old
+ new

@@ -16,10 +16,10 @@ html = Nokogiri(open("https:#{player}").read) src_m3u8 = html.css('source').first.attr('src') m3u8 = "#{File.dirname(src_m3u8)}/#{open(src_m3u8).read.match(/^[^#].*/)[0]}" serial = html.title.scan(/#(\d+)/).flatten.first.to_i - @cover = "https:#{html.css('video').first.attr('poster')}" unless @cover + @cover = "https:#{html.css('audio,video').first.attr('poster')}" unless @cover ts_file = "#{@label}##{serial}.ts" mp3_file = "#{@label}##{serial}.mp3" begin agent = Mechanize.new