lib/quakelive_api/parser/base.rb in quakelive_api-0.1.0 vs lib/quakelive_api/parser/base.rb in quakelive_api-0.1.1
- old
+ new
@@ -4,10 +4,10 @@
def initialize(document)
@document = document
end
def invalid_player?
- document.css('.profile_title').text =~ /Unknown Player/
+ document.css('p.tc').text =~ /The requested player could not be found or is not yet active/i
end
def request_error?
document.css('#sorry_content p:first-child').text =~ /An error has occurred while handling your request/
end