<s> '''<STR_LIT>''' <EOL> import json <EOL> from resources . lib . libraries import client <EOL> def resolve ( url ) : <EOL> try : <EOL> url = [ i for i in url . split ( '<STR_LIT:/>' ) if i . isdigit ( ) ] [ - <NUM_LIT:1> ] <EOL> url = '<STR_LIT>' % url <EOL> result = client . request ( url ) <EOL> result = json . loads ( result ) <EOL> u = result [ '<STR_LIT>' ] [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> url = None <EOL> try : url = u [ '<STR_LIT>' ] [ '<STR_LIT:url>' ] <EOL> except : pass <EOL> try : url = u [ '<STR_LIT>' ] [ '<STR_LIT:url>' ] <EOL> except : pass <EOL> return url <EOL> except : <EOL> return </s>
