Class: XMLRPC::XMLParser::AbstractStreamParser

Inherits:
Object
  • Object
show all
Defined in:
lib/retort/xmlrpc_client.rb

Instance Method Summary collapse

Instance Method Details

#original_parseMethodResponseObject

A patch for the response method as rtorrent xmlrpc call returns some integers as i8 instead of i4 expected this results in int8 fields showing up with no data as the parse method is not capable of handling such a tag.



10
# File 'lib/retort/xmlrpc_client.rb', line 10

alias original_parseMethodResponse parseMethodResponse

#parseMethodResponse(str) ⇒ Object



11
12
13
14
# File 'lib/retort/xmlrpc_client.rb', line 11

def parseMethodResponse(str)
  str.gsub!(/<((\/)*)i8>/, "<\\1i4>")
  original_parseMethodResponse(str)
end