Norman Rasmussen wrote:
>
>
> Yea, that would be great.
Here you go.
--
Jamin W. Collins
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"py-transports" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/py-transports?hl=en
-~----------~----~----~----~------~----~------~--~---
diff -Naur yahoo-transport-0.4/avatar.py pyyimt/avatar.py
--- yahoo-transport-0.4/avatar.py 2007-08-03 19:57:29.000000000 -0400
+++ pyyimt/avatar.py 2008-09-04 13:50:21.000000000 -0400
@@ -2,10 +2,12 @@
def getavatar(aid, debug):
#the aid value is the Avatar ID. This is given in tag 197
- conn = httplib.HTTPConnection("img1.avatar.vip.dcn.yahoo.com")
+ #conn = httplib.HTTPConnection("img1.avatar.vip.dcn.yahoo.com")
+ conn = httplib.HTTPConnection("img.msg.yahoo.com")
if debug: conn.debuglevel=3
try:
- conn.request("GET","/users/%s.medium.png"%aid)
+ #conn.request("GET","/users/%s.medium.png"%aid)
+ conn.request("GET","/avatar.php?yids=%s"%aid)
r1 = conn.getresponse()
except:
if debug: traceback.print_exc()
diff -Naur yahoo-transport-0.4/ylib.py pyyimt/ylib.py
--- yahoo-transport-0.4/ylib.py 2007-11-06 16:26:28.000000000 -0500
+++ pyyimt/ylib.py 2008-09-04 13:55:59.000000000 -0400
@@ -149,7 +149,8 @@
self.roster[pay[each][7]]=('available', typ, status)
if pay[each].has_key(198):
if pay[each][198] == '1' and pay[each].has_key(197):
- b = avatar.getavatar(pay[each][197], self.dumpProtocol)
+ #b = avatar.getavatar(pay[each][197], self.dumpProtocol)
+ b = avatar.getavatar(pay[each][7], self.dumpProtocol)
if b != None and self.handlers.has_key('avatar'):
self.handlers['avatar'](self,pay[each][7],b)
elif pay[each][198] == '0':