Advertisement
langioletto

message_media_location.py

Sep 14th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.75 KB | None | 0 0
  1. --- /usr/local/lib/python2.7/dist-packages/yowsup2-2.5.2-py2.7.egg/yowsup/layers/protocol_media/protocolentities/message_media_location.py.orig 2017-09-15 00:50:51.375838803 +0200
  2. +++ /usr/local/lib/python2.7/dist-packages/yowsup2-2.5.2-py2.7.egg/yowsup/layers/protocol_media/protocolentities/message_media_location.py  2017-09-15 00:34:09.587412918 +0200
  3. @@ -54,7 +54,7 @@
  4.  
  5.      def toProtocolTreeNode(self):
  6.          node = super(LocationMediaMessageProtocolEntity, self).toProtocolTreeNode()
  7. -        mediaNode = node.getChild("media")
  8. +        mediaNode = node.getChild("enc")
  9.          mediaNode.setAttribute("latitude",  self.latitude)
  10.          mediaNode.setAttribute("longitude",  self.longitude)
  11.          mediaNode.setAttribute("encoding", self.encoding)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement