lib/quakelive_api/parser/base.rb in quakelive_api-0.0.1 vs lib/quakelive_api/parser/base.rb in quakelive_api-0.1.0
- old
+ new
@@ -4,10 +4,10 @@
def initialize(document)
@document = document
end
def invalid_player?
- document.css('.prf_header span').text =~ /Player not found/
+ document.css('.profile_title').text =~ /Unknown Player/
end
def request_error?
document.css('#sorry_content p:first-child').text =~ /An error has occurred while handling your request/
end