#NEWLINE# def collect( self , rooturl , curimage ) : #NEWLINE# #INDENT# imgurlbase = curimage [ 'urlbase' ] #NEWLINE# has_wp = curimage . get ( 'wp' , False ) #NEWLINE# if ( has_wp and ( '_ZH_' not in imgurlbase ) ) : #NEWLINE# #INDENT# _logger . debug ( '%s may have a Chinese brother' , imgurlbase ) #NEWLINE# zhlink = [ webutil . urljoin ( rooturl , '_' . join ( [ imgurlbase , 'ZH_1920x1200.jpg' ] ) ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _logger . debug ( 'no chinese logo for %s' , imgurlbase ) #NEWLINE# zhlink = None #NEWLINE# #UNINDENT# return zhlink