Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 142041
Collapse All | Expand All

(-)yahoo-transport-0.4/avatar.py (-2 / +4 lines)
Lines 2-11 Link Here
2
2
3
def getavatar(aid, debug):
3
def getavatar(aid, debug):
4
    #the aid value is the Avatar ID. This is given in tag 197
4
    #the aid value is the Avatar ID. This is given in tag 197
5
    conn = httplib.HTTPConnection("img1.avatar.vip.dcn.yahoo.com")
5
    #conn = httplib.HTTPConnection("img1.avatar.vip.dcn.yahoo.com")
6
    conn = httplib.HTTPConnection("img.msg.yahoo.com")
6
    if debug: conn.debuglevel=3
7
    if debug: conn.debuglevel=3
7
    try:
8
    try:
8
        conn.request("GET","/users/%s.medium.png"%aid)
9
        #conn.request("GET","/users/%s.medium.png"%aid)
10
        conn.request("GET","/avatar.php?yids=%s"%aid)
9
        r1 = conn.getresponse()
11
        r1 = conn.getresponse()
10
    except:
12
    except:
11
        if debug: traceback.print_exc()
13
        if debug: traceback.print_exc()
(-)yahoo-transport-0.4/ylib.py (-1 / +2 lines)
Lines 149-155 Link Here
149
                    self.roster[pay[each][7]]=('available', typ, status)
149
                    self.roster[pay[each][7]]=('available', typ, status)
150
                    if pay[each].has_key(198):
150
                    if pay[each].has_key(198):
151
                        if pay[each][198] == '1' and pay[each].has_key(197):
151
                        if pay[each][198] == '1' and pay[each].has_key(197):
152
                            b = avatar.getavatar(pay[each][197], self.dumpProtocol)
152
                            #b = avatar.getavatar(pay[each][197], self.dumpProtocol)
153
                            b = avatar.getavatar(pay[each][7], self.dumpProtocol)
153
                            if b != None and self.handlers.has_key('avatar'):
154
                            if b != None and self.handlers.has_key('avatar'):
154
                                self.handlers['avatar'](self,pay[each][7],b)
155
                                self.handlers['avatar'](self,pay[each][7],b)
155
                        elif pay[each][198] == '0':
156
                        elif pay[each][198] == '0':

Return to bug 142041